#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # Autor: Bakkit # # Version: 1.0 # # Skype: replay_games # # Skript.pl: Bakkit; # # skript.pl/profil/3432-bakkit/ # #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # Nie będę się rozpisywał co można# # a czego nie mozna usuwać w sk, # # bo wiem że nie jest to zazwyczaj# # przestrzegane i każdy edytuje co# # chce, ale będę bardzo wdzięczny # # Ci jeśli nie usuniesz komendy # # z info o autorze. Dlaczego? # # Chce poprostu, aby mały kawałek # # świata o mnie usłyszał. Wkońcu # # prawie nikt nie patrzy na to. # # DZIĘKUJE! # #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # SZUKASZ PROFESJONALNEGO SKRYPTERA NA SERWER?! # # PISZ DO MNIE NA FORUM SKRIPT.PL! (LINK WYZEJ) # #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# #-#-#-#-#-#-#-#-#-#-# # # # KONFIGURACJA # # # #-#-#-#-#-#-#-#-#-#-# options: #Nazwa małej skrzyni mala: &c&k| &aMala Skrzynia &c&k| #Nazwa średniej skrzyni srednia: &c&k| &aSrednia Skrzynia &c&k| #Nazwa dużej skrzyni duza: &c&k| &aDuza Skrzynia &c&k| #Nazwa wielkiej skrzyni wielka: &c&k| &aWielka Skrzynia &c&k| #Nazwa klucza klucz: &c&k| &aKlucz &c&k| #Nazwa serwera (używana tylko w informacji z autorem) serwer: Serwer.pl #Przedsionek wiadomości tag: &8[&a&lDropChest&8] #Czy do otworzenia skrzyń są wymagane klucze (true/false) keys: true #Z jakich mobów mogą dropić skrzynie mobs: zombie or skeleton or enderman or creeper or silverfish or blaze #Czy event ma być cały czas włączony (true/false) event: false #Czy wiadomości mają być włączone (true/false) messages: true #Czy dźwięki mają być włączone (true/false) sound: true #Szansa na drop małej skrzyni chancemala: 10% #Szansa na drop średniej skrzyni chancesrednia: 5% #Szansa na drop dużej skrzyni chanceduza: 2.5% #Szansa na drop wielkiej skrzyni chancemala: 2.5% #Nagrody z małej skrzyni nagrodamala: 1 diamond or 1 golden ingot or 1 iron ingot #Nagrody ze śrendniej skrzyni nagrodasrednia: 2 diamond or 2 golden ingot or 2 iron ingot #Nagrody z dużej skrzyni nagrodaduza: 3 diamond or 3 golden ingot or 3 iron ingot #Nagrody z wielkiej skrzyni nagrodawielka: 4 diamond or 4 golden ingot or 4 iron ingot on load: set {DropChest::keys} to {@klucze} set {DropChest::event} to {@event} set {DropChest::messages} to {@messages} set {DropChest::sound} to {@sound} #-#-#-#-#-#-#-#-#-#-# # # # KOMENDY # # # #-#-#-#-#-#-#-#-#-#-# command /dropchest [] []: permission: dropchest.* permission message: &fUnknown command, type /help for help. aliases: dchest, dropc, dc trigger: if arg 1 is not set: send "&7● &8» &7/dropchest &astart &8« &7●" send "&7● &8» &7/dropchest &astop &8« &7●" send "&7● &8» &7/dropchest &aklucz &8« &7●" send "&7● &8» &7/dropchest &aautor &8« &7●" if arg 1 is "start": set {DropChest::event} to true if {DropChest::messages} is true: broadcast "{@tag} &aEvent DropChest zostal wlaczony! Zabijaj moby oraz graczy aby zdobywac nagrody!" if {DropChest::sound} is true: loop all players: play raw sound "fireworks.blast1" at loop-player with pitch 1 volume 5 if arg 1 is "stop": set {DropChest::event} to false if {DropChest::messages} is true: broadcast "{@tag} &aEvent DropChest zostal wylaczony! Mamy nadzieje ze dobrze sie bawiles! :)" if {DropChest::sound} is true: loop all players: play raw sound "random.levelup" at loop-player with pitch 1 volume 5 if arg 1 is "klucz": if argument-offlineplayer is set: if argument-offlineplayer is online: give 1 tripwire hook named "{@klucz}" to the argument-offlineplayer's inventory else: send "{@tag} &cGracz nie jest online" else: send "{@tag} &cPodaj nick gracza" if arg 1 is "autor": send "&7● &8» &7Autor: &6Bakkit &8« &7●" send "&7● &8» &7Profil: &6https://skript.pl/profil/3432-bakkit/ &8« &7●" send "&7● &8» &7Dla: &6{@serwer} &8« &7●" if arg 1 is not "klucz" or "stop" or "start" or "autor": send "{@tag} &cNie poprawny argument." execute player command "/dropchest" #-#-#-#-#-#-#-#-#-#-# # # # DROP SKRZYŃ # # # #-#-#-#-#-#-#-#-#-#-# on death of {@mobs}: if {DropChest::event} is true: if attacker is player: chance of {@chancemala}: drop 1 chest named "{@mala}" at victim if {ChestDrop::messages} is true: send "{@tag} &aGratulacje! &7Znalazles &aMala Skrzynia" to the attacker if {ChestDrop::sound} is true: play raw sound "fireworks.launch1" at attacker with pitch 1 volume 5 chance of {@chancesrednia}: drop 1 chest named "{@srednia}" at victim if {ChestDrop::messages} is true: send "{@tag} &aGratulacje! &7Znalazles &aSrednia Skrzynia" to the attacker if {ChestDrop::sound} is true: play raw sound "fireworks.launch1" at attacker with pitch 1 volume 5 chance of {@chanceduza}: drop 1 chest named "{@duza}" at victim if {ChestDrop::messages} is true: send "{@tag} &aGratulacje! &7Znalazles &aDuza Skrzynia" to the attacker if {ChestDrop::sound} is true: play raw sound "fireworks.launch1" at attacker with pitch 1 volume 5 chance of {@chancewielka}: if player has permission "dropchest.vip": drop 1 chest named "{@wielka}" at victim if {ChestDrop::messages} is true: send "{@tag} &aGratulacje! &7Znalazles &aWielka Skrzynia" to the attacker if {ChestDrop::sound} is true: play raw sound "fireworks.launch1" at attacker with pitch 1 volume 5 #-#-#-#-#-#-#-#-#-#-# # # #OGŁOSZENIE CO 5 MIN# # # #-#-#-#-#-#-#-#-#-#-# every 5 minutes: if {DropChest::event} is true: broadcast "{@tag} &aEvent DropChest jest aktywny! Zabijaj moby oraz graczy aby zgarniac nagrody!" if {DropChest::sound} is true: play raw sound "random.pop" at attacker with pitch 1 volume 5 #-#-#-#-#-#-#-#-#-#-# # # # OTWIERANIE SKRZYŃ # # # #-#-#-#-#-#-#-#-#-#-# on place of chest: if name of chest is "{@mala}": if {DropChest::keys} is true: if player has 1 tripwire hook named "{@klucz}": set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodamala} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Mala Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@mala}" from player's inventory remove 1 tripwire hook named "{@klucz}" from player's inventory else: set event-block to air give 1 chest named "{@mala}" to the player's inventory send "{@tag} &cPotrzebujesz klucza aby otworzyc skrzynie!" else: set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodamala} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Mala Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@mala}" from player's inventory if name of chest is "{@srednia}": if {DropChest::keys} is true: if player has 1 tripwire hook named "{@klucz}": set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodasrednia} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Srednia Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@srednia}" from player's inventory remove 1 tripwire hook named "{@klucz}" from player's inventory else: set event-block to air give 1 chest named "{@srednia}" to the player's inventory send "{@tag} &cPotrzebujesz klucza aby otworzyc skrzynie!" else: set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodasrednia} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Srednia Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@srednia}" from player's inventory if name of chest is "{@duza}": if {DropChest::keys} is true: if player has 1 tripwire hook named "{@klucz}": set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodaduza} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Duza Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@duza}" from player's inventory remove 1 tripwire hook named "{@klucz}" from player's inventory else: set event-block to air give 1 chest named "{@duza}" to the player's inventory send "{@tag} &cPotrzebujesz klucza aby otworzyc skrzynie!" else: set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodaduza} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Duza Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@duza}" from player's inventory if name of chest is "{@wielka}": if {DropChest::keys} is true: if player has 1 tripwire hook named "{@klucz}": set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodwielka} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Mala Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@wielka}" from player's inventory remove 1 tripwire hook named "{@klucz}" from player's inventory else: set event-block to air give 1 chest named "{@wielka}" to the player's inventory send "{@tag} &cPotrzebujesz klucza aby otworzyc skrzynie!" else: set event-block to redstone block wait 1 tick set event-block to iron block wait 1 tick set event-block to golden block wait 1 tick set event-block to diamond block wait 1 tick set event-block to air wait 1 tick drop {@nagrodawielka} at event-block if {DropChest::messages} is true: send "{@tag} &aOtworzyles Wielka Skrzynia! Zobacz co dostales" if {DropChest::sound} is true: play raw sound "random.chestopen" at player with pitch 1 volume 5 remove 1 chest named "{@wielka}" from player's inventory