options: tag: &2[Skrzynia]&3 #Ile mozna dopisac ludzi do 1 skrzynki? ilosc_gosci: 6 #Zabezpieczenie przed wybuchem TNT: tnt: false #Wiadomosci: cmd_brak_klucza: &cAby wykonac ta komende musisz trzymac w lapce klucz do skrzyni. cmd_nie_jestes_wlascicielem: &cMusisz byc wlascicielem klucza aby dodac kogos do niego. cmd_za_duzo_gosci: &cDo klucza mozna dodac tylko 6 graczy! cmd_podaj_nick: &cPodaj nick gracza. cmd_to_nie_twoj_klucz: &cMusisz byc wlascicielem klucza! cmd_ten_gracz_jest_juz_dodany: &cTen gracz jest juz dodany do klucza. cmd_nie_ma_takiego_gracza: &cNick tego gracza nie wystepuje w kluczu... obcy_otwiera: &cNie masz uprawnien nie_jestes_wlascicielem_kluczaWskrzyni: &cNie jestes wlascicielem skrzyni! klucz_w_skrzyni: &cNajpierw wyjmij klucz! antigrief: &cNie mozna niszczyc podlogi na ktorej stoi skrzynia! # -=-=-=-=-=-=-=-=-=-=-=- KONIEC OPCJI -=-=-=-=-=-=-=-=-=-=-=- # on load: register new shaped recipe for glowing paper named "&eKlucz do skrzyni" using air, air, air, paper, air, feather, air, air, ink sack stop on inventory click: slot clicked slot of player's inventory is paper of Infinity 69 named "&eKlucz do skrzyni": lore of slot clicked slot of player's inventory is "" set lore of slot clicked slot of player's inventory to "&7&lWlasciciel:&7 %player%" player's targeted block is workbench: clicked slot is 0 slot 0 of player's current inventory is paper of Infinity 69 named "&eKlucz do skrzyni" set slot 0 of player's current inventory to glowing paper named "&eKlucz do skrzyni" with lore "&7&lWlasciciel:&7 %player%" wait 2 tick loop all items in player's inventory: loop-item is paper of Infinity 69 named "&eKlucz do skrzyni" lore of loop-item is "" or " ": set {_item} to loop-item set loop-item to {_item} with lore "&7&lWlasciciel:&7 %player%" wait 1 tick stop player doesn't have permission "skript.admin" player's targeted block is chest "%slot clicked slot of player's current inventory%" is "paper of Infinity 69 named ""&eKlucz do skrzyni""" loop all items in player's current inventory: loop-item is paper of Infinity 69 name of loop-item is "&eKlucz do skrzyni" lore of loop-item is set "%lore of loop-item%" doesn't contain "&7&lWlasciciel:&7 %player%" cancel event close player's inventory send "{@nie_jestes_wlascicielem_kluczaWskrzyni}" exit loop stop on explosion: "{@tnt}" is "true" loop exploded blocks: loop-block is chest: loop-block has paper of Infinity 69: cancel event set block below loop-block to dirt create a fake explosion at event-location else: set loop-block to air stop on break: block above event-block is chest block above event-block has paper of Infinity 69 player doesn't have permission "skript.admin" cancel event send "{@antigrief}" stop on pickup paper of Infinity 69: player doesn't have permission "skript.admin" lore of item is set "%lore of item%" doesn't contain "&7&lWlasciciel:&7 %player%" cancel event stop on break chest: cancel event event-block has paper of Infinity 69: player doesn't have permission "skript.admin" loop all items in event-block: loop-item is paper of Infinity 69 named "&eKlucz do skrzyni" lore of loop-item is set "%lore of loop-item%" doesn't contain "&7&lWlasciciel:&7 %player%" send "{@nie_jestes_wlascicielem_kluczaWskrzyni}" stop send "{@klucz_w_skrzyni}" stop set event-block to air stop on rightclick on chest: event-block has paper of Infinity 69 loop all items in event-block: loop-item is paper of Infinity 69 name of loop-item is "&eKlucz do skrzyni" player doesn't have permission "skript.admin" lore of loop-item is set "%lore of loop-item%" doesn't contain "'%player%'" or "&7&lWlasciciel:&7 %player%" cancel event send "{@obcy_otwiera}" stop command /skrzynia [] []: aliases: chest trigger: arg 1 is not set: send "{@tag} Skrypt zabezpieczajacy skrzynki. Oto komendy:" send "&8/skrzynia&7 dodaj &3 aby dodac gracza" send "&8/skrzynia&7 usun &3 aby usunac gracza" send "&8/skrzynia&7 info&3 informacje o skrypcie" stop arg 1 is "dodaj": "%player's tool%" is "paper of Infinity 69 named ""&eKlucz do skrzyni""": arg 2 is not set: send "{@cmd_podaj_nick}" stop "%lore of player's tool%" doesn't contain "&7&lWlasciciel:&7 %player%": player doesn't have permission "skript.admin" send "{@cmd_to_nie_twoj_klucz}" stop "%lore of player's tool%" contains "&8'%arg 2%'" or "&7&lWlasciciel:&7 %arg 2%": send "{@cmd_ten_gracz_jest_juz_dodany}" stop set {_lore} to "%lore of player's tool%" loop {@ilosc_gosci} times: "%{_lore}%" contains "&0[%loop-number%]" set {_num} to loop-number exit loop {_num} is not set: send "{@cmd_za_duzo_gosci}" stop replace " &0[%{_num}%]" with "" in {_lore} add 1 to {_num} {_num} is 2: set lore of player's tool to "%{_lore}%||&7Dodani: &8'%arg 2%' &0[%{_num}%]" else: "%({_num}/2)%" contains ".": set lore of player's tool to "%{_lore}% &8'%arg 2%' &0[%{_num}%]" else: set lore of player's tool to "%{_lore}%||&8'%arg 2%' &0[%{_num}%]" send "{@tag} Dodano '%arg 2%' do tego klucza." stop send "{@cmd_brak_klucza}" stop arg 1 is "usun": "%player's tool%" is "paper of Infinity 69 named ""&eKlucz do skrzyni""": arg 2 is not set: send "{@cmd_podaj_nick}" stop "%lore of player's tool%" doesn't contain "&7&lWlasciciel:&7 %player%": player doesn't have permission "skript.admin" send "{@cmd_to_nie_twoj_klucz}" stop set {_lore} to "%lore of player's tool%" loop ({@ilosc_gosci}+1) times: "%{_lore}%" contains "&0[%loop-number%]" set {_num} to loop-number set {_num2} to (loop-number - 1) exit loop "%{_lore}%" contains "&8'%arg 2%'||": replace "&8'%arg 2%'||" with "" in {_lore} replace "&0[%{_num}%]" with "&0[%{_num2}%]" in {_lore} set lore of tool to "%{_lore}%" send "{@tag} Usunieto '%arg 2%' z tego klucza." stop "%{_lore}%" contains "||&8'%arg 2%'": replace "||&8'%arg 2%'" with "" in {_lore} replace "&0[%{_num}%]" with "&0[%{_num2}%]" in {_lore} set lore of tool to "%{_lore}%" send "{@tag} Usunieto '%arg 2%' z tego klucza." stop "%{_lore}%" contains " &8'%arg 2%' ": replace "&8'%arg 2%'" with "||" in {_lore} replace "&0[%{_num}%]" with "&0[%{_num2}%]" in {_lore} set lore of tool to "%{_lore}%" send "{@tag} Usunieto '%arg 2%' z tego klucza." stop "%{_lore}%" contains " &8'%arg 2%'": replace "&8'%arg 2%'" with "" in {_lore} replace "&0[%{_num}%]" with "&0[%{_num2}%]" in {_lore} set lore of tool to "%{_lore}%" send "{@tag} Usunieto '%arg 2%' z tego klucza." stop send "{@cmd_nie_ma_takiego_gracza}" stop send "{@cmd_brak_klucza}" stop arg 1 is "info": send json of "{@tag} &3Pomyslodawca &3skryptu &3jest &3x0dus, &3a &3stworzyl &3Nizax &3specjalnie &3dla &3CreeperWorld.pl" tooltip "&ekliknij aby przejsc na forum serwera" open "http://creeperworld.pl/portal.php" to player stop send "&cWpisz poprawnie komende." stop # by Nizax