variables: {wojownik.%player%} = 0 {mag.%player%} = 0 {sura.%player%} = 0 command /klasa [] []: permission: modifyworld.* trigger: if arg 1 is "wybierz": if arg 2 is "wojownik": if {wojownik.%player%} = 0: if {mag.%player%} = 0: if {sura.%player%} = 0: set {wojownik.%player%} to 1 send "&c&lWybrales klase wojownik!" else: send "&c&lTwoja aktualna klasa to sura!" else: send "&c&lTwoja aktualna klasa to mag!" else: send "&c&lJestes juz wojownikiem!" if arg 2 is "mag": if {wojownik.%player%} = 0: if {mag.%player%} = 0: if {sura.%player%} = 0: set {mag.%player%} to 1 set {mana::%player%} to 500 send "&c&lWybrales klase mag!" else: send "&c&lTwoja aktualna klasa to sura!" else: send "&c&lJestes juz magiem!" else: send "&c&lTwoja aktualna klasa to wojownik!" if arg 2 is "sura": if {wojownik.%player%} = 0: if {mag.%player%} = 0: if {sura.%player%} = 0: set {sura.%player%} to 1 send "&c&lWybrales klase sura!" else: send "&c&lJestes juz sura!" else: send "&c&lTwoja aktualna klasa to mag!" else: send "&c&lTwoja aktualna klasa to wojownik!" if arg 1 is "zrezygnuj": if arg 2 is "wojownik": if {wojownik.%player%} = 1: set {wojownik.%player%} to 0 send "&c&lZrezygnowales z bycia wojownikiem" else: send "&c&lNie jestes wojownikiem" if arg 2 is "mag": if {mag.%player%} = 1: set {mag.%player%} to 0 send "&c&lZrezygnowales z bycia magiem" else: send "&c&lNie jestes magiem" if arg 2 is "sura": if {sura.%player%} = 1: set {sura.%player%} to 0 send "&c&lZrezygnowales z bycia sura" else: send "&c&lNie jestes sura" if arg 1 is "help": send "&c&lUzyj: /klasa wybierz wojownik/mag/sura aby wybrac klase" send "&c&lUzyj: /klasa zrezygnuj wojownik/mag/sura aby zrezygnowac z klasy" if arg 1 is "usunklase": if arg 2 is player: if player has permission "usuwanieklas": set {wojownik.%arg 2%} to 0 set {mag.%arg 2%} to 0 set {sura.%arg 2%} to 0 send "&c&lUsunieto klase tego gracza" command /mana []: permission: modifyworld.* trigger: if {mag.%player%} is 1: if arg 1 is "zbierz": wait 10 second add 30 to {mana::%player%} if arg 1 is "ilosc": send "&c&lStan twojej many wynosi %{mana::%player%}%." on damage: if name of attacker's tool is "Miecz wojownika": if {wojownik.%attacker%} is 1: set {_obrazenia.%attacker%} to 105 else: send "&cTen miecz nie przypisuje sie twojej klasie!" to attacker cancel event if name of attacker's tool is "Miecz sury": if {sura.%attacker%} is 1: set {_obrazenia.%attacker%} to 90 set {_szybkosc.%attacker%} to 120 else: send "&cTen miecz nie przypisuje sie twojej klasie!" to attacker cancel event if {_obrazenia.%attacker%} is 105: increase the damage by 105% if {_obrazenia.%attacker%} is 90: increase the damage by 90% if {_szybkosc.%attacker%} is 120: set attacker's walk speed to 0.4 on rightclick: if player's tool is blaze rod named "Rozdzka kuli": if {mag.%player%} = 1: if {mana::%player%} >= 20: shoot an fire ball remove 20 from {mana::%player%} else: send "&c&lNie masz wystarczajaco many" else: send "&cTen przedmiot nie przypisuje sie twojej klasie!" on anymove: if {sura.%player%} = 0: set player's walk speed to 0.3