command /exp: trigger: if {info::%player%} is set: clear {info::%player%} send "&7Pokazywanie expa zostalo wylaczone" stop if {info::%player%} is not set: set {info::%player%} to true send "&7Pokazywanie expa zostalo wlaczone" #command /punkty []: # trigger: # send "%{XP::punkty::%player%}%" # if arg 1 is set: # add arg 1 to {XP::punkty::%player%} # send "Dodano %arg 1% Aktualnie: %{XP::punkty::%player%}%" # stop variables: {1} = 1 on death: if attacker is not player: stop else: set {_lvl} to attacker's level # send "%{_lvl}%" to attacker set {_lvl} to {_lvl}/99 # send "%{_lvl}%" to attacker set {_lvl} to rounded {_lvl} # send "%{_lvl}%" to attacker set {_lvl3} to {_lvl}-1 if {_lvl3} is less than 0: set {_lvl3} to 0 set {_lvl} to {_lvl}+100 # send "%{_lvl}%" to attacker set {_lvl2} to attacker's level # send "%{_lvl2}%" to attacker if victim is wolf: if name of victim is "&4Wilk &6(4lvl)": set {_maxLvl} to 9 set {_doDodania} to 50 # send "%{_doDodania}% - %{_lvl3}% = %{_doDodania}-{_lvl3}%" set {_doDodania} to {_doDodania}-{_lvl3} # send "2 ---- jesli %{_lvl2}% jest mniejszy od %{_maxLvl}%" to attacker if {_lvl2} is less than {_maxLvl}: add {_doDodania} to {XP::punkty::%attacker%} # send "&7Dodano: &6%{_doDodania}%&7, w sumie: &6%{XP::punkty::%attacker%}%&7! Musisz posiadac &6%{_lvl}% &7punktow aby zdobyc XP!" to attacker if {XP::punkty::%attacker%} is greater than or equal to {_lvl}: remove {_lvl} from {XP::punkty::%attacker%} add 1 xp to attacker # send "&7Dodaje 1 xp! Pozostalo %{XP::punkty::%attacker%}% punktow!" to attacker if {info::%attacker%} is set: create hologram "&7[&8Exp&7] &2+%{_doDodania}%" at block above player for 20 seconds else: send " &cMasz za duzy Lvl by dostawac doswiadczenie i drop od takiego moba" to attacker clear drops stop on xp spawn: cancel event stop