#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # 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: #Przedsionek wiadomości. tag: &8&l[&cNazwaSerwera.pl&8&l] &7 #Nazwa serwera używana tylko w komendzie z autorem. serwer: NazwaSerwera #Itemy które wypadną po zniszczeniu kilofa. diamondp: 2 diamond #Itemy które wypadną po zniszczeniu kilofa. ironp: 2 iron ingot #Itemy które wypadną po zniszczeniu kilofa. goldenp: 2 gold ingot #Itemy które wypadną po zniszczeniu kilofa. stonep: 2 cobblestone #Itemy które wypadną po zniszczeniu kilofa. woodenp: 2 planks #Na jak długo ma być zbanowany gracz (np 1s/1m/1h) time: 30m #Powód zbanowania gracza reason: Zostałeś zbanowany! on load: #Czy wiadomości mają być włączone (true/false) set {SvPack::messages} to true #Czy szansa na zatrucie od zombie ma być włączona (true/false) set {SvPack::poison} to true #Czy system żyć ma być włączony (true/false) set {SvPack::zycia} to true #Czy system handlowania z wiedźmami ma być włączony (true/false) set {SvPack::witch} to true #-#-#-#-#-#-#-#-#-#-# # # # SYSTEM ŻYĆ # # # #-#-#-#-#-#-#-#-#-#-# on first join: if {SvPack::zycia} is true: add 3 to {SvPack::zycia::%player%} if {SvPack::messages} is true: send "{@tag}Aktualnie posiadasz 3 życia, jeśli zginiesz stracisz jedno." to the player send "{@tag}Gdy stracisz 3 życia zostaniesz zbanowany na %{@time}%, więc lepiej uważaj! ;)" to the player on death of player: if {SvPack::zycia} is true: remove 1 from {SvPack::zycia::%player%} if {SvPack::zycia::%player%} is 0: wait 2 ticks send "{@tag}Straciłeś wszystkie życia! Masz 20 sekund aby pożegnać się z serwerem." send "{@tag}Następnie zostaniesz zbanowany na %{@time}%." wait 20 seconds execute console command "/tempban %player% %{@time}% %{@reason}%" add 3 to {SvPack::zycia::%player%} else: send "{@tag}Zginąłeś, zostało ci %{SvPack::zycia::%player%}% żyć." to the player #-#-#-#-#-#-#-#-#-#-# # # # HANDLOWANIE Z # # WIEDŹMĄ # #-#-#-#-#-#-#-#-#-#-# on damage of witch: if {SvPack::witch} is true: cancel event on right click on witch: open chest with 1 rows named "Wiedźma - Handel" to player wait 2 ticks format slot 0 of player with 1 of potion of Strength named "&c&lSiła I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch strenght"] wait 2 ticks format slot 1 of player with 1 of potion of Healing named "&c&lLeczenie I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch healing"] wait 2 ticks format slot 2 of player with 1 of potion of Regeneration named "&c&lRegeneracja I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch regeneration"] wait 2 ticks format slot 3 of player with 1 of potion of Swiftness named "&c&lSzybkość I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch swiftness"] wait 2 ticks format slot 4 of player with 1 of potion of Invisibility named "&c&lNiewidzialność I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch invisibility"] wait 2 ticks format slot 5 of player with 1 of potion of Leaping named "&c&lSkoczność I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch leaping"] wait 2 ticks format slot 6 of player with 1 of potion of Night Vision named "&c&lNoktowizja I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch night"] wait 2 ticks format slot 7 of player with 1 of potion of Fire resistance named "&c&lOgnista odporność I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch fire"] wait 2 ticks format slot 8 of player with 1 of potion of Water breathing named "&c&lRybie skrzela I" with lore "&aCena: 15 emeraldów" to run [make player execute "/witch water"] wait 2 ticks command /witch []: trigger: if arg 1 is "strength": if player has 15 emeralds: if player can hold 1 potion of strength: remove 15 emeralds from player's inventory give 1 potion of strength to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of strength to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "healing": if player has 15 emeralds: if player can hold 1 potion of healing: remove 15 emeralds from player's inventory give 1 potion of healing to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of healing to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "regeneration": if player has 15 emeralds: if player can hold 1 potion of regeneration: remove 15 emeralds from player's inventory give 1 potion of regeneration to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of regeneration to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "swiftness": if player has 15 emeralds: if player can hold 1 potion of swiftness: remove 15 emeralds from player's inventory give 1 potion of swiftness to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of swiftness to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "invisibility": if player has 15 emeralds: if player can hold 1 potion of invisibility: remove 15 emeralds from player's inventory give 1 potion of invisibility to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of invisibility to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "leaping": if player has 15 emeralds: if player can hold 1 potion of leaping: remove 15 emeralds from player's inventory give 1 potion of leaping to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of leaping to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "night": if player has 15 emeralds: if player can hold 1 potion of night vision: remove 15 emeralds from player's inventory give 1 potion of night vision to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of night vision to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "fire": if player has 15 emeralds: if player can hold 1 potion of fire resistance: remove 15 emeralds from player's inventory give 1 potion of fire resistance to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of fire resistance to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" if arg 1 is "water": if player has 15 emeralds: if player can hold 1 potion of water breathing: remove 15 emeralds from player's inventory give 1 potion of water breathing to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: remove 15 emeralds from player's inventory give 1 potion of water breathing to the player's inventory play raw sound "random.lvlup" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Zakup udany!" to the player else: send "{@tag}Nie masz przy sobie tylu emeraldów!" #-#-#-#-#-#-#-#-#-#-# # # # NISZCZENIE RUD # # # #-#-#-#-#-#-#-#-#-#-# on mine of any ore: chance of 2%: set event-block to air if {SvPack::messages} is true: send "{tag}Byłeś nieostrożny i zniszczyłeś tą rude!" give 1 cobblestone to the player's inventory play raw sound "mob.zombie.death" at player with pitch 1 volume 5 #-#-#-#-#-#-#-#-#-#-# # # # NISZCZENIE KILOFA # # # #-#-#-#-#-#-#-#-#-#-# on break: if player's tool is diamond pickaxe: chance of 0.5%: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Twój kilof się złamał" chance of 50%: if player can hold {@diamondp}: give {@diamondp} to the player's inventory else: drop {@diamondp} if player's tool is iron pickaxe: chance of 0.5%: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Twój kilof się złamał" chance of 50%: if player can hold {@ironp}: give {@ironp} to the player's inventory else: drop {@ironp} if player's tool is golden pickaxe: chance of 0.5%: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Twój kilof się złamał" chance of 50%: if player can hold {@goldenp}: give {@goldenp} to the player's inventory else: drop {@goldenp} if player's tool is stone pickaxe: chance of 0.5%: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Twój kilof się złamał" chance of 50%: if player can hold {@stonep}: give {@stonep} to the player's inventory else: drop {@stonep} if player's tool is wooden pickaxe: chance of 0.5%: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if {SvPack::messages} is true: send "{@tag}Twój kilof się złamał" chance of 50%: if player can hold {@woodenp}: give {@woodenp} to the player's inventory else: drop {@woodenp} #-#-#-#-#-#-#-#-#-#-# # # #ZATRUCIE OD ZOMBIE # # # #-#-#-#-#-#-#-#-#-#-# on damage of zombie: if {SvPack::poison} is true: if victim is player: if attacker is zombie: chance of 60%: if {SvPack:messages} is true: send "{@tag}Zostales ugryziony przez &cZombie&7!" apply poison to attacker for 10 seconds #-#-#-#-#-#-#-#-#-#-# # # # KOMENDA O AUTORZE # # # #-#-#-#-#-#-#-#-#-#-# command /survivalpack: aliases: survpack, svpack trigger: 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●"