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 equal to 10: spawn 1 cow at {krowa1spawn} set name of last spawned entity to "&aZwykla Krowa &7[&eLvL 1&7]" set last spawned entity's max health to 20 apply slowness 2 to the last spawned entity for 9 days add 1 to {maxmob} on death of cow: if attacker is player: if victim is a cow: if name of entity is "&aZwykla Krowa &7[&eLvL 1&7]": remove 1 from {maxmob} send "&a1 xp +" to attacker add 1 to {exp::%attacker%} if {exp::%attacker%} is greater than {expm::%attacker%}: set {exp::%attacker%} to 0 add 20 to {expm::%attacker%} add 1 to {lvl::%attacker%} send "&7Gratulacje! Awansowałeś/aś na &a%{lvl::%attacker%}% &7poziom!" to 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]" send "&7>----------------{@tag}----------------<"