1% jest chyba domyślnie ale no ok:
on death:
if victim is wither skeleton:
remove wither skeleton skull from drops
chance of 1%:
add wither skeleton skull to drops
every minute:
add 1 to {time}
loop all players:
if loop-player has permission "adm.fz":
add 1 to {time::%loop-player%}
if {time} is 60*24*31:
loop {time::*}:
log "%loop-index% przegral na serwerze %(loop-value/60)% godzin" to "../../moderacja/plik.txt"
set {time} to 0
clear {time::*}
command /czasadm [<text>]:
permission: admin
trigger:
loop {time::*}:
send "&a%loop-index% &7przegral na serwerze przez miesiac &a%(loop-value/60)% godzin"
function add(p: player, i: items):
loop {_i::*}:
if {_p} can hold loop-value:
add loop-value to player
else:
drop loop-value at player
on death of player:
if attcker is player:
add(attacker, drops)
clear drops
Polecam zamienić
if {%{_name}%::%loop-value%} is a number:
na
if {%{_name}%::%loop-value%} is a number or time span:
Ponieważ na czas też działają znaki większości itp.
Myślałem że to jest zrobione i jakiś czas siedziałem nad tym i się zastanawiałem dlaczego mi nie działa, a tu po prostu warunek był.
on death:
victim is zombie
if attacker is a player:
add 1 to {playerKills::%attacker%}
if {playerKills::%attacker%} is 20:
clear {playerKills::%attacker%}
add 2000 to attacker's money
send "&aOtrzymales &62000$ &aza zabicie łącznie &e20 &azombie!" to attacker
Jeżeli ukryjesz gracza przed graczem to automatycznie powinien mu zniknąć z tablisty
hide %players% [(from|for) %players%]
reveal %players% [(to|for|from) %players%]