on death: victim is zombie if displayname of victim is "&bZombie &8[&6LVL 1&8]": add 3 to {points::%attacker%} send "&bZabiles Zombie! &8[&6+3 pkt&8] [&c%{points::%attacker%}%&8]" to attacker if displayname of victim is "&bZombie &8[&6LVL 2&8]": add 6 to {points::%attacker%} send "&bZabiles Zombie! &8[&6+6 pkt&8] [&c%{points::%attacker%}%&8]" to attacker set {_x} to {level::%attacker%} * 10 set {_y} to {_x} - 1 if {points::%attacker%} is bigger than {_y}: add 1 to {level::%attacker%} set {points::%attacker%} to 0 send "&aAwansowales na poziom &e%{level::%attacker%}%&a!" to attacker
Pytanie
slawek3231 3
Dopisze ktoś kod pilne
Trzeba dopisać że gdy ktoś ma 10 pkt ma 1 lvl potem te punkty się zerują i ma się 0 i 1 lvl i trzeba 20 pkt do 2 lvl i tak dalej z 3 lvl
LICZBA PUNKTUW to {points::%player%} = 0
variables:
{level::%player%} = 1
{points::%player%} = 0
on death:
victim is zombie
if displayname of victim is "&bZombie &8[&6LVL 1&8]":
add 3 to {points::%attacker%}
send "&bZabiles Zombie! &8[&6+3 pkt&8] [&c%{points::%attacker%}%&8]" to attacker
if displayname of victim is "&bZombie &8[&6LVL 2&8]":
add 6 to {points::%attacker%}
send "&bZabiles Zombie! &8[&6+6 pkt&8] [&c%{points::%attacker%}%&8]" to attacker
set {_x} to {level::%attacker%} * 10
set {_y} to {_x} - 1
if {points::%attacker%} is bigger than {_y}:
add 1 to {level::%attacker%}
set {points::%attacker%} to 0
send "&aAwansowales na poziom &e%{level::%attacker%}%&a!" to attacker
Odnośnik do komentarza
https://skript.pl/temat/9031-skrypt-na-lvl-pilne/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi