Testowałem i jest jakiś błąd przy sprawdzaniu czy poziom gracza jest mniejszy od 100. Całość umieściłem w funkcji, aby skrócić kod.
EDIT: Już działa
function giveExp(arg1: player, arg2: number):
if {lvl::%{_arg1}%} >= 100:
stop
else:
set {_exp} to {_arg2}
send "&8 >> &7Dostałeś &a%{_exp}% &7Expa" to {_arg1}
add {_exp} to {exp::%{_arg1}%}
on death of zombie:
if attacker is a player:
if victim's name is "&7Zombie &8lvl &a1":
giveExp(attacker, 50)