variables: {dodatki.tarcza.%player%} = false {dodatki.rekawica.%player%} = false {dodatki.horcrux.%player%} = false {bony.hieroglify.%player%} = false {bony.lustro.%player%} = false command /dodatki: aliases: bony, bon, dodatek, akcesoria, akce trigger: open chest with 3 rows named "&8Wybierz Menu" to player wait 1 tick format slot 10 of player with 1 of Minecart With Hopper named "&aAkcesoria" to run [execute player command "eszketitek"] format slot 13 of player with 1 of sign item named "&aBony" to run [execute player command "eszketitek1"] format slot 16 of player with 1 of beacon named "&aArtefakty" to run [execute player command "eszketitek2"] command /eszketitek: trigger: open chest with 1 rows named "&8Dodatki" to player wait 1 tick if {dodatki.tarcza.%player%} is true: format slot 0 of player with {dodatki.item.tarcza.%player%} with lore "&cAKTYWNY||%{dodatki.lore.tarcza.%player%}%" to close then run [make player execute command "remdodatek tarcza"] else: format slot 0 of player with iron bars named "&cBrak Tarczy" to close if {dodatki.rekawica.%player%} is true: format slot 1 of player with {dodatki.item.rekawica.%player%} with lore "&cAKTYWNY||%{dodatki.lore.rekawica.%player%}%" to close then run [make player execute command "remdodatek rekawica"] else: format slot 1 of player with iron bars named "&cBrak Rekawicy" to close if {dodatki.horcrux.%player%} is true: format slot 2 of player with {dodatki.item.horcrux.%player%} with lore "&cAKTYWNY||%{dodatki.lore.horcrux.%player%}%" to close then run [make player execute command "remdodatek horcrux"] else: format slot 2 of player with iron bars named "&cBrak Horcruxa" to close command /eszketitek1: trigger: open chest with 1 rows named "&8Bony" to player wait 1 tick if {bony.lustro.%player%} is true: format slot 0 of player with {bony.item.lustro.%player%} with lore "&cAKTYWNY||%{bony.lore.lustro.%player%}%" to close then run [make player execute command "remdodatek lustro"] else: format slot 0 of player with iron bars named "&cBrak Lustra" to close if {bony.hieroglify.%player%} is true: format slot 1 of player with {bony.item.hieroglify.%player%} with lore "&cAKTYWNY||%{bony.lore.hieroglify.%player%}%" to close then run [make player execute command "remdodatek hieroglify"] else: format slot 1 of player with iron bars named "&cBrak Starozytnych Hieroglifow" to close command /eszketitek2: trigger: open chest with 1 rows named "&8Artefakty" to player command /remdodatek []: trigger: if arg-1 is "tarcza": if {dodatki.tarcza.%player%} is true: give player {dodatki.item.tarcza.%player%} delete {dodatki.item.tarcza.%player%} delete {dodatki.lore.tarcza.%player%} set {dodatki.blok.tarcza.%player%} to 0 set {dodatki.ochrona.tarcza.%player%} to 0 set {dodatki.tarcza.%player%} to false send "&8[&a✔&8] &aZdjeto wybrany &fdodatek." to player stop if arg-1 is "rekawica": if {dodatki.rekawica.%player%} is true: give player {dodatki.item.rekawica.%player%} delete {dodatki.item.rekawica.%player%} delete {dodatki.lore.rekawica.%player%} set {dodatki.dmg.rekawica.%player%} to 0 set {dodatki.kryt.rekawica.%player%} to 0 set {dodatki.rekawica.%player%} to false send "&8[&a✔&8] &aZdjeto wybrany &fdodatek." to player stop if arg-1 is "horcrux": if {dodatki.horcrux.%player%} is true: give player {dodatki.item.horcrux.%player%} delete {dodatki.item.horcrux.%player%} delete {dodatki.lore.horcrux.%player%} set {dodatki.oklumencja.horcrux.%player%} to 0 set {dodatki.oslabienie.horcrux.%player%} to 0 set {dodatki.dmg.horcrux.%player%} to 0 set {dodatki.horcrux.%player%} to false send "&8[&a✔&8] &aZdjeto wybrany &fdodatek." to player stop if arg-1 is "hieroglify": if {bony.hieroglify.%player%} is true: give player {bony.item.hieroglify.%player%} delete {bony.item.hieroglify.%player%} delete {bony.lore.hieroglify.%player%} set {bony.dmg.hieroglify.%player%} to 0 set {bony.obr.hieroglify.%player%} to 0 set {bony.hieroglify.%player%} to false send "&8[&a✔&8] &7Zdjeto wybrany bon." to player stop if arg-1 is "lustro": if {bony.lustro.%player%} is true: give player {bony.item.lustro.%player%} delete {bony.item.lustro.%player%} delete {bony.lore.lustro.%player%} set {bony.odb.lustro.%player%} to 0 set {bony.obr.lustro.%player%} to 0 set {bony.lustro.%player%} to false send "&8[&a✔&8] &7Zdjeto wybrany bon." to player stop on rightclick: if "%uncoloured name of player's tool%" contains "Tarcza": cancel event set {_lore} to "%lore of player's tool%" set {_l} to "%uncoloured lore of player's tool%" loop 200 times: if "%{_l}%" contains "Wymagany Poziom: %loop-number%": set {_minlvl} to "%loop-number%" parsed as integer if {lvl::lvl::%player%} is bigger than or equal to {_minlvl}: if {dodatki.tarcza.%player%} is true: send "&cMasz juz zalozona tarcze." to player stop else: set {dodatki.tarcza.%player%} to true set {dodatki.item.tarcza.%player%} to player's tool set {dodatki.lore.tarcza.%player%} to {_lore} delete player's tool loop 100 times: if "%{_l}%" contains "Szansa na Blok Ciosu: %loop-number%%%": if loop-number is set: set {dodatki.blok.tarcza.%player%} to "%loop-number%" parsed as integer if "%{_l}%" contains "Ochrona: %loop-number%": if loop-number is set: set {dodatki.ochrona.tarcza.%player%} to "%loop-number%" parsed as integer send "&8[&a✔&8] &aZalozono wybrany &fdodatek." to player send "&aAby zdjac dodatek ktory zalozyles &fwpisz /dodatki" to player stop else: send "&e&lMC&7-&6&lRPG &8» &cTwoj poziom jest zbyt niski!" to player stop if "%uncoloured name of player's tool%" contains "Rekawica": cancel event set {_lore} to "%lore of player's tool%" set {_l} to "%uncoloured lore of player's tool%" loop 200 times: if "%{_l}%" contains "Wymagany Poziom: %loop-number%": set {_minlvl} to "%loop-number%" parsed as integer if {lvl::lvl::%player%} is bigger than or equal to {_minlvl}: if {dodatki.rekawica.%player%} is true: send "&cMasz juz zalozona rekawice." to player stop else: set {dodatki.rekawica.%player%} to true set {dodatki.item.rekawica.%player%} to player's tool set {dodatki.lore.rekawica.%player%} to {_lore} delete player's tool loop 10000 times: if "%{_l}%" contains "Dodatkowe Obrazenia: +%loop-number%": if loop-number is set: set {dodatki.dmg.rekawica.%player%} to "%loop-number%" parsed as integer if "%{_l}%" contains "Szansa na Obrazenie Krytyczne: %loop-number%%%": if loop-number is set: set {dodatki.kryt.rekawica.%player%} to "%loop-number%" parsed as integer send "&8[&a✔&8] &7Zalozono wybrany dodatek." to player send "&7Aby zdjac dodatek ktory zalozyles wpisz &6/dodatki&7." to player stop else: send "&e&lMC&7-&6&lRPG &8» &cTwoj poziom jest zbyt niski!" to player stop if "%uncoloured name of player's tool%" contains "Horcrux": cancel event set {_lore} to "%lore of player's tool%" set {_l} to "%uncoloured lore of player's tool%" loop 200 times: if "%{_l}%" contains "Wymagany Poziom: %loop-number%": set {_minlvl} to "%loop-number%" parsed as integer if {lvl::lvl::%player%} is bigger than or equal to {_minlvl}: if {dodatki.horcrux.%player%} is true: send "&cMasz juz zalozonego horcruxa." to player stop else: set {dodatki.horcrux.%player%} to true set {dodatki.item.horcrux.%player%} to player's tool set {dodatki.lore.horcrux.%player%} to {_lore} delete player's tool loop 10000 times: if "%{_l}%" contains "Oklumencja: %loop-number%": if loop-number is set: set {dodatki.oklumencja.horcrux.%player%} to "%loop-number%" parsed as integer if "%{_l}%" contains "Oslabienie: %loop-number%": if loop-number is set: set {dodatki.oslabienie.horcrux.%player%} to "%loop-number%" parsed as integer if "%{_l}%" contains "Dodatkowe Obrazenia: +%loop-number%": if loop-number is set: set {dodatki.dmg.horcrux.%player%} to "%loop-number%" parsed as integer send "&8[&a✔&8] &7Zalozono wybrany dodatek." to player send "&7Aby zdjac dodatek ktory zalozyles wpisz &6/dodatki&7." to player stop else: send "&e&lMC&7-&6&lRPG &8» &cTwoj poziom jest zbyt niski!" to player stop if "%uncoloured name of player's tool%" contains "Starozytne Hieroglify": cancel event set {_lore} to "%lore of player's tool%" set {_l} to "%uncoloured lore of player's tool%" if {bony.hieroglify.%player%} is true: send "&cBon ""Staroztyne Hieroglify"" jest zalozony." to player stop else: set {bony.hieroglify.%player%} to true set {bony.item.hieroglify.%player%} to player's tool set {bony.lore.hieroglify.%player%} to {_lore} delete player's tool loop 50 times: if "%{_l}%" contains "Dodatkowe Obrazenia: +%loop-number%%%": if loop-number is set: set {bony.dmg.hieroglify.%player%} to "%loop-number%" parsed as integer if "%{_l}%" contains "Dodatkowa Obrona: +%loop-number%%%": if loop-number is set: set {bony.obr.hieroglify.%player%} to "%loop-number%" parsed as integer send "&8[&a✔&8] &7Zalozono wybrany bon." to player send "&7Aby zdjac bon ktory zalozyles wpisz &6/bony&7." to player stop if "%uncoloured name of player's tool%" contains "Szkarlatne Lustro": cancel event set {_lore} to "%lore of player's tool%" set {_l} to "%uncoloured lore of player's tool%" if {bony.lustro.%player%} is true: send "&cBon ""Szkarlatne Lustro"" jest zalozony." to player stop else: set {bony.lustro.%player%} to true set {bony.item.lustro.%player%} to player's tool set {bony.lore.lustro.%player%} to {_lore} delete player's tool loop 100 times: if "%{_l}%" contains "Odbicie Ciosu: %loop-number%%%": if loop-number is set: set {bony.odb.lustro.%player%} to "%loop-number%" parsed as integer if "%{_l}%" contains "Ochrona: %loop-number%": if loop-number is set: set {bony.obr.lustro.%player%} to "%loop-number%" parsed as integer send "&8[&a✔&8] &7Zalozono wybrany bon." to player send "&7Aby zdjac bon ktory zalozyles wpisz &6/bony&7." to player stop command /czydziala []: trigger: send "&2##DODATKI" send "&c##TARCZA" send "Blok ciosow: %{dodatki.blok.tarcza.%player%}%" send "Ochrona: %{dodatki.ochrona.tarcza.%player%}%" send "&c##REKAWICA" send "Kryt: %{dodatki.kryt.rekawica.%player%}%" send "Dodatkowe obrazenia: %{dodatki.dmg.rekawica.%player%}%" send "&c##HORCRUX" send "Dodatkowe obrazenia: %{dodatki.dmg.horcrux.%player%}%" send "Oklumencja: %{dodatki.oklumencja.horcrux.%player%}%" send "Oslabienie %{dodatki.oslabienie.horcrux.%player%}%" send "&2##BONY" send "&c##HIEROGLIF" send "Dodatkowe Obrazenia: %{bony.dmg.hieroglify.%player%}%" send "Dodatkowa Obrona: %{bony.obr.hieroglify.%player%}%" send "&c##LUSTRO" send "Dodatkowe Obrazenia: %{bony.odb.lustro.%player%}%" send "Dodatkowa Obrona: %{bony.obr.lustro.%player%}%" send "&2LVL: &4%{lvl::lvl::%player%}%" command /tarcza [] [] []: permission: core.tarcza permission message: &cTej komendy moze uzywac tylko Administrator! trigger: set lore of player's tool to "&a||&cSzansa na Blok Ciosu: &5%arg-1%%%||&cOchrona: &5%arg-2%||&cWymagany Poziom: &5%arg-3%" stop command /rekawica [] [] []: permission: core.rekawica permission message: &cTej komendy moze uzywac tylko Administrator! trigger: set lore of player's tool to "&a||&cSzansa na Obrazenie Krytyczne: &5%arg-1%%%||&cDodatkowe Obrazenia: &5+%arg-2%||&cWymagany Poziom: &5%arg-3%" stop command /horcrux [] [] [] []: permission: core.horcrux permission message: &cTej komendy moze uzywac tylko Administrator! trigger: set lore of player's tool to "&a||&cOklumencja: &5%arg-1%||&cOslabienie: &5%arg-2%||&cDodatkowe Obrazenia: &5+%arg-3%||&cWymagany Poziom: &5%arg-4%" stop on damage: if {dodatki.rekawica.%attacker%} is true: chance of {dodatki.kryt.rekawica.%attacker%}%: set damage to damage * 2 set damage to damage + {dodatki.dmg.rekawica.%attacker%} if {dodatki.tarcza.%victim%} is true: chance of {dodatki.blok.tarcza.%victim%}%: set damage to 0 set {_ochr} to damage * ( {dodatki.ochrona.tarcza.%victim%} / 100 ) set damage to damage - {_ochr} if {dodatki.horcrux.%victim%} is true: chance of {dodatki.oklumencja.horcrux.%victim%}%: apply wither 10 to the attacker for 10 seconds chance of {dodatki.oslabienie.horcrux.%victim%}%: apply weakness 3 to the attacker for 5 seconds set damage to damage + {dodatki.dmg.horcrux.%attacker%} if {bony.hieroglify.%attacker%} is true: set {_dmg} to damage * ( {bony.dmg.hieroglify.%attacker%} / 100 ) set damage to damage + {_dmg} if {bony.lustro.%victim%} is true: chance of {bony.odb.lustro.%victim%}%: set {_odbicie} to damage increase the damage by {_odbicie} set {_ochr} to damage * ( {bony.obr.lustro.%victim%} / 100 ) set damage to damage - {_ochr}