#dodawanie dyn function addPumpkins(player: player, integer: integer): set {_op} to yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%{_player}%.yml" add {_integer} to {_op} set yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%{_player}%.yml" to {_op} #zabieranie dyn function removePumpkins(player: player, integer: integer): set {_op} to yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%{_player}%.yml" if {_op} is less than {_integer}: set yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%{_player}%.yml" to 0 else: subtract {_integer} from {_op} set yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%{_player}%.yml" to {_op} #sprawdzanie czy gracz posiada X dyn function hasPumpkins(player: player, integer: integer) :: boolean: set {_op} to yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%{_player}%.yml" if {_op} is less than {_integer}: return false else: return true #sprawdzanie ile dyn posiada gracz function checkPumpkins(player: player) :: integer: set {_op} to yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%{_player}%.yml" add 0 to {_op} #bez tego wyzej skrypt nie dziala return {_op} #otwieranie menu, wywolywane z /hw function openMenu(player: player, type: text): #menu glowne if {_type} is "start": open chest with 4 row named "&4jHalloween" to {_player} wait 1 tick #pierwsza linia if inventory name of {_player}'s current inventory is "&4jHalloween": #ilosc dyn format slot 1 of {_player} with 1 of pumpkin named "&6Ilosc dyn: %checkPumpkins({_player})%" with lore "||&7Pokazuje, ile posiadasz dyn." to be unstealable #pomoc format slot 7 of {_player} with 1 of paper named "&6Pomoc" with lore "||&7Wyswietla informacje na||&7na temat jHalloween." to run "ajhconsole %{_player}% open info" #trzecia linia if inventory name of {_player}'s current inventory is "&4jHalloween": #przedmioty potworow format slot 19 of {_player} with 1 of chest named "&6Przedmioty malego potwora" with lore "||&7Zabij malego potwora, aby||&7zyskac &njeden&7 z jego przedmiotow.||&7Kliknij, aby sprawdzic liste||&7przedmiotow, ktore mozesz otrzymac." to run "ajhconsole %{_player}% open small" format slot 21 of {_player} with 1 of chest named "&6Przedmioty sredniego potwora" with lore "||&7Zabij sredniego potwora, aby||&7zyskac &njeden&7 z jego przedmiotow.||&7Kliknij, aby sprawdzic liste||&7przedmiotow, ktore mozesz otrzymac." to run "ajhconsole %{_player}% open medium" format slot 23 of {_player} with 1 of chest named "&6Przedmioty duzego potwora" with lore "||&7Zabij duzego potwora, aby||&7zyskac &njeden&7 z jego przedmiotow.||&7Kliknij, aby sprawdzic liste||&7przedmiotow, ktore mozesz otrzymac." to run "ajhconsole %{_player}% open big" format slot 25 of {_player} with 1 of chest named "&6Przedmioty poteznego potwora" with lore "||&7Zabij poteznego potwora, aby||&7zyskac &njeden&7 z jego przedmiotow.||&7Kliknij, aby sprawdzic liste||&7przedmiotow, ktore mozesz otrzymac." to run "ajhconsole %{_player}% open giant" #czwarta linia if inventory name of {_player}'s current inventory is "&4jHalloween": #walki z potworami if hasPumpkins({_player}, 1000) is true: format slot 28 of {_player} with 1 of wood sword named "&aWalka z malym potworem" with lore "&6Koszt: 1000 dyn||||&7Zabij malego potwora||&7i zyskaj slaby przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to run "ajhconsole %{_player}% confirm small" else: format slot 28 of {_player} with 1 of wood sword named "&aWalka z malym potworem" with lore "&6Koszt: 1000 dyn||||&4Nie posiadasz 1000 dyn.||||&7Zabij malego potwora||&7i zyskaj slaby przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to be unstealable if hasPumpkins({_player}, 9000) is true: format slot 30 of {_player} with 1 of stone sword named "&aWalka z srednim potworem" with lore "&6Koszt: 9000 dyn||||&7Zabij sredniego potwora||&7i zyskaj sredni przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to run "ajhconsole %{_player}% confirm medium" else: format slot 30 of {_player} with 1 of stone sword named "&aWalka z srednim potworem" with lore "&6Koszt: 1000 dyn||||&4Nie posiadasz 9000 dyn.||||&7Zabij sredniego potwora||&7i zyskaj sredni przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to be unstealable if hasPumpkins({_player}, 45000) is true: format slot 32 of {_player} with 1 of iron sword named "&aWalka z duzym potworem" with lore "&6Koszt: 45000 dyn||||&7Zabij duzego potwora||&7i zyskaj dobry przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to run "ajhconsole %{_player}% confirm big" else: format slot 32 of {_player} with 1 of iron sword named "&aWalka z duzym potworem" with lore "&6Koszt: 45000 dyn||||&4Nie posiadasz 45000 dyn.||||&7Zabij duzego potwora||&7i zyskaj dobry przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to be unstealable if hasPumpkins({_player}, 100000) is true: format slot 34 of {_player} with 1 of diamond sword named "&aWalka z poteznym potworem" with lore "&6Koszt: 100000 dyn||||&7Zabij poteznego potwora||&7i zyskaj epicki przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to run "ajhconsole %{_player}% confirm giant" else: format slot 34 of {_player} with 1 of diamond sword named "&aWalka z poteznym potworem" with lore "&6Koszt: 100000 dyn||||&4Nie posiadasz 100000 dyn.||||&7Zabij poteznego potwora||&7i zyskaj epicki przedmiot.||&7Lista dostepnych przedmiotow||&7jest widoczna ikonke wyzej." to be unstealable #menu zawierajace informacje na temat eventu if {_type} is "info": close {_player}'s inventory send "&6&ljHalloween" to {_player} send "&7Jest to event, jak sama nazwa mowi, odbywajacy sie podczas halloween. W czasie jego trwania mozesz zbierac wirtualne dynie, podczas roznych czynnosci, takich jak zabijanie graczy, kopanie, budowanie, wedkowanie, czy tez sama aktywnosc online." to {_player} send "&7Nastepnie, korzystajac z komendy /halloween, mozesz losowac rozne przedmioty." to {_player} #menu zawierajace ekwipunek malego potwora if {_type} is "small": open chest with 1 row named "&4Ekwipunek malego potwora" to {_player} wait 1 tick #wyswietlenie wszystkich przedmiotow if inventory name of {_player}'s current inventory is "&4Ekwipunek malego potwora": format slot 0 of {_player} with 32 of obsidian to be unstealable format slot 1 of {_player} with 64 of sand to be unstealable format slot 2 of {_player} with 8 of diamonds to be unstealable format slot 3 of {_player} with 16 of emeralds to be unstealable format slot 4 of {_player} with 64 of bottle o' enchanting to be unstealable format slot 5 of {_player} with 1 of golden apple:1 to be unstealable format slot 6 of {_player} with 1 of ender chest to be unstealable format slot 7 of {_player} with 1 of enchantment table to be unstealable format slot 8 of {_player} with 1 of anvil to be unstealable #menu zawierajace ekwipunek sredniego potwora if {_type} is "medium": open chest with 1 row named "&4Ekwipunek sredniego potwora" to {_player} wait 1 tick #wyswietlenie wszystkich przedmiotow if inventory name of {_player}'s current inventory is "&4Ekwipunek sredniego potwora": format slot 0 of {_player} with 1 of obsidian named "&6256 sztuk" to be unstealable format slot 1 of {_player} with 1 of sand named "&6512 sztuk" to be unstealable format slot 2 of {_player} with 1 of diamonds named "&664 sztuki" to be unstealable format slot 3 of {_player} with 1 of emeralds named "&6256 sztuk" to be unstealable format slot 4 of {_player} with 1 of bottle o' enchanting named "&6512 sztuk" to be unstealable format slot 5 of {_player} with 1 of diamond boots of protection 4 and unbreaking 3 to be unstealable format slot 6 of {_player} with 1 of diamond leggings of protection 4 and unbreaking 3 to be unstealable format slot 7 of {_player} with 1 of diamond chestplate of protection 4 and unbreaking 3 to be unstealable format slot 8 of {_player} with 1 of diamond helmet of protection 4 and unbreaking 3 to be unstealable #menu zawierajace ekwipunek duzego potwora if {_type} is "big": open chest with 1 row named "&4Ekwipunek duzego potwora" to {_player} wait 1 tick #wyswietlenie wszystkich przedmiotow if inventory name of {_player}'s current inventory is "&4Ekwipunek duzego potwora": format slot 0 of {_player} with 1 of obsidian named "&61024 sztuki" to be unstealable format slot 1 of {_player} with 1 of sand named "&62048 sztuk" to be unstealable format slot 2 of {_player} with 1 of diamonds named "&6256 sztuk" to be unstealable format slot 3 of {_player} with 1 of emeralds named "&6512 sztuk" to be unstealable format slot 4 of {_player} with 1 of bottle o' enchanting named "&61024 sztuki" to be unstealable format slot 5 of {_player} with 1 of diamond boots of protection 6 and unbreaking 5 and mending 1 named "&aButy nieumarlego" to be unstealable format slot 6 of {_player} with 1 of diamond leggings of protection 6 and unbreaking 5 and mending 1 named "&aSpodnie nieumarlego" to be unstealable format slot 7 of {_player} with 1 of diamond chestplate of protection 6 and unbreaking 5 and mending 1 named "&aZbroja nieumarlego" to be unstealable format slot 8 of {_player} with 1 of diamond helmet of protection 6 and unbreaking 5 and mending 1 named "&aHelm nieumarlego" to be unstealable #menu zawierajace ekwipunek poteznego potwora if {_type} is "giant": open chest with 1 row named "&4Ekwipunek poteznego potwora" to {_player} wait 1 tick #wyswietlenie wszystkich przedmiotow if inventory name of {_player}'s current inventory is "&4Ekwipunek poteznego potwora": format slot 3 of {_player} with 1 of diamond sword of sharpness 6 and unbreaking 5 and fire aspect 2 and looting 3 and mending 1 named "&aOstrze nieumarlego" to be unstealable format slot 4 of {_player} with 1 of bow of power 6 and unbreaking 5 and punch 2 and infinity 1 and mending 1 named "&aLuk nieumarlego" to be unstealable format slot 5 of {_player} with 1 of chest named "&aSkrzynia nieumarlego" with lore "&7Zawiera:||&7- Buty nieumarlego||&7- Spodnie nieumarlego||&7- Zbroja nieumarlego||&7- Helm nieumarlego||&7- Ostrze nieumarlego||&7- Luk nieumarlego" to be unstealable #potwierdzanie walki function confirm(player: player, type: text): open chest with 1 row named "&4Potwierdzenie" to {_player} wait 1 tick #wyswietlenie wszystkich przedmiotow if inventory name of {_player}'s current inventory is "&4Potwierdzenie": loop 3 times: format slot (loop-number - 1) of {_player} with 1 of light green wool block named "&aPotwierdzam" to run "ajhconsole %{_player}% battle %{_type}%" loop 3 times: format slot loop-number+5 of {_player} with 1 of red wool block named "&cAnuluj" to run "ajhconsole %{_player}% deny x" if {_type} is "small": format slot 4 of {_player} with 1 of paper named "&6Czy na pewno chcesz wydac" with lore "&61000 dyn na walke z tym potworem?" to be unstealable if {_type} is "medium": format slot 4 of {_player} with 1 of paper named "&6Czy na pewno chcesz wydac" with lore "&69000 dyn na walke z tym potworem?" to be unstealable if {_type} is "big": format slot 4 of {_player} with 1 of paper named "&6Czy na pewno chcesz wydac" with lore "&645000 dyn na walke z tym potworem?" to be unstealable if {_type} is "giant": format slot 4 of {_player} with 1 of paper named "&6Czy na pewno chcesz wydac" with lore "&6100000 dyn na walke z tym potworem?" to be unstealable #walki z potworami function battle(player: player, type: text): close {_player}'s inventory #walka z malym potworem if {_type} is "small": if hasPumpkins({_player}, 1000) is true: if {_player} has enough space for 64 bedrock: removePumpkins({_player}, 1000) set {_op} to random integer between 1 and 9 if {_op} is 1: give {_player} 32 of obsidian send "&6&ljHalloween" to {_player} send "&aWygrales 32 obsydianu!" to {_player} if {_op} is 2: give {_player} 64 of sand send "&6&ljHalloween" to {_player} send "&aWygrales 64 piasku!" to {_player} if {_op} is 3: give {_player} 8 of diamonds send "&6&ljHalloween" to {_player} send "&aWygrales 8 diamentow!" to {_player} if {_op} is 4: give {_player} 16 of emeralds send "&6&ljHalloween" to {_player} send "&aWygrales 16 szmaragdow!" to {_player} if {_op} is 5: give {_player} 64 of bottle o' enchanting send "&6&ljHalloween" to {_player} send "&aWygrales 64 butelki z expem!" to {_player} if {_op} is 6: give {_player} 1 of golden apple:1 send "&6&ljHalloween" to {_player} send "&aWygrales 1 zlote jablko!" to {_player} if {_op} is 7: give {_player} 1 of ender chest send "&6&ljHalloween" to {_player} send "&aWygrales 1 skrzynie kresu!" to {_player} if {_op} is 8: give {_player} 1 of enchantment table send "&6&ljHalloween" to {_player} send "&aWygrales 1 stol do enchantu!" to {_player} if {_op} is 9: give {_player} 1 of anvil send "&6&ljHalloween" to {_player} send "&aWygrales 1 kowadlo!" to {_player} else: send "&6&ljHalloween" to {_player} send "&cMusisz miec miejsce w ekwipunku, na kazdy przedmiot. Zwolnij przynajmniej 1 slot." to {_player} else: send "&6&ljHalloween" to {_player} send "&cWystapil blad, ktorego sie spodziewalismy. ;)" to {_player} send "&cSprobuj ponownie." to {_player} #walka z srednim potworem if {_type} is "medium": if hasPumpkins({_player}, 9000) is true: if {_player} has enough space for 512 bedrock: removePumpkins({_player}, 9000) set {_op} to random integer between 1 and 9 if {_op} is 1: give {_player} 256 of obsidian send "&6&ljHalloween" to {_player} send "&aWygrales 256 obsydianu!" to {_player} if {_op} is 2: give {_player} 512 of sand send "&6&ljHalloween" to {_player} send "&aWygrales 512 piasku!" to {_player} if {_op} is 3: give {_player} 64 of diamonds send "&6&ljHalloween" to {_player} send "&aWygrales 64 diamenty!" to {_player} if {_op} is 4: give {_player} 256 of emeralds send "&6&ljHalloween" to {_player} send "&aWygrales 256 szmaragdow!" to {_player} if {_op} is 5: give {_player} 512 of bottle o' enchanting send "&6&ljHalloween" to {_player} send "&aWygrales 512 butelek z expem!" to {_player} if {_op} is 6: give {_player} 1 of diamond boots of protection 4 and unbreaking 3 send "&6&ljHalloween" to {_player} send "&aWygrales diamentowe buty 4/3!" to {_player} if {_op} is 7: give {_player} 1 of diamond leggings of protection 4 and unbreaking 3 send "&6&ljHalloween" to {_player} send "&aWygrales diamentowe spodnie 4/3!" to {_player} if {_op} is 8: give {_player} 1 of diamond chestplate of protection 4 and unbreaking 3 send "&6&ljHalloween" to {_player} send "&aWygrales diamentowa zbroje 4/3!" to {_player} if {_op} is 9: give {_player} 1 of diamond helmet of protection 4 and unbreaking 3 send "&6&ljHalloween" to {_player} send "&aWygrales diamentowy helm 4/3!" to {_player} else: send "&6&ljHalloween" to {_player} send "&cMusisz miec miejsce w ekwipunku, na kazdy przedmiot. Zwolnij przynajmniej 8 slotow." to {_player} else: send "&6&ljHalloween" to {_player} send "&cWystapil blad, ktorego sie spodziewalismy. ;)" to {_player} send "&cSprobuj ponownie." to {_player} #walka z duzym potworem if {_type} is "big": if hasPumpkins({_player}, 45000) is true: if {_player} has enough space for 2048 bedrock: removePumpkins({_player}, 45000) set {_op} to random integer between 1 and 9 if {_op} is 1: give {_player} 1024 of obsidian send "&6&ljHalloween" to {_player} send "&aWygrales 1024 obsydianu!" to {_player} if {_op} is 2: give {_player} 2048 of sand send "&6&ljHalloween" to {_player} send "&aWygrales 2048 piasku!" to {_player} if {_op} is 3: give {_player} 256 of diamonds send "&6&ljHalloween" to {_player} send "&aWygrales 256 diamentow!" to {_player} if {_op} is 4: give {_player} 512 of emeralds send "&6&ljHalloween" to {_player} send "&aWygrales 512 szmaragdow!" to {_player} if {_op} is 5: give {_player} 1024 of bottle o' enchanting send "&6&ljHalloween" to {_player} send "&aWygrales 1024 butelki z expem!" to {_player} if {_op} is 6: give {_player} 1 of diamond boots of protection 6 and unbreaking 5 and mending 1 named "&aButy nieumarlego" send "&6&ljHalloween" to {_player} send "&aWygrales buty nieumarlego!" to {_player} if {_op} is 7: give {_player} 1 of diamond leggings of protection 6 and unbreaking 5 and mending 1 named "&aSpodnie nieumarlego" send "&6&ljHalloween" to {_player} send "&aWygrales spodnie nieumarlego!" to {_player} if {_op} is 8: give {_player} 1 of diamond chestplate of protection 6 and unbreaking 5 and mending 1 named "&aZbroja nieumarlego" send "&6&ljHalloween" to {_player} send "&aWygrales zbroje nieumarlego!" to {_player} if {_op} is 9: give {_player} 1 of diamond helmet of protection 6 and unbreaking 5 and mending 1 named "&aHelm nieumarlego" send "&6&ljHalloween" to {_player} send "&aWygrales helm nieumarlego!" to {_player} else: send "&6&ljHalloween" to {_player} send "&cMusisz miec miejsce w ekwipunku, na kazdy przedmiot. Zwolnij przynajmniej 32 sloty." to {_player} else: send "&6&ljHalloween" to {_player} send "&cWystapil blad, ktorego sie spodziewalismy. ;)" to {_player} send "&cSprobuj ponownie." to {_player} #walka z poteznym potworem if {_type} is "giant": if hasPumpkins({_player}, 100000) is true: if {_player} has enough space for 64 bedrock: removePumpkins({_player}, 100000) set {_op} to random integer between 1 and 3 if {_op} is 1: give {_player} 1 of diamond sword of sharpness 6 and unbreaking 5 and fire aspect 2 and looting 3 and mending 1 named "&aOstrze nieumarlego" send "&6&ljHalloween" to {_player} send "&aWygrales ostrze nieumarlego!" to {_player} if {_op} is 2: give {_player} 1 of bow of power 6 and unbreaking 5 and punch 2 and infinity 1 and mending 1 named "&aLuk nieumarlego" send "&6&ljHalloween" to {_player} send "&aWygrales luk nieumarlego!" to {_player} if {_op} is 3: give {_player} 1 of chest named "&aSkrzynia nieumarlego" with lore "&7Zawiera:||&7- Buty nieumarlego||&7- Spodnie nieumarlego||&7- Zbroja nieumarlego||&7- Helm nieumarlego||&7- Ostrze nieumarlego||&7- Luk nieumarlego" send "&6&ljHalloween" to {_player} send "&aWygrales skrzynie nieumarlego!" to {_player} else: send "&6&ljHalloween" to {_player} send "&cMusisz miec miejsce w ekwipunku, na kazdy przedmiot. Zwolnij przynajmniej 1 slot." to {_player} else: send "&6&ljHalloween" to {_player} send "&cWystapil blad, ktorego sie spodziewalismy. ;)" to {_player} send "&cSprobuj ponownie." to {_player} #przyznawanie dyn za kopanie i niszczenie on mine of stone: if {pumpkins.%player%} is less than 250: add 2 to {pumpkins.%player%} on mine of iron ore: add 5 to {pumpkins.%player%} on mine of coal ore: add 5 to {pumpkins.%player%} on mine of gold ore: add 7 to {pumpkins.%player%} on mine of emerald ore: add 7 to {pumpkins.%player%} on mine of diamond ore: add 12 to {pumpkins.%player%} #przyznawanie dyn za budowanie on place: add 3 to {pumpkins.%player%} #przyznawania dyn za zabijanie on death: if victim is a player: if attacker is a player: if attacker's ip is not victim's ip: add 300 to {pumpkins.%attacker%} #tworzenie folderu przy ladowaniu skryptu on script load: if dir "plugins/Skript/scripts/jhalloween" doesn't exist: create dir "plugins/Skript/scripts/jhalloween" #tworzenie pliku przy pierwszym wejsciu, ustawianie zmiennej on join: if {pumpkins.%player%} is not set: set {pumpkins.%player%} to 0 if file "plugins/Skript/scripts/jhalloween/%player%.yml" doesn't exist: create file "plugins/Skript/scripts/jhalloween/%player%.yml" set yaml value "pumpkins" from "plugins/Skript/scripts/jhalloween/%player%.yml" to 0 #zamienianie zmiennej na zapis przy wychodzeniu z serwera on quit: if {pumpkins.%player%} is greater than 300: set {pumpkins.%player%} to 300 addPumpkins(player, {pumpkins.%player%}) set {pumpkins.%player%} to 0 #otrzymywanie zestawu nieumarlego on rightclick: if player's tool is chest named "&aSkrzynia nieumarlego" with lore "&7Zawiera:||&7- Buty nieumarlego||&7- Spodnie nieumarlego||&7- Zbroja nieumarlego||&7- Helm nieumarlego||&7- Ostrze nieumarlego||&7- Luk nieumarlego": cancel event if player has 2 of chest named "&aSkrzynia nieumarlego" with lore "&7Zawiera:||&7- Buty nieumarlego||&7- Spodnie nieumarlego||&7- Zbroja nieumarlego||&7- Helm nieumarlego||&7- Ostrze nieumarlego||&7- Luk nieumarlego": send "&6&ljHalloween" send "&cMusisz posiadac w ekwipunku TYLKO jedna skrzynie. Pozostale mozesz odlozyc. ;)" stop if player has enough space for 384 of bedrock: remove chest named "&aSkrzynia nieumarlego" with lore "&7Zawiera:||&7- Buty nieumarlego||&7- Spodnie nieumarlego||&7- Zbroja nieumarlego||&7- Helm nieumarlego||&7- Ostrze nieumarlego||&7- Luk nieumarlego" from the player give player 1 of diamond sword of sharpness 6 and unbreaking 5 and fire aspect 2 and looting 3 and mending 1 named "&aOstrze nieumarlego" give player 1 of bow of power 6 and unbreaking 5 and punch 2 and infinity 1 and mending 1 named "&aLuk nieumarlego" give player 1 of diamond boots of protection 6 and unbreaking 5 and mending 1 named "&aButy nieumarlego" give player 1 of diamond leggings of protection 6 and unbreaking 5 and mending 1 named "&aSpodnie nieumarlego" give player 1 of diamond chestplate of protection 6 and unbreaking 5 and mending 1 named "&aZbroja nieumarlego" give player 1 of diamond helmet of protection 6 and unbreaking 5 and mending 1 named "&aHelm nieumarlego" else: send "&6&ljHalloween" send "&cZwolnij 6 slotow." #zamieniania zmiennej na zapis co minute #przyznawanie dyn za bycie online every 1 minute: loop all players: add 20 to {pumpkins.%loop-player%} if {pumpkins.%loop-player%} is greater than 300: set {pumpkins.%loop-player%} to 300 addPumpkins(loop-player, {pumpkins.%loop-player%}) set {pumpkins.%loop-player%} to 0 #komenda dla graczy otwierajaca gui command /jhalloween: aliases: jhw, hw, halloween trigger: openMenu(player, "start") #komenda wykonywana przez konsole w celu poprawnego dzialania skryptu command /ajhconsole : trigger: if arg-player is set: if arg 2 is "open": if arg 3 is "small": openMenu(player-arg, "small") if arg 3 is "medium": openMenu(player-arg, "medium") if arg 3 is "big": openMenu(player-arg, "big") if arg 3 is "giant": openMenu(player-arg, "giant") if arg 3 is "info": openMenu(player-arg, "info") if arg 2 is "confirm": if arg 3 is "small": confirm(player-arg, "small") if arg 3 is "medium": confirm(player-arg, "medium") if arg 3 is "big": confirm(player-arg, "big") if arg 3 is "giant": confirm(player-arg, "giant") if arg 2 is "battle": if arg 3 is "small": battle(player-arg, "small") if arg 3 is "medium": battle(player-arg, "medium") if arg 3 is "big": battle(player-arg, "big") if arg 3 is "giant": battle(player-arg, "giant") if arg 2 is "deny": if arg 3 is "x": close player-arg's inventory