#---------------------------------# # Autor: sula008 # # Kontakt: kontakt@sula008.pl # # youtube.com/user/Sula008 # # Wersja: 1.2 # # Skript: 2.1.2 # # Pomagali: użytkownicy skript.pl # #---------------------------------# #===========================# #- Konfiguracja -# #===========================# options: p.prefix: &7[&6BOSS&7]&f #Prefix# p.time.1: 10 #Co ile minut ma sprawdzać kto jest na świecie# p.time.2: minutes #Rodzaj czasu# p.world: world #Świat na którym ma się spawnować Boss# p.sunlight: 15 #Oświetlenie "RL" pod f3, czyli jeżeli jest 15 zespawnuje się jeżeli gracz nie będzie miał nic nad głową# p.chance.1: 15 #Szansa na zrespienie się Bossa# p.helmet.p: Diamond #Jaki hełm musi mieć gracz aby Boss się zespawnował# p.chestplate.p: Diamond #Jaką klate musi mieć gracz aby Boss się zespawnował# p.leggings.p: Diamond #Jakie spodnie musi mieć gracz aby Boss się zespawnował# p.boots.p: Diamond #Jakie buty musi mieć gracz aby Boss się zespawnował# p.spawn.b: 7 #W jakiej odległości od gracza ma się zespawnować Boss# p.hp.b: 150 #HP Bossa# p.name.b: &a&lDraugr #Nazwa Bossa# p.helmet.b: Iron #Jaki hełm ma mieć Boss# p.chestplate.b: Iron #Jaką klate ma mieć Boss# p.leggings.b: Iron #Jakie spodnie ma mieć Boss# p.boots.b: Iron #Jakie buty ma mieć Boss# p.sword.b: Iron #Jaki miecz ma mieć Boss# p.enchant.b: Sharpness 5 and Smite 1 #Enchant miecza jaki posiada Boss# p.msg.b.1: Time to die! #Wiadomość jaką pisze Boss do gracza po zrespieniu# p.msg.b.2: Knockback na mnie nie działa! #Wiadomość że Knockback jest nie działa na Bossa# p.death.msg.p: &a&lDraugr &fzabił gracza %victim% #Wiadomość śmierci gracza# p.death.msg.p.d: &a&lDraugr &fzabił gracza %victim% #Wiadomość śmierci gracza v żeńska# p.death.msg.b: %attacker% zabił &a&lDraugra! #Wiadomość śmierci Bossa# p.death.msg.b.d: %attacker% zabiła &a&lDraugra! #Wiadomość śmierci Bossa v żeńska# p.msg.b.3: Może następnym razem Ci się uda #Wiadomość jaką pisze Boss jeżeli zabije gracza# p.money.1: 500 #Przedział od ilu ma być ustawiona nagroda pieniężna# p.money.2: 1500 #Przedział dd ilu ma być ustawiona nagroda pieniężna# p.name.head: &4&lCzaszka Draugra #Nazwa czaski jaka wypada z Bossa# p.msg.l.1: Z zabitego Draugra wypadła jego czaszka! #Wiadomość dla gracza jeżeli wypadnie czaszka# p.name.sponge: &e&lWysysacz #Nazwa Gąbki która wypada z Bossa# p.msg.l.2: Z zabitego Draugra wypadł &e&lWysysacz #Wiadomość dla gracza jeżeli wypadnie gąbka# #===========================# #- Kod Skriptu -# #===========================# #Jeżeli się nie znasz to nie ruszaj bo możesz popsuć :P# every {@p.time.1} {@p.time.2}: loop all players: loop-player has permission "p.boss": loop-player is in world "{@p.world}": sunlight level at the loop-player is equal to {@p.sunlight}: chance of {@p.chance.1}%: helmet of loop-player is {@p.helmet.p} helmet: chestplate of loop-player is {@p.chestplate.p} chestplate: leggings of loop-player is {@p.leggings.p} leggings: boots of loop-player is {@p.boots.p} boots: apply blindness 5 to loop-player for 2 seconds wait 1 second set {_topspawn} to location of block {@p.spawn.b} meters horizontally behind loop-player while block at {_topspawn} is not air: set {_topspawn} to location of block above block at {_topspawn} while block above block at {_topspawn} is not air: set {_topspawn} to location of block above block at {_topspawn} spawn 1 Skeleton at {_topspawn} set the last spawned entity's max health to {@p.hp.b} heal last spawned entity set the spawned Skeleton's display name to "{@p.name.b} %spawned Skeleton's health%/%max health of last spawned entity%" set helmet of the spawned Skeleton to a {@p.helmet.b} helmet set chestplate of the spawned Skeleton to a {@p.chestplate.b} chestplate set leggings of the spawned Skeleton to a {@p.leggings.b} leggings set boots of the spawned Skeleton to a {@p.boots.b} boots set tool of the spawned Skeleton to a {@p.sword.b} sword of {@p.enchant.b} send "{@p.prefix}{@p.name.b}&f: {@p.msg.b.1}" to loop-player else: stop #=========# # Komendy # #=========# command /pboss [] [] []: trigger: if player has permission "p.boss.admin": if arg 1 is "spawn": if arg 2 is set: if arg 3 is set: apply blindness 5 to player for 2 seconds wait 1 second set {_topspawn} to location of block {@p.spawn.b} meters horizontally behind arg 2 while block at {_topspawn} is not air: set {_topspawn} to location of block above block at {_topspawn} while block above block at {_topspawn} is not air: set {_topspawn} to location of block above block at {_topspawn} spawn 1 Skeleton at {_topspawn} set {_hpboss} to arg 3 set the last spawned entity's max health to {_hpboss} heal last spawned entity set the spawned Skeleton's display name to "{@p.name.b} %spawned Skeleton's health%/%max health of last spawned entity%" set helmet of the spawned Skeleton to a {@p.helmet.b} helmet set chestplate of the spawned Skeleton to a {@p.chestplate.b} chestplate set leggings of the spawned Skeleton to a {@p.leggings.b} leggings set boots of the spawned Skeleton to a {@p.boots.b} boots set tool of the spawned Skeleton to a {@p.sword.b} sword of {@p.enchant.b} send "{@p.prefix}{@p.name.b}&f: {@p.msg.b.1}" to arg 2 else: send "{@p.prefix}Podaj ilość HP" else: send "{@p.prefix}Podaj nick gracza" if arg 1 is not set: if player has permission "p.boss": send " " send "{@p.prefix} Boss spawnuje się wtedy gdy masz na sobie wymaganą zbroje" send "{@p.prefix} oraz jesteś na odpowiednim świecie" send "{@p.prefix} wpisz &6/pboss help &faby dowiedzieć się więcej" send " " if player has permission "p.boss.admin": send " " send "{@p.prefix}/pboss help - dostepne komendy" send " " if arg 1 is "help": if player has permission "p.boss" or "p.boss.admin": send " " send "{@p.prefix}/pboss zbroja - pokazuję wymaganą zbroje" send "{@p.prefix}/pboss boss - pokazuję informacje o bossie" send "{@p.prefix}/pboss nagroda - informacje o nagrodach" if player has permission "p.boss.admin": send "{@p.prefix}/pboss spawn - spawnuje Bossa danemu graczowi z daną ilością HP" send " " if arg 1 is "zbroja": send "{@p.prefix} Wymagana zbroja to:" send "{@p.prefix} Hełm - {@p.helmet.p}" send "{@p.prefix} Klata - {@p.chestplate.p}" send "{@p.prefix} Spodnie - {@p.leggings.p}" send "{@p.prefix} Buty - {@p.boots.p}" if arg 1 is "boss": send "{@p.prefix} Świat - {@p.world}" send "{@p.prefix} Szansa - {@p.chance.1} procent" send "{@p.prefix} Nazwa - {@p.name.b}" send "{@p.prefix} HP - {@p.hp.b}" send "{@p.prefix} Zbroja:" send "{@p.prefix} Hełm - {@p.helmet.b}" send "{@p.prefix} Klata - {@p.chestplate.b}" send "{@p.prefix} Spodnie - {@p.leggings.b}" send "{@p.prefix} Buty - {@p.boots.b}" send "{@p.prefix} Miecz:" send "{@p.prefix} Miecz - {@p.sword.b}" send "{@p.prefix} Enchant - {@p.enchant.b}" if arg 1 is "nagroda": send "{@p.prefix} Kasa od {@p.money.1} do {@p.money.2}" send "{@p.prefix} Czaszka Bossa" send "{@p.prefix} Gąbka wciągająca lawe" #===================================================# # Blokada knockback oraz wyswietlanie punktów zycia # #===================================================# on damage of Skeleton: name of victim contains "{@p.name.b}": tool of attacker is Sword of Knockback: send "{@p.prefix}{@p.name.b}&f: {@p.msg.b.2}" to attacker damage victim by 1 hearts set name of victim to "{@p.name.b} %health of victim%/%max health of victim%" cancel event tool of attacker is Sword of Knockback 2: send "{@p.prefix}{@p.name.b}&f: {@p.msg.b.2}" to attacker damage victim by 1 hearts set name of victim to "{@p.name.b} %health of victim%/%max health of victim%" cancel event wait 2 tick set name of victim to "{@p.name.b} %health of victim%/%max health of victim%" #=====================================# # Wiadomości kiedy Boss zabije gracza # #=====================================# on death of player: if attacker is a Skeleton: name of attacker contains "{@p.name.b}": broadcast "{@p.name.b} {@p.death.msg.p}" if player has permission "p.boss.dziewczyna": broadcast "{@p.name.b} {@p.death.msg.p.d}" send "{@p.prefix}{@p.name.b}&f: {@p.msg.b.3}" to victim #=======================================================# # System dropów oraz wiadomość kiedy gracz zabije Bossa # #=======================================================# on death of Skeleton: name of victim contains "{@p.name.b}": send " " to attacker send "&f&l=======================================" to attacker chance of 100%: set {_kasa} to random integer between {@p.money.1} and {@p.money.2} add {_kasa} to the attacker's account send "{@p.prefix}Otrzymałeś &a&l%{_kasa}%$&f za zabicia Draugra" to attacker if player has permission "pg.dziewczyna": send "{@p.prefix}Otrzymałaś &a&l%{_kasa}%$&f za zabicia Draugra" to attacker chance of 30%: drop a Head named "{@p.name.head}" at location of victim send "{@p.prefix}{@p.msg.l.1}" to attacker chance of 15%: drop a Sponge named "{@p.name.sponge}" at location of victim send "{@p.prefix}{@p.msg.l.2}" to attacker send "&f&l=======================================" to attacker send " " to attacker broadcast "{@p.death.msg.b}" if player has permission "p.boss.dziewczyna": broadcast "{@p.death.msg.b.d}" #=================================# # Blokada położenia czaszki Bossa # #=================================# on place head: if name of player's tool is "{@p.name.head}": cancel event send "{@p.prefix}Nie możesz jej postawić! Możesz ją włożyć do Item Frame" to player #===========================# # Wsysanie lawy przez gąbke # #===========================# on place of Sponge: if name of player's tool is "{@p.name.sponge}": loop blocks in radius 3 around event-block: loop-block is lava: set loop-block to air loop-block is stationary lava: set loop-block to air #==========================================# # Po znszczeniu gąbki zwraca tą samą nazwę # #==========================================# on break of Sponge: cancel event set block to air drop a Sponge named "{@p.name.sponge}"