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 100 tick: if {maxmob} is less than 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 40 add 1 to {maxmob} on death of cow: if attacker is a player: if victim is a cow: if name of entity is "&aZwykla Krowa &7[&eLvL 1&7]": remove 1 from {maxmob} send action bar "&8&l[&e&lPOZIOM&8&l] &a&l1+ EXP" to attacker add 1 to {exp::%attacker%} clear the drops chance of 20%: drop 1 leather named "&7Skora krowy" with lore "&a&lRZADKOSC: &7Pospolita" and "&7Wymien ten przedmiot u kupca!" at victim chance of 30%: chance of 20%: give 1 iron nugget of sharpness 3 named "&3&lOSTRY &fZab Krowy" with lore "&a&lRZADKOSC: &3RZADKIE" and "&7Uzyteczna bron dla poczatkowych graczy" to attacker send action bar "&8&l[&f&lDROPY&8&l] &a&lGRATULACJE DOSTALES &3&lOSTRY &fZab Krowy" to attacker chance of 50%: give 1 iron nugget of sharpness 1 and fire aspect 1 named "&4&lZLAMANY &fZab Krowy" with lore "&a&lRZADKOSC: &3RZADKIE" and "&7Uzyteczna bron dla poczatkowych graczy" to attacker send action bar "&8&l[&f&lDROPY&8&l] &a&lGRATULACJE DOSTALES &4&lZLAMANY &fZab Krowy" to attacker chance of 10%: give 1 iron nugget of sharpness 4 and fire aspect 2 named "&6&lLEGENDARNY &fZab Krowy" with lore "&a&lRZADKOSC: &3RZADKIE" and "&7Uzyteczna bron dla poczatkowych graczy" to attacker send action bar "&8&l[&f&lDROPY&8&l] &a&lGRATULACJE DOSTALES &6&lLEGENDARNY &fZab Krowy" to attacker chance of 20%: give 1 iron nugget of sharpness 2 and knockback 2 named "&7&lZWYKLY &fZab Krowy" with lore "&a&lRZADKOSC: &3RZADKIE" and "&7Uzyteczna bron dla poczatkowych graczy" to attacker send action bar "&8&l[&f&lDROPY&8&l] &a&lGRATULACJE DOSTALES &7&lZWYKLY &fZab Krowy" 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}----------------<" command /resetmob: trigger: set {exp::%player%} to 0 set {lvl::%player%} to 0 set {expm::%player%} to 20 every 1 tick: 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%} wait 1 tick send "{@tag} &a&lGRATULACJE AWANSOWALES/AS NA &e&l%{exp::%loop-player%}% &a&lPOZIOM!" to loop-player