command /dodatkowyexp []: trigger: if player has permission "dodatkowyexp.custom": if arg 1 is "0": set {dodatkowyexpwprocentach} to arg 1 send "&2Pomyslnie ustawiono &4%arg 1%%% &2dodatkowego expa!" to player send all players title "&8» &6&LP&e&lO&6&lZ&e&lI&6&lO&e&lM &8«" with subtitle "&8» &7Dodatkowy XP wynosi &a%{dodatkowyexpwprocentach}%%%! &8«" set {mnoznikprocentexpa} to "0" parsed as number else if arg 1 is "50": set {dodatkowyexpwprocentach} to arg 1 send "&2Pomyslnie ustawiono &4%arg 1%%% &2dodatkowego expa!" to player send all players title "&8» &6&LP&e&lO&6&lZ&e&lI&6&lO&e&lM &8«" with subtitle "&8» &7Dodatkowy XP wynosi &a%{dodatkowyexpwprocentach}%%%! &8«" set {mnoznikprocentexpa} to "1.5" parsed as number else if arg 1 is "100": set {dodatkowyexpwprocentach} to arg 1 send "&2Pomyslnie ustawiono &4%arg 1%%% &2dodatkowego expa!" to player send all players title "&8» &6&LP&e&lO&6&lZ&e&lI&6&lO&e&lM &8«" with subtitle "&8» &7Dodatkowy XP wynosi &a%{dodatkowyexpwprocentach}%%%! &8«" set {mnoznikprocentexpa} to "2" parsed as number else if arg 1 is "150": set {dodatkowyexpwprocentach} to arg 1 send "&2Pomyslnie ustawiono &4%arg 1%%% &2dodatkowego expa!" to player send all players title "&8» &6&LP&e&lO&6&lZ&e&lI&6&lO&e&lM &8«" with subtitle "&8» &7Dodatkowy XP wynosi &a%{dodatkowyexpwprocentach}%%%! &8«" set {mnoznikprocentexpa} to "2.5" parsed as number else: send "&cMusisz ustawic ile %% chcesz dodatkowy EXP!" to player send "&cPoprawne uzycie /dodatkowyexp IloscDodatkowegoExpa" to player else: send "&cNie masz uprawnien by uzyc tej komendy!" to player command /exp-give [] [] [] [] []: usage: /exp-give [-s] [-n] [-c] permission: admin permission message: {@msg-no-perm} executable by: console and player trigger: if arg 1 is not set: send "&f/exp-give &c &f [-s] [-n] [-c]" stop else if arg 1 is set: if {lv::%offlineplayer-argument%} is not set: send "{@msg-not-found}" stop else if {lv::%offlineplayer-argument%} is not set: set {_p} to offlineplayer-argument stop if arg 2 is not set: send "&f/exp-give &c &f[-s] [-n] [-c]" stop if arg 2 > {@max-exp-give-limit}: send "&cPodana iloœæ expa jest zbyt du¿a." stop if arg 2 < {@max-exp-give-limit}: send "&cPodana iloœæ expa jest zbyt du¿a." stop if {dxppl.%{_p}%} < now: delete {dxppl.%{_p}%} {lv::%{_p}%} < {@max-lvl} set {_arg2} to arg 2 if {@exp-rounding} is true: set {xp::%{_p}%} to round {xp::} set {_arg2} to round up {_arg2} if {expmultiplier} is false: if arg 3 or arg 4 or arg 5 is "-n": set {_x2} to 1 set {_exp} to "{@exp-name}" else: set {_x2} to 1 set {_exp} to "{@exp-name}" if {dxppl.%{_p}%} is set: set {_x2} to {@exp-multiplier-1} set {_exp} to "{@multiplier-1-name}" if {expmultiplier} is true: if arg 3 or arg 4 or arg 5 is "-n": set {_x2} to 1 set {_exp} to "{@exp-name}" else: set {_x2} to {@exp-multiplier-1} set {_exp} to "{@multiplier-1-name}" if {@allow-multiplier-2} is true: if {dxppl.%{_p}%} is set: set {_x2} to {@exp-multiplier-2} set {_exp} to "{@multiplier-2-name}" if {_arg2} < 0: if {@multiplier-negative-exp} is false: set {_x2} to 1 set {_exp} to "{@exp-name}" set {_prexp::%{_p}%} to {xp::%{_p}%} if {xp::%{_p}%} < {mxp::%{_p}%}: add {_arg2}*{_x2} to {xp::%{_p}%} set {_ilosc} to "%{_arg2}*{_x2}%" if {_arg2} > 0: set {_znak} to "{@exp-give-plus}" if {_arg2} <= 0: set {_znak} to "{@exp-give-minus}" if {xp::%{_p}%} < 0: if {@max-negative-exp} <= 0: if {xp::%{_p}%} < {@max-negative-exp}: if {_prexp::%{_p}%} < {@max-negative-exp}: set {xp::%{_p}%} to {_prexp::%{_p}%} else: set {xp::%{_p}%} to {@max-negative-exp} if {xp::%{_p}%} >= {mxp::%{_p}%}: if {@large-exp-mode} is 1: set {_iloscgl.%{_p}%} to {_ilosc}-{mxp::%{_p}%}-{xp::%{_p}%} add 1 to {lv::%{_p}%} add 1 to {pkt.%{_p}%} execute console command "/maxexpchange %{_p}%" loop {@max-lvl} times: if {lv::%{_p}%} is "30" or "40" or "50" or "60" or "70" or "80" or "90" or "100" or "110" or "111" or "112" or "113" or "114" or "115" or "116" or "117" or "118" or "119" or "120": add 1 to {pkttytan::%{_p}%} if {_iloscgl.%{_p}%} >= {mxp::%{_p}%}: set {_iloscgl.%{_p}%} to {_iloscgl.%{_p}%}-{mxp::%{_p}%} add 1 to {lv::%{_p}%} add 1 to {mag.pkt.%{_p}%} execute console command "/maxexpchange %{_p}%" if {lv::%{_p}%} >= {@max-lvl}: stop loop if {_iloscgl.%{_p}%} < {mxp::%{_p}%}: set {xp::%{_p}%} to {_iloscgl.%{_p}%} stop loop if {@large-exp-mode} is 2: add 1 to {lv::%{_p}%} add 1 to {mag.pkt.%player%} execute console command "/maxexpchange %{_p}%" if {lv::%{_p}%} >= {@max-lvl}: set {xp::%{_p}%} to {mxp::%{_p}%} set {lv::%{_p}%} to {@max-lvl} else: if {@large-exp-mode} is 2: set {xp::%{_p}%} to 0 send {_p} title "&e&lLVLUP" with subtitle " &aAwansowales na poziom: &e%{lv::%{_p}%}%" for 5 seconds if {@lvlup-lighting-effect} is true: strike lightning effect at location of {_p} if {@head-level-enabled} is true: execute console command "/scoreboard players set %{_p}% Levels %{lv::%{_p}%}%" if {@broadcast-lvlup} is true: if {@bc-each-level} is true: set {_bclvlup} to true if {lv::%{_p}%} is {@distinction-levels}: set {_bclvlup} to true if {_bclvlup} is set: loop all players: if {_p} is not loop-player: send "{@msg-lvl-up-bc}" to loop-player if {xp::%{_p}%} is -0: set {xp::%{_p}%} to 0 if executor is player: if player is not {_p}: send "{@msg-exp-other}" if arg 3 or arg 4 or arg 5 is "-c": if executor is console: send "{@msg-exp-other}" if arg 3 or arg 4 or arg 5 is "-s": stop else: set action bar of {_p} to "{@msg-exp}"