variables: {lvl::%player%} = 0 {exp::%player%} = 0 {expm::%player%} = 20 {maxmob} = 0 options: tag : &7&l[&eGoldenRPG&7] command /setmob []: trigger: if player have permission "mobset.goldenrpg": if arg 1 is "krowa1": set {krowa1spawn} to player's location send "{@tag} &7Spawn &aZwykla Krowa &7[&eLvL 1&7]&7 zostal ustawiony!" else: send "{@tag} &7Nie posiadasz uprawnienia &4mobset.goldenrpg" every 10 second: if {maxmob} is greater than 10: else: spawn 1 cow named "&aZwykla Krowa &7[&eLvL 1&7]" at {krowa1spawn} set last spawned entity max health to 20 apply slowness 2 to the last entity add 1 to {maxmob} on death: victim is cow named "&aZwykla Krowa &7[&eLvL 1&7]": remove 1 from {maxmob} send "&a1 xp +" to attacker add 1 to {exp::%attacker%} command /poziom []: trigger: if arg 1 is not set: send "&7>----------{@tag}----------<" send "&7EXP: &a%{exp::%player%}&a/%{expm::%player%}" send "&7LVL: &a%{lvl::%player%}" send "&7Jezeli chcesz zobaczyc statystyki innego gracza wpisz /poziom [nick gracza]" every 1 second: loop all players: if {exp::%loop-player%} is greater than {expm::%loop-player%}: set {exp::%loop-player%} to 0 add 20 to {expm::%loop-player%} add 1 to {lvl::%loop-player%} send "&7Gratulacje! Awansowałeś/aś na &a%{lvl::%player%}% &7poziom!"