Slupik98

BetterBoss

Jun 19th, 2014
4,290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.41 KB | None | 0 0
  1. #░░▓▓▓▓▓▓▓▓░░░▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓░░░
  2. #░░▓░░░░░░░▓░░▓░░░░░░░░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░▓░░░░░░░▓░░
  3. #░░▓░░░░░░░▓░░▓░░░░░░░░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░▓░░░░░░░▓░░
  4. #░░▓░░░░░░░▓░░▓░░░░░░░░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░▓░░░░░░░▓░░
  5. #░░▓░░░░░▓▓░░░▓▓▓▓▓▓░░░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓▓▓▓▓▓░░░░░▓▓▓▓▓▓▓▓░░░
  6. #░░▓░░░░░░░▓░░▓░░░░░░░░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░▓░▓░░░░░░░░
  7. #░░▓░░░░░░░▓░░▓░░░░░░░░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░▓░░▓░░░░░░░
  8. #░░▓░░░░░░░▓░░▓░░░░░░░░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░▓░░░▓░░░░░░
  9. #░░▓▓▓▓▓▓▓▓░░░▓▓▓▓▓▓▓▓░░░░░░░░░▓░░░░░░░░░░░░░░▓░░░░░░░░▓▓▓▓▓▓▓▓░░░▓░░░▓░░░░░░
  10. #░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  11. #░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  12. #░░░░░░░░░░▓▓▓▓▓▓▓▓░░░░░▓▓▓▓▓▓░░░░░░▓▓▓▓▓░░░░░░▓▓▓▓▓░░░░░░▓▓▓▓▓▓▓▓▓▓░░░░░░░░░
  13. #░░░░░░░░░░▓░░░░░░░▓░░░▓░░░░░░▓░░░░▓░░░░░▓░░░░▓░░░░░▓░░░░░░▓▓▓▓▓▓▓▓░░░░░░░░░░
  14. #░░░░░░░░░░▓░░░░░░░▓░░▓░░░░░░░░▓░░░░▓░░░░▓░░░░░▓░░░░▓░░░░░░░▓▓▓▓▓▓░░░░░░░░░░░
  15. #░░░░░░░░░░▓░░░░░░░▓░░▓░░░░░░░░▓░░░░░▓░░░░░░░░░░▓░░░░░░░░░░░░▓▓▓▓░░░░░░░░░░░░
  16. #░░░░░░░░░░▓░░░░░▓▓░░░▓░░░░░░░░▓░░░░░░▓░░░░░░░░░░▓░░░░░░░░░░░▓▓▓▓░░░░░░░░░░░░
  17. #░░░░░░░░░░▓░░░░░░░▓░░▓░░░░░░░░▓░░░░░░░▓░░░░░░░░░░▓░░░░░░░░░░░▓▓░░░░░░░░░░░░░
  18. #░░░░░░░░░░▓░░░░░░░▓░░▓░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░▓░░░░░░░░░░░░░░░░░░░░░░░░░
  19. #░░░░░░░░░░▓░░░░░░░▓░░░▓░░░░░░▓░░░▓░░░░░░▓░░░▓░░░░░░▓░░░░░░░░░▓▓░░░░░░░░░░░░░
  20. #░░░░░░░░░░▓▓▓▓▓▓▓▓░░░░░▓▓▓▓▓▓░░░░░▓▓▓▓▓▓░░░░░▓▓▓▓▓▓░░░░░░░░░░▓▓░░░░░░░░░░░░░
  21. #░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  22. #╔═══════════════════════════════════════╗
  23. #║ Podstawowe informacje ║
  24. #║Nazwa skryptu: ║
  25. #║ ► BetterBoss ║
  26. #║Autor: ║
  27. #║ ► Slupik98 ║
  28. #║Wersja: ║
  29. #║ ► Beta v2.1.0 ║
  30. #╠═══════════════════════════════════════╣
  31. #║ Licencja ║
  32. #║ ► Zakaz rozpowszechniania skryptu ║
  33. #║ bez zgody autora ║
  34. #║ ► Zakaz używania cześci skryptu ║
  35. #║ bez zgody autora ║
  36. #║ ► Zakaz czerpania bezpośrednich i ║
  37. #║ pośrednich korzyści ║
  38. #║ majątkowych z tego skryptu ║
  39. #║ ► Zakaz zmiany licencji ║
  40. #║ ► Skrypt można modyfikować tylko ║
  41. #║ na własy użytek ║
  42. #╚═══════════════════════════════════════╝
  43.  
  44. #╔═══════════════════════════════════════╗
  45. #║ ║
  46. #║ Opcje ║
  47. #║ ║
  48. #╚═══════════════════════════════════════╝
  49. Options:
  50. #
  51. #►►►►►Tytuł Skryptu◄◄◄◄◄
  52. #
  53. s.boss.autoupdate.check: yes #Czy ma automatycznie sprawdzać aktualizację
  54. s.boss.autoupdate.install: yes #Czy ma automatycznie instalować aktualizację(yes - tak, no - nie, będzie wysyłało tylko powiadomienie
  55. s.boss.autoupdate.time: 3 #Co ile godzin będzie sprawdzało aktualizację
  56. #
  57. #►►►►►Tytuł Skryptu◄◄◄◄◄
  58. #
  59. s.boss.prefix: &4[BOSS]
  60. #
  61. #►►►►►Opcje losowe◄◄◄◄◄
  62. #
  63. #►►►Opcje◄◄◄
  64. s.boss.rspawn.time: 1 #Co ile ma być losowy spawn bossa w godzinach
  65. s.boss.rspawn.is: YES #Czy ma się odbywać losowy spawn bossa
  66. #►►►Rogi◄◄◄
  67. s.boss.corner.rspawn.x.1: 50 #Wartość x rogu 1
  68. s.boss.corner.rspawn.z.1: 50 #Wartość z rogu 1
  69. s.boss.corner.rspawn.x.2: 55 #Wartość x rogu 2
  70. s.boss.corner.rspawn.z.2: 55 #Wartość z rogu 2
  71. #►►►Opcje Randomowego BOSSA◄◄◄
  72. s.boss.name.rBOSS.1: &2&l&nRandom_Mob #Imię BOSSa numer 1
  73. s.boss.type.rBOSS.1: Zombie #Typ potwora numer 1
  74. s.boss.hp.rBOSS.1: 500 #Ile HP ma mieć BOSS numer 1
  75. s.boss.dmg.rBOSS.1: 25 #Ile dmg ma zadawać BOSS numer 1
  76. #►►►EQ◄◄◄
  77. #►hełm◄
  78. s.boss.helmet.rBOSS.1: leather #Hełm
  79. s.boss.czy.helmet.rBOSS.1: yes #Czy ma mieć Hełm
  80. s.boss.ench.helmet.rBOSS.1: protection 1 #Enchant hełmu
  81. s.boss.czy.ench.helmet.rBOSS.1: yes #Czy ma być enchant hełmu
  82. #►napiersnik◄
  83. s.boss.chestplate.rBOSS.1: leather #Napierśnik
  84. s.boss.czy.chestplate.rBOSS.1: yes #Czy ma mieć Napierśnik
  85. s.boss.ench.chestplate.rBOSS.1: protection 1 #Enchant napierśnika
  86. s.boss.czy.ench.chestplate.rBOSS.1: yes #Czy ma być enchant napierśnika
  87. #►spodnie◄
  88. s.boss.leggings.rBOSS.1: leather #Spodnie
  89. s.boss.czy.leggings.rBOSS.1: yes #Czy ma mieć Spodnie
  90. s.boss.ench.leggings.rBOSS.1: protection 1 #Enchant spodni
  91. s.boss.czy.ench.leggings.rBOSS.1: yes #Czy ma być enchant spodni
  92. #►buty◄
  93. s.boss.boots.rBOSS.1: leather #Buty
  94. s.boss.czy.boots.rBOSS.1: yes #Czy ma mieć Buty
  95. s.boss.ench.boots.rBOSS.1: protection 1 #Enchant butów
  96. s.boss.czy.ench.boots.rBOSS.1: yes #Czy ma być enchant butów
  97. #►miecz◄
  98. s.boss.sword.rBOSS.1: diamond #Miecz
  99. s.boss.czy.sword.rBOSS.1: yes #Czy ma mieć Miecz
  100. s.boss.ench.sword.rBOSS.1: Sharpness 1 #Enchant miecza
  101. s.boss.czy.ench.sword.rBOSS.1: yes #Czy ma być enchant miecza
  102. #►►►Nagroda rBOSS.1◄◄◄
  103. s.boss.nagroda1.przedmiot.rBOSS.1: sword #Nagroda(przedmiot) numer 1
  104. s.boss.nagroda1.typ.rBOSS.1: diamond #Nagroda(typ) numer 1
  105. s.boss.nagroda1.ench.rBOSS.1: Sharpness 6,Fire Aspect 3,Unbreaking 3 #Jaki enchant nagrody numer 1
  106. s.boss.nagroda1.nazwa.rBOSS.1: &2&l&nOstrze_Pogromcy_Zombie #Jaka nazwa nagrody numer 1
  107. s.boss.nagroda1.opis.rBOSS.1: Test #Opis nagrody rBOSS.1 numer 1
  108. #►►►Nagroda 2◄◄◄
  109. s.boss.nagroda2.przedmiot.rBOSS.1: helmet #Nagroda(przedmiot) numer 1
  110. s.boss.nagroda2.typ.rBOSS.1: diamond #Nagroda(typ) numer 1
  111. s.boss.nagroda2.ench.rBOSS.1: protection 5 #Jaki enchant nagrody numer 1
  112. s.boss.nagroda2.nazwa.rBOSS.1: &2&l&nHełm Najtwardszego #Jaka nazwa nagrody numer 1
  113. s.boss.nagroda2.opis.rBOSS.1: test #Opis nagrody rBOSS.1 numer 1
  114. #►►►Nagroda 3◄◄◄
  115. s.boss.nagroda3.przedmiot.rBOSS.1: chestplate #Nagroda(przedmiot) numer 1
  116. s.boss.nagroda3.typ.rBOSS.1: diamond #Nagroda(typ) numer 1
  117. s.boss.nagroda3.ench.rBOSS.1: protection 5 #Jaki enchant nagrody numer 1
  118. s.boss.nagroda3.nazwa.rBOSS.1: &2&l&nKaloryfer Trola #Jaka nazwa nagrody numer 1
  119. s.boss.nagroda3.opis.rBOSS.1: test #Opis nagrody rBOSS.1 numer 1
  120. #►►►Nagroda 4◄◄◄
  121. s.boss.nagroda4.przedmiot.rBOSS.1: leggings #Nagroda(przedmiot) numer 1
  122. s.boss.nagroda4.typ.rBOSS.1: diamond #Nagroda(typ) numer 1
  123. s.boss.nagroda4.ench.rBOSS.1: protection 5 #Jaki enchant nagrody numer 1
  124. s.boss.nagroda4.nazwa.rBOSS.1: &2&l&nStringi Jaskiniowca #Jaka nazwa nagrody numer 1
  125. s.boss.nagroda4.opis.rBOSS.1: test #Opis nagrody rBOSS.1 numer 1
  126. #►►►Nagroda 5◄◄◄
  127. s.boss.nagroda5.przedmiot.rBOSS.1: boots #Nagroda(przedmiot) numer 1
  128. s.boss.nagroda5.typ.rBOSS.1: diamond #Nagroda(typ) numer 1
  129. s.boss.nagroda5.ench.rBOSS.1: protection 5 #Jaki enchant nagrody numer 1
  130. s.boss.nagroda5.nazwa.rBOSS.1: &2&l&nCiezkie buty #Jaka nazwa nagrody numer 1
  131. s.boss.nagroda5.opis.rBOSS.1: test #Opis nagrody rBOSS.1 numer 1
  132. #
  133. #►►►►►Opcje eventowe◄◄◄◄◄
  134. #
  135. #►►►Opcje◄◄◄
  136. s.boss.eventmob.event.time: 1 #Co ile ma być event w godzinach
  137. s.boss.eventmob.event.is: YES #Czy ma się odbywać event
  138. #►►►Rogi◄◄◄
  139. s.boss.corner.eventmob.x.1: 50 #Wartość x rogu 1
  140. s.boss.corner.eventmob.z.1: 50 #Wartość z rogu 1
  141. s.boss.corner.eventmob.x.2: 55 #Wartość x rogu 2
  142. s.boss.corner.eventmob.z.2: 55 #Wartość z rogu 2
  143. #►►►Rodzaje◄◄◄
  144. s.boss.eventmob.type.x: zombie #Typ wszytkich mobów
  145. s.boss.eventmob.hp.x: 100 #Hp wszytkich mobów
  146. s.boss.eventmob.dmg.x: 5 #Dmg wszytkich mobów
  147. s.boss.eventmob.nazwa.x: &8Boss&7-eventowy #Nazwy wszytkich mobów
  148. s.boss.eventmob.how.many: 2 #Ile ma być wszytkich mobów przy 1 wahcie
  149. s.boss.eventmob.how.waves: 1 #Ile ma być wszytkich waht(fal ataku)
  150. s.boss.eventmob.time: 5 #Odstęp między wahtami(sekundy)
  151. #►►►EQ◄◄◄
  152. #►hełm◄
  153. s.boss.helmet.eventmob.1: leather #Hełm
  154. s.boss.czy.helmet.eventmob.1: yes #Czy ma mieć Hełm
  155. s.boss.ench.helmet.eventmob.1: protection 1 #Enchant hełmu
  156. s.boss.czy.ench.helmet.eventmob.1: yes #Czy ma być enchant hełmu
  157. #►napiersnik◄
  158. s.boss.chestplate.eventmob.1: leather #Napierśnik
  159. s.boss.czy.chestplate.eventmob.1: yes #Czy ma mieć Napierśnik
  160. s.boss.ench.chestplate.eventmob.1: protection 1 #Enchant napierśnika
  161. s.boss.czy.ench.chestplate.eventmob.1: yes #Czy ma być enchant napierśnika
  162. #►spodnie◄
  163. s.boss.leggings.eventmob.1: leather #Spodnie
  164. s.boss.czy.leggings.eventmob.1: yes #Czy ma mieć Spodnie
  165. s.boss.ench.leggings.eventmob.1: protection 1 #Enchant spodni
  166. s.boss.czy.ench.leggings.eventmob.1: yes #Czy ma być enchant spodni
  167. #►buty◄
  168. s.boss.boots.eventmob.1: leather #Buty
  169. s.boss.czy.boots.eventmob.1: yes #Czy ma mieć Buty
  170. s.boss.ench.boots.eventmob.1: protection 1 #Enchant butów
  171. s.boss.czy.ench.boots.eventmob.1: yes #Czy ma być enchant butów
  172. #►miecz◄
  173. s.boss.sword.eventmob.1: diamond #Miecz
  174. s.boss.czy.sword.eventmob.1: yes #Czy ma mieć Miecz
  175. s.boss.ench.sword.eventmob.1: Sharpness 1 #Enchant miecza
  176. s.boss.czy.ench.sword.eventmob.1: yes #Czy ma być enchant miecza
  177. #
  178. #►►►►►Ustawienia Bossa numer 1◄◄◄◄◄
  179. #
  180. s.boss.name.1: &2&l&nJaskiniowy_Trol #Imię BOSSa numer 1
  181. s.boss.type.1: Zombie #Typ potwora numer 1
  182. s.boss.hp.1: 1000 #Ile HP ma mieć BOSS numer 1
  183. s.boss.dmg.1: 20 #Ile dmg ma zadawać BOSS numer 1
  184. #►►►EQ◄◄◄
  185. #►hełm◄
  186. s.boss.helmet.1: leather #Hełm Bossa numer 1
  187. s.boss.ench.helmet.1: protection 1 #Enchant hełmu Bossa numer 1
  188. #►napiersnik◄
  189. s.boss.chestplate.1: leather #Napierśnik Bossa numer 1
  190. s.boss.ench.chestplate.1: protection 1 #Enchant napierśnika Bossa numer 1
  191. #►spodnie◄
  192. s.boss.leggings.1: leather #Spodnie Bossa numer 1
  193. s.boss.ench.leggings.1: protection 1 #Enchant spodni Bossa numer 1
  194. #►buty◄
  195. s.boss.boots.1: leather #Buty Bossa numer 1
  196. s.boss.ench.boots.1: protection 1 #Enchant butów Bossa numer 1
  197. #►miecz◄
  198. s.boss.sword.1: diamond #Miecz Bossa numer 1
  199. s.boss.ench.sword.1: Sharpness 1 #Enchant miecza Bossa numer 1
  200. #►►►Nagroda 1◄◄◄
  201. s.boss.nagroda1.przedmiot.1: sword #Nagroda(przedmiot) numer 1
  202. s.boss.nagroda1.typ.1: diamond #Nagroda(typ) numer 1
  203. s.boss.nagroda1.ench.1: Sharpness 6,Fire Aspect 3,Unbreaking 3 #Jaki enchant nagrody numer 1
  204. s.boss.nagroda1.nazwa.1: &2&l&nOstrze_Pogromcy_Troli_Jaskiniowych #Jaka nazwa nagrody numer 1
  205. s.boss.nagroda1.opis.1: Test #Opis nagrody 1 numer 1
  206. #►►►Nagroda 2◄◄◄
  207. s.boss.nagroda2.przedmiot.1: helmet #Nagroda(przedmiot) numer 1
  208. s.boss.nagroda2.typ.1: diamond #Nagroda(typ) numer 1
  209. s.boss.nagroda2.ench.1: protection 5 #Jaki enchant nagrody numer 1
  210. s.boss.nagroda2.nazwa.1: &2&l&nHełm Najtwardszego #Jaka nazwa nagrody numer 1
  211. s.boss.nagroda2.opis.1: test #Opis nagrody 1 numer 1
  212. #►►►Nagroda 3◄◄◄
  213. s.boss.nagroda3.przedmiot.1: chestplate #Nagroda(przedmiot) numer 1
  214. s.boss.nagroda3.typ.1: diamond #Nagroda(typ) numer 1
  215. s.boss.nagroda3.ench.1: protection 5 #Jaki enchant nagrody numer 1
  216. s.boss.nagroda3.nazwa.1: &2&l&nKaloryfer Trola #Jaka nazwa nagrody numer 1
  217. s.boss.nagroda3.opis.1: test #Opis nagrody 1 numer 1
  218. #►►►Nagroda 4◄◄◄
  219. s.boss.nagroda4.przedmiot.1: leggings #Nagroda(przedmiot) numer 1
  220. s.boss.nagroda4.typ.1: diamond #Nagroda(typ) numer 1
  221. s.boss.nagroda4.ench.1: protection 5 #Jaki enchant nagrody numer 1
  222. s.boss.nagroda4.nazwa.1: &2&l&nStringi Jaskiniowca #Jaka nazwa nagrody numer 1
  223. s.boss.nagroda4.opis.1: test #Opis nagrody 1 numer 1
  224. #►►►Nagroda 5◄◄◄
  225. s.boss.nagroda5.przedmiot.1: boots #Nagroda(przedmiot) numer 1
  226. s.boss.nagroda5.typ.1: diamond #Nagroda(typ) numer 1
  227. s.boss.nagroda5.ench.1: protection 5 #Jaki enchant nagrody numer 1
  228. s.boss.nagroda5.nazwa.1: &2&l&nCiezkie buty #Jaka nazwa nagrody numer 1
  229. s.boss.nagroda5.opis.1: test #Opis nagrody 1 numer 1
  230. #
  231. #>>>>>Ustawienia Bossa numer 2<<<<<
  232. #
  233. s.boss.name.2: &6&l&nKrol_Zombi #Imię BOSSa numer 2
  234. s.boss.type.2: Zombie #Typ potwora numer 2
  235. s.boss.hp.2: 5000 #Ile HP ma mieć BOSS numer 2
  236. s.boss.dmg.2: 25 #Ile dmg ma zadawać BOSS numer 2
  237. #>>>EQ<<<
  238. #>hełm<
  239. s.boss.helmet.2: gold #Hełm Bossa numer 2
  240. s.boss.ench.helmet.2: protection 1 #Enchant hełmu Bossa numer 2
  241. #>napiersnik<
  242. s.boss.chestplate.2: diamond #Napierśnik Bossa numer 2
  243. s.boss.ench.chestplate.2: protection 1 #Enchant napierśnika Bossa numer 2
  244. #>spodnie<
  245. s.boss.leggings.2: diamond #Spodnie Bossa numer 2
  246. s.boss.ench.leggings.2: protection 1 #Enchant spodni Bossa numer 2
  247. #>buty<
  248. s.boss.boots.2: diamond #Buty Bossa numer 2
  249. s.boss.ench.boots.2: protection 1 #Enchant butów Bossa numer 2
  250. #>miecz<
  251. s.boss.sword.2: diamond #Miecz Bossa numer 2
  252. s.boss.ench.sword.2: Sharpness 1 #Enchant miecza Bossa numer 2
  253. #>>>Nagroda 1<<<
  254. s.boss.nagroda1.przedmiot.2: sword #Nagroda(przedmiot) numer 2
  255. s.boss.nagroda1.typ.2: diamond #Nagroda(typ) numer 2
  256. s.boss.nagroda1.ench.2: Sharpness 9,Fire Aspect 4,Unbreaking 4 #Jaki enchant nagrody numer 2
  257. s.boss.nagroda1.nazwa.2: &6&l&nOstrze_Zdobywcy #Jaka nazwa nagrody numer 2
  258. s.boss.nagroda1.opis.2: Test #Opis nagrody 1 numer 2
  259. #>>>Nagroda 2<<<
  260. s.boss.nagroda2.przedmiot.2: helmet #Nagroda(przedmiot) numer 2
  261. s.boss.nagroda2.typ.2: gold #Nagroda(typ) numer 2
  262. s.boss.nagroda2.ench.2: protection 8 #Jaki enchant nagrody numer 2
  263. s.boss.nagroda2.nazwa.2: &6&nKorona_Królów #Jaka nazwa nagrody numer 2
  264. s.boss.nagroda2.opis.2: test #Opis nagrody 2 numer 2
  265. #>>>Nagroda 3<<<
  266. s.boss.nagroda3.przedmiot.2: chestplate #Nagroda(przedmiot) numer 2
  267. s.boss.nagroda3.typ.2: diamond #Nagroda(typ) numer 2
  268. s.boss.nagroda3.ench.2: Protection 8 #Jaki enchant nagrody numer 2
  269. s.boss.nagroda3.nazwa.2: &6&nNapierśnik_władcy #Jaka nazwa nagrody numer 2
  270. s.boss.nagroda3.opis.2: test #Opis nagrody 2 numer 2
  271. #>>>Nagroda 4<<<
  272. s.boss.nagroda4.przedmiot.2: leggings #Nagroda(przedmiot) numer 2
  273. s.boss.nagroda4.typ.2: diamond #Nagroda(typ) numer 2
  274. s.boss.nagroda4.ench.2: Protection 8 #Jaki enchant nagrody numer 2
  275. s.boss.nagroda4.nazwa.2: &5&nMajteczki_Królowej #Jaka nazwa nagrody numer 2
  276. s.boss.nagroda4.opis.2: test #Opis nagrody 2 numer 2
  277. #>>>Nagroda 5<<<
  278. s.boss.nagroda5.przedmiot.2: boots #Nagroda(przedmiot) numer 2
  279. s.boss.nagroda5.typ.2: diamond #Nagroda(typ) numer 2
  280. s.boss.nagroda5.ench.2: protection 8 #Jaki enchant nagrody numer 2
  281. s.boss.nagroda5.nazwa.2: &6&nButy_władców #Jaka nazwa nagrody numer 2
  282. s.boss.nagroda5.opis.2: test #Opis nagrody 2 numer 2
  283. #╔═══════════════════════════════════════╗
  284. #║ ║
  285. #║ Zmienne ║
  286. #║ ║
  287. #╚═══════════════════════════════════════╝
  288. variables:
  289. #╔═══════════════════════════════════════╗
  290. #║ Do edycji ║
  291. #╚═══════════════════════════════════════╝
  292. #
  293. #►►►►►Ustawienia nazw Bossów◄◄◄◄◄
  294. # Skrypt WYMAGA, by nazwa była
  295. # taka sama jak w opcjach, ale bez
  296. # koloru tzn zamiast uzupełniania dokładnie
  297. # tak samo jak w opcjiach, czyli np.
  298. # {s.boss.name.1} = "&n&l&2Boss"
  299. # trzeba wpisać:
  300. # {s.boss.name.1} = "Boss"
  301. # Jest to wymagane, by część pkuginu
  302. # działała poprawnie!
  303. {s.boss.name.1} = "Jaskiniowy_Trol"
  304. {s.boss.name.2} = "Krol_Zombie"
  305. {s.boss.name.3} = "nazwa"
  306. {s.boss.name.4} = "nazwa"
  307. {s.boss.name.5} = "nazwa"
  308. {s.boss.name.6} = "nazwa"
  309. {s.boss.name.7} = "nazwa"
  310. {s.boss.name.8} = "nazwa"
  311. {s.boss.name.9} = "nazwa"
  312.  
  313. #►►►►►Ustawienia zbroi Bossa 1◄◄◄◄◄
  314. # true ← włączone
  315. # false ← wyłączone
  316. {s.boss.helmet.is.1} = true
  317. {s.boss.helmet.ench.is.1} = true
  318. {s.boss.chestplate.is.1} = true
  319. {s.boss.chestplate.ench.is.1} = true
  320. {s.boss.leggings.is.1} = true
  321. {s.boss.leggings.ench.is.1} = true
  322. {s.boss.boots.is.1} = true
  323. {s.boss.boots.ench.is.1} = true
  324. {s.boss.sword.is.1} = true
  325. {s.boss.sword.ench.is.1} = true
  326. #
  327. #►►►►►Ustawienia zbroi Bossa 2◄◄◄◄◄
  328. # true ← włączone
  329. # false ← wyłączone
  330. {s.boss.helmet.is.2} = true
  331. {s.boss.helmet.ench.is.2} = true
  332. {s.boss.chestplate.is.2} = true
  333. {s.boss.chestplate.ench.is.2} = true
  334. {s.boss.leggings.is.2} = true
  335. {s.boss.leggings.ench.is.2} = true
  336. {s.boss.boots.is.2} = true
  337. {s.boss.boots.ench.is.2} = true
  338. {s.boss.sword.is.2} = true
  339. {s.boss.sword.ench.is.2} = true
  340. #►►►►►Ustawienia obrażeń dla Bossów◄◄◄◄◄
  341. # Możesz tutaj zablokować niektóre
  342. # obrażenia, np od upadku, lub od
  343. # wilków dzięki czemu gracze będą
  344. # mięli większy kłopot z zabicie bossa ;)
  345. #►►►►►Ustawienia blokady obrażeń Bossa 1◄◄◄◄◄
  346. # true ← włączone(Zadaje obrażenia)
  347. # false ← wyłączone(Nie zadaje obrażeń)
  348. # możliwe do ustawienia opcje: fall, wolf, fire, projectile, burning, potion
  349. {s.boss.fall.is.1} = true
  350. {s.boss.wolf.is.1} = true
  351. {s.boss.fire.is.1} = true
  352. {s.boss.projectile.is.1} = true
  353. {s.boss.burning.is.1} = true
  354. {s.boss.potion.is.1} = true
  355. #►►►►►Ustawienia blokady obrażeń Bossa 2◄◄◄◄◄
  356. # true ← włączone(Zadaje obrażenia)
  357. # false ← wyłączone(Nie zadaje obrażeń)
  358. # możliwe do ustawienia opcje: fall, wolf, fire, projectile, burning, potion
  359. {s.boss.fall.is.2} = true
  360. {s.boss.wolf.is.2} = true
  361. {s.boss.fire.is.2} = true
  362. {s.boss.projectile.is.2} = true
  363. {s.boss.burning.is.2} = true
  364. {s.boss.potion.is.2} = true
  365. on load:
  366. set {alive.boss.1} to false
  367. set {alive.boss.2} to false
  368. #╔═══════════════════════════════════════╗
  369. #║ ║
  370. #║ AutoUpdate ║
  371. #║ ║
  372. #╚═══════════════════════════════════════╝
  373. #Polecam nie dotykać ;)
  374. on load:
  375. set {b.boss.this.version} to "Beta 4.2.0.4"
  376. every {@s.boss.autoupdate.time} hours:
  377. if "{@s.boss.autoupdate.check}" is "yes":
  378. set {_connect} to result of connect to "http://pastebin.com/raw.php?i=uiBZ4pjw"
  379. if "%{_connect}%" is not "%{b.boss.this.version}%":
  380. if "{@s.boss.autoupdate.install}" is "yes":
  381. download from "http://pastebin.com/raw.php?i=6hTDxuFz" to file "plugins/Skript/scripts/%script%.sk"
  382. execute console command "skript reload %script%"
  383. set {b.boss.otrzymanie.info.a} to false
  384. else:
  385. set {b.boss.otrzymanie.info.b} to false
  386. every 10 minutes:
  387. if "{@s.boss.autoupdate.check}" is "yes":
  388. if {b.boss.otrzymanie.info.a} is false:
  389. loop all players:
  390. if loop-player have permissions "Better.Boss.check" or "Better.Boss.*":
  391. send "{@s.boss.prefix}<reset>&4UWAGA! SKRYPT ZOSTAŁ ZAKTUALIZOWANY!" to loop-player
  392. set {b.boss.otrzymanie.info.a} to true
  393. if {b.boss.otrzymanie.info.b} is false:
  394. loop all players:
  395. if loop-player have permissions "Better.Boss.check" or "Better.Boss.*":
  396. send "{@s.boss.prefix}<reset>&4UWAGA! SKRYPT POTRZEBUJE AKTUALIZACJI!" to loop-player
  397. set {b.boss.otrzymanie.info.b} to true
  398. #╔═══════════════════════════════════════╗
  399. #║ ║
  400. #║ Komenda główna ║
  401. #║ ║
  402. #╚═══════════════════════════════════════╝
  403. command /BetterBoss [<text>] [<text>] [<text>]:
  404. description: Komendy skryptu BetterBoss
  405. usage: /BetterBoss help
  406. #permission: skript.BetterBoss.*
  407. #permission message: &4Nie masz permisji do uzywania tej komendy!
  408. #executable by: players
  409. aliases: bb, boss
  410. trigger:
  411. set {_bb.correct.command.%player%} to false#sprawdza poprawność wpisanej komendy - nie ruszać ;)
  412. if arg 1 is not set:
  413. set {_bb.correct.command.%player%} to true
  414. execute player command "bb help"
  415. if arg 1 is "reload" or "relog" or "r":
  416. set {_bb.correct.command.%player%} to true
  417. if player have permissions "Better.Boss.spawn" or "Better.Boss.*":
  418. execute player command "skript reload %script%"
  419. else:
  420. send "&4Nie masz praw do użycia tej komendy!"
  421. if arg 1 is "version" or "v":
  422. set {_bb.correct.command.%player%} to true#sprawdza poprawność wpisanej komendy - nie ruszać ;)
  423. message "&7======================"
  424. message "&7Nazwa: &cBetterBoss"
  425. message "&7versja: &cBETA v2.1.0"
  426. message "&7Autor: &cSlupik98"
  427. message "&7======================"
  428. if arg 1 is "help" or "h":
  429. set {_bb.correct.command.%player%} to true#sprawdza poprawność wpisanej komendy - nie ruszać ;)
  430. message "&4/bb version &6- pokazuje informacje o pluginie"
  431. message "&4/bb spawn &cnazwa &6- spawnuje moba o danej nazwie"
  432. message "&4/bb list &6- pokazuje dostępne bossy"
  433. message "&4/bbc spawn &cHP DMG Nazwa Bron TypEq &6- spawnuje bossa o podanych(w komendzie) parametrach, aby zobaczyc typy eq wpisz &4/bmc help"
  434. if arg 1 is "spawn":
  435. set {_bb.correct.command.%player%} to true
  436. if player do not have permissions "Better.Boss.spawn" or "Better.Boss.*":
  437. if arg 3 is set:
  438. send "%{tooken.%player%.boss.spawn}%"
  439. if arg 3 is not "%{tooken.%player%.boss.spawn}%":
  440. send "&4Nie masz uprawnień do tego!"
  441. stop
  442. else:
  443. send "nic"
  444. else:
  445. stop
  446. if 1 is 1:
  447. set {_bb.correct.boss.%player%} to false#sprawdza poprawność wpisanego bossa - nie ruszać ;)
  448. #╔═══════════════════════════════════════╗
  449. #║ Boss 1 ║
  450. #╚═══════════════════════════════════════╝
  451. if arg 2 is {s.boss.name.1}:
  452. set {_bb.correct.boss.%player%} to true#sprawdza poprawność wpisanego bossa - nie ruszać ;)
  453. #►►►►►►►►►► spawn bossa 1 ◄◄◄◄◄◄◄◄◄◄
  454. set {_loc} to location of block 2 meters above the player
  455. set {_loc} to location of block 2 meters infront block at {_loc}
  456. spawn a {@s.boss.type.1} at {_loc}
  457. apply speed -1000 to the last spawned entity for 10 seconds
  458. apply resistance 99 to the last spawned entity for 10 seconds
  459. #►►►►►►►►►► HP bossa ◄◄◄◄◄◄◄◄◄◄
  460. set the last spawned entity's max health to {@s.boss.hp.1}
  461. heal last spawned entity
  462. #►►►►►►►►►► Nazwa bossa 1 ◄◄◄◄◄◄◄◄◄◄
  463. set the spawned {@s.boss.type.1}'s display name to "{@s.boss.name.1} %spawned {@s.boss.type.1}'s health%/%max health of last spawned entity%"
  464. #►►►►►►►►►► Ubiór bossa 1 i jego broń ◄◄◄◄◄◄◄◄◄◄
  465. if "{@s.boss.type.1}" is "zombie" or "Pig zombie" or "skeleton" or "pigman" or "pigzombie":
  466. if {s.boss.helmet.is.1} is true:
  467. if {s.boss.helmet.ench.is.1} is true:
  468. set helmet of the spawned {@s.boss.type.1} to a {@s.boss.helmet.1} helmet of {@s.boss.ench.helmet.1}
  469. else:
  470. set helmet of the spawned {@s.boss.type.1} to a {@s.boss.helmet.1} helmet
  471. if {s.boss.chestplate.is.1} is true:
  472. if {s.boss.chestplate.ench.is.1} is true:
  473. set chestplate of the spawned {@s.boss.type.1} to a {@s.boss.chestplate.1} chestplate of {@s.boss.ench.chestplate.1}
  474. else:
  475. set chestplate of the spawned {@s.boss.type.1} to a {@s.boss.chestplate.1} chestplate
  476. if {s.boss.leggings.is.1} is true:
  477. if {s.boss.leggings.ench.is.1} is true:
  478. set leggings of the spawned {@s.boss.type.1} to a {@s.boss.leggings.1} leggings of {@s.boss.ench.leggings.1}
  479. else:
  480. set leggings of the spawned {@s.boss.type.1} to a {@s.boss.leggings.1} leggings
  481. if {s.boss.boots.is.1} is true:
  482. if {s.boss.boots.ench.is.1} is true:
  483. set boots of the spawned {@s.boss.type.1} to a {@s.boss.boots.1} boots of {@s.boss.ench.boots.1}
  484. else:
  485. set boots of the spawned {@s.boss.type.1} to a {@s.boss.boots.1} boots
  486. if {s.boss.sword.is.1} is true:
  487. if {s.boss.sword.ench.is.1} is true:
  488. set tool of the spawned {@s.boss.type.1} to a {@s.boss.sword.1} sword of {@s.boss.ench.sword.1}
  489. else:
  490. set tool of the spawned {@s.boss.type.1} to a {@s.boss.sword.1} sword
  491. #►►►►►►►►►► Informacje o spawnie bossa 1 ◄◄◄◄◄◄◄◄◄◄
  492. if sender is a player:
  493. broadcast "{@s.boss.prefix}&6&l %player% &6zespawnowal bossa o imieniu {@s.boss.name.1}"
  494. else:
  495. broadcast "{@s.boss.prefix}&6&l Automatycznie &6zespawnowano bossa o imieniu {@s.boss.name.1}"
  496. #╔═══════════════════════════════════════╗
  497. #║ Boss 2 ║
  498. #╚═══════════════════════════════════════╝
  499. if arg 2 is {s.boss.name.2}:
  500. set {_bb.correct.boss.%player%} to true#sprawdza poprawność wpisanego bossa - nie ruszać ;)
  501. #►►►►►►►►►► spawn bossa 2 ◄◄◄◄◄◄◄◄◄◄
  502. set {_loc} to location of block 2 meters above the player
  503. set {_loc} to location of block 2 meters infront block at {_loc}
  504. spawn a {@s.boss.type.2} at {_loc}
  505. apply speed -1000 to the last spawned entity for 20 seconds
  506. apply resistance 99 to the last spawned entity for 20 seconds
  507. #►►►►►►►►►► HP bossa ◄◄◄◄◄◄◄◄◄◄
  508. set the last spawned entity's max health to {@s.boss.hp.2}
  509. heal last spawned entity
  510. #►►►►►►►►►► Nazwa bossa 2 ◄◄◄◄◄◄◄◄◄◄
  511. set the spawned {@s.boss.type.2}'s display name to "{@s.boss.name.2} %spawned {@s.boss.type.2}'s health%/%max health of last spawned entity%"
  512. #►►►►►►►►►► Ubiór bossa 2 i jego broń ◄◄◄◄◄◄◄◄◄◄
  513. if "{@s.boss.type.2}" is "zombie" or "Pig zombie" or "skeleton" or "pigman" or "pigzombie":
  514. if {s.boss.helmet.is.2} is true:
  515. if {s.boss.helmet.ench.is.2} is true:
  516. set helmet of the spawned {@s.boss.type.2} to a {@s.boss.helmet.2} helmet of {@s.boss.ench.helmet.2}
  517. else:
  518. set helmet of the spawned {@s.boss.type.2} to a {@s.boss.helmet.2} helmet
  519. if {s.boss.chestplate.is.2} is true:
  520. if {s.boss.chestplate.ench.is.2} is true:
  521. set chestplate of the spawned {@s.boss.type.2} to a {@s.boss.chestplate.2} chestplate of {@s.boss.ench.chestplate.2}
  522. else:
  523. set chestplate of the spawned {@s.boss.type.2} to a {@s.boss.chestplate.2} chestplate
  524. if {s.boss.leggings.is.2} is true:
  525. if {s.boss.leggings.ench.is.2} is true:
  526. set leggings of the spawned {@s.boss.type.2} to a {@s.boss.leggings.2} leggings of {@s.boss.ench.leggings.2}
  527. else:
  528. set leggings of the spawned {@s.boss.type.2} to a {@s.boss.leggings.2} leggings
  529. if {s.boss.boots.is.2} is true:
  530. if {s.boss.boots.ench.is.2} is true:
  531. set boots of the spawned {@s.boss.type.2} to a {@s.boss.boots.2} boots of {@s.boss.ench.boots.2}
  532. else:
  533. set boots of the spawned {@s.boss.type.2} to a {@s.boss.boots.2} boots
  534. if {s.boss.sword.is.2} is true:
  535. if {s.boss.sword.ench.is.2} is true:
  536. set tool of the spawned {@s.boss.type.2} to a {@s.boss.sword.2} sword of {@s.boss.ench.sword.2}
  537. else:
  538. set tool of the spawned {@s.boss.type.2} to a {@s.boss.sword.2} sword
  539. #►►►►►►►►►► Informacje o spawnie bossa 2 ◄◄◄◄◄◄◄◄◄◄
  540. if sender is a player:
  541. broadcast "{@s.boss.prefix}&6&l %player% &6zespawnowal bossa o imieniu {@s.boss.name.2}"
  542. else:
  543. broadcast "{@s.boss.prefix}&6&l Automatycznie &6zespawnowano bossa o imieniu {@s.boss.name.2}"
  544. #╔═══════════════════════════════════════╗
  545. #║ Obługa błędu braku podania bossa ║
  546. #╚═══════════════════════════════════════╝
  547. if arg 2 is not set:
  548. set {_bb.correct.boss.%player%} to true
  549. execute player command "bb lista"
  550. #╔═══════════════════════════════════════╗
  551. #║ Obługa błędu podania błędnego bossa ║
  552. #╚═══════════════════════════════════════╝
  553. if {_bb.correct.boss.%player%} is false:
  554. send "&4Error! Nie istnieje boss o nazwie &6%arg 2%!"
  555. execute player command "bb lista"
  556. #╔═══════════════════════════════════════╗
  557. #║ Pokazanie dosepnych bossów ║
  558. #╚═══════════════════════════════════════╝
  559. if arg 1 is "list" or "lista":
  560. message "&6Dostepne bossy:"
  561. message " &c- %{s.boss.name.1}%"
  562. message " &c- %{s.boss.name.2}%"
  563. #╔═══════════════════════════════════════╗
  564. #║ Obługa błędu podania błednej komendy ║
  565. #╚═══════════════════════════════════════╝
  566. # else:
  567. if {_bb.correct.command.%player%} is false:
  568. send "&4Error! Nie rozpoznano słowa %arg 1%!"
  569. wait 1 second
  570. execute player command "BetterBoss help"
  571. #╔═══════════════════════════════════════╗
  572. #║ ║
  573. #║ Obsługa obrażeń od bossa ║
  574. #║ ║
  575. #╚═══════════════════════════════════════╝
  576. on damage:
  577. if attacker is a creature:
  578. #╔═══════════════════════════════════════╗
  579. #║ Boss 1 ║
  580. #╚═══════════════════════════════════════╝
  581. if attacker is a {@s.boss.type.1}:
  582. name of attacker contains "{@s.boss.name.1}":
  583. set damage to {@s.boss.dmg.1}
  584. #╔═══════════════════════════════════════╗
  585. #║ Boss 2 ║
  586. #╚═══════════════════════════════════════╝
  587. if attacker is a {@s.boss.type.2}:
  588. name of attacker contains "{@s.boss.name.2}":
  589. set damage to {@s.boss.dmg.2}
  590. #╔═══════════════════════════════════════╗
  591. #║ ║
  592. #║ Obsługa śmierci ║
  593. #║ spowodowanej bossem(chat) ║
  594. #╚═══════════════════════════════════════╝
  595. on death of player:
  596. if attacker is a Creature:
  597. #╔═══════════════════════════════════════╗
  598. #║ Boss 1 ║
  599. #╚═══════════════════════════════════════╝
  600. if attacker is a {@s.boss.type.1}:
  601. name of attacker contains "{@s.boss.name.1}":
  602. wait 1 second
  603. broadcast "{@s.boss.prefix} {@s.boss.name.1} zabił gracza %player%"
  604. send "{@s.boss.prefix} Zostałeś zabity przez BOSSa o nazwie: {@s.boss.name.1}" to victim
  605. #╔═══════════════════════════════════════╗
  606. #║ Boss 2 ║
  607. #╚═══════════════════════════════════════╝
  608. if attacker is a {@s.boss.type.2}:
  609. name of attacker contains "{@s.boss.name.2}":
  610. wait 1 second
  611. broadcast "{@s.boss.prefix} {@s.boss.name.2} zabił gracza %player%"
  612. send "{@s.boss.prefix} Zostałeś zabity przez BOSSa o nazwie: {@s.boss.name.2}" to victim
  613. #╔═══════════════════════════════════════╗
  614. #║ ║
  615. #║ Obsługa zmiany paska ║
  616. #║ nad głową z hp bossa ║
  617. #╚═══════════════════════════════════════╝
  618. on damage of creature:
  619. #╔═══════════════════════════════════════╗
  620. #║ Boss 1 ║
  621. #╚═══════════════════════════════════════╝
  622. if name of victim contains "{@s.boss.name.1}":
  623. if {s.boss.fall.is.1} is false:
  624. if damage was caused by fall:
  625. cancel event
  626. if {s.boss.wolf.is.1} is false:
  627. if attacker is wolf:
  628. cancel event
  629. delete attacker
  630. if {s.boss.fire.is.1} is false:
  631. if damage was caused by fire:
  632. cancel event
  633. if {s.boss.projectile.is.1} is false:
  634. if damage was caused by projectile:
  635. cancel event
  636. if {s.boss.burning.is.1} is false:
  637. if damage was caused by burning:
  638. cancel event
  639. if {s.boss.potion.is.1} is false:
  640. if damage was caused by potion:
  641. cancel event
  642. set name of victim to "{@s.boss.name.1} &6%health of victim%/%max health of victim%"
  643. #╔═══════════════════════════════════════╗
  644. #║ Boss 2 ║
  645. #╚═══════════════════════════════════════╝
  646. if name of victim contains "{@s.boss.name.2}":
  647. if {s.boss.fall.is.2} is false:
  648. if damage was caused by fall:
  649. cancel event
  650. if {s.boss.wolf.is.2} is false:
  651. if attacker is wolf:
  652. cancel event
  653. delete attacker
  654. if {s.boss.fire.is.2} is false:
  655. if damage was caused by fire:
  656. cancel event
  657. if {s.boss.projectile.is.2} is false:
  658. if damage was caused by projectile:
  659. cancel event
  660. if {s.boss.burning.is.2} is false:
  661. if damage was caused by burning:
  662. cancel event
  663. if {s.boss.potion.is.2} is false:
  664. if damage was caused by potion:
  665. cancel event
  666. set name of victim to "{@s.boss.name.2} &6%health of victim%/%max health of victim%"
  667. #╔═══════════════════════════════════════╗
  668. #║ ║
  669. #║ Obsługa śmierci bossa ║
  670. #║ ║
  671. #╚═══════════════════════════════════════╝
  672. on death of creature:
  673. #╔═══════════════════════════════════════╗
  674. #║ Boss 1 ║
  675. #╚═══════════════════════════════════════╝
  676. if victim is a {@s.boss.type.1}:
  677. name of victim contains "{@s.boss.name.1}":
  678. #►►►►►►►►►► Ogłoszenie o zabiciu bossa 1◄◄◄◄◄◄◄◄◄◄
  679. broadcast "{@s.boss.prefix}&6: Gracz &6&l%attacker%&6 zabil bossa &6&l{@s.boss.name.1}"
  680. set {alive.boss.1} to false
  681. chance of 20%:
  682. add a {@s.boss.nagroda5.typ.1} {@s.boss.nagroda5.przedmiot.1} of {@s.boss.nagroda5.ench.1} named "{@s.boss.nagroda5.nazwa.1}" to inventory of attacker
  683. stop
  684. chance of 20%:
  685. add a {@s.boss.nagroda4.typ.1} {@s.boss.nagroda4.przedmiot.1} of {@s.boss.nagroda4.ench.1} named "{@s.boss.nagroda4.nazwa.1}" to inventory of attacker
  686. stop
  687. chance of 20%:
  688. add a {@s.boss.nagroda3.typ.1} {@s.boss.nagroda3.przedmiot.1} of {@s.boss.nagroda3.ench.1} named "{@s.boss.nagroda3.nazwa.1}" to inventory of attacker
  689. stop
  690. chance of 20%:
  691. add a {@s.boss.nagroda2.typ.1} {@s.boss.nagroda2.przedmiot.1} of {@s.boss.nagroda2.ench.1} named "{@s.boss.nagroda2.nazwa.1}" to inventory of attacker
  692. stop
  693. chance of 100%:
  694. add a {@s.boss.nagroda1.typ.1} {@s.boss.nagroda1.przedmiot.1} of {@s.boss.nagroda1.ench.1} named "{@s.boss.nagroda1.nazwa.1}" to inventory of attacker
  695. stop
  696. #╔═══════════════════════════════════════╗
  697. #║ Boss 2 ║
  698. #╚═══════════════════════════════════════╝
  699. if victim is a {@s.boss.type.2}:
  700. name of victim contains "{@s.boss.name.2}":
  701. #►►►►►►►►►► Ogłoszenie o zabiciu bossa 2◄◄◄◄◄◄◄◄◄◄
  702. broadcast "{@s.boss.prefix}&6: Gracz &6&l%attacker%&6 zabil bossa &6&l{@s.boss.name.2}"
  703. set {alive.boss.2} to false
  704. chance of 20%:
  705. add a {@s.boss.nagroda5.typ.2} {@s.boss.nagroda5.przedmiot.2} of {@s.boss.nagroda5.ench.2} named "{@s.boss.nagroda5.nazwa.2}" to inventory of attacker
  706. stop
  707. chance of 20%:
  708. add a {@s.boss.nagroda4.typ.2} {@s.boss.nagroda4.przedmiot.2} of {@s.boss.nagroda4.ench.2} named "{@s.boss.nagroda4.nazwa.2}" to inventory of attacker
  709. stop
  710. chance of 20%:
  711. add a {@s.boss.nagroda3.typ.2} {@s.boss.nagroda3.przedmiot.2} of {@s.boss.nagroda3.ench.2} named "{@s.boss.nagroda3.nazwa.2}" to inventory of attacker
  712. stop
  713. chance of 20%:
  714. add a {@s.boss.nagroda2.typ.2} {@s.boss.nagroda2.przedmiot.2} of {@s.boss.nagroda2.ench.2} named "{@s.boss.nagroda2.nazwa.2}" to inventory of attacker
  715. stop
  716. chance of 100%:
  717. add a {@s.boss.nagroda1.typ.2} {@s.boss.nagroda1.przedmiot.2} of {@s.boss.nagroda1.ench.2} named "{@s.boss.nagroda1.nazwa.2}" to inventory of attacker
  718. stop
  719. #╔═══════════════════════════════════════╗
  720. #║ ║
  721. #║ Obsługa spawnu tabliczką ║
  722. #║ ║
  723. #╚═══════════════════════════════════════╝
  724. on rightclick on sign:
  725. if line 1 is "&1[BetterBoss]":
  726. if line 2 is "&2spawn":
  727. set {tooken.znak1} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z"
  728. set {tooken.znak2} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z"
  729. set {tooken.znak3} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z"
  730. set {tooken.znak4} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z"
  731. set {tooken.znak5} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z"
  732. set {tooken.znak6} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z"
  733. set {tooken.kod} to "%{tooken.znak1}%%{tooken.znak2}%%{tooken.znak3}%%{tooken.znak4}%%{tooken.znak5}%%{tooken.znak6}%"
  734. if line 3 is "%{s.boss.name.1}%":
  735. if {alive.boss.1} is false:
  736. set {tooken.%player%.boss.spawn} to {tooken.kod}
  737. execute player command "BetterBoss spawn %{s.boss.name.1}% %{tooken.%player%.boss.spawn}%"
  738. set {alive.boss.1} to true
  739. if line 3 is "%{s.boss.name.2}%":
  740. if {alive.boss.2} is false:
  741. set {tooken.%player%.boss.spawn} to {tooken.kod}
  742. execute player command "BetterBoss spawn %{s.boss.name.2}% %{tooken.%player%.boss.spawn}%"
  743. set {alive.boss.2} to true
  744. #╔═══════════════════════════════════════╗
  745. #║ ║
  746. #║ Komenda na cutom bossy z poziomy gry ║
  747. #║ ║
  748. #╚═══════════════════════════════════════╝
  749. command /BetterBossCustom [<text>] [<text>] [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
  750. description: Komendy skryptu BetterBoss
  751. usage: /BetterBoss help
  752. #permission: skript.BetterBoss.*
  753. #permission message: &4Nie masz permisji do uzywania tej komendy!
  754. #executable by: players
  755. aliases: bbc, bossc, cboss
  756. trigger:
  757. set {_bb.correct.command.%player%} to false#sprawdza poprawność wpisanej komendy - nie ruszać ;)
  758. if arg 1 is set:
  759. set {_bb.correct.command.%player%} to true
  760. if player have permissions "Better.Boss.custom" or "Better.Boss.*":
  761. if arg 1 is "spider" or "pigzombie" or "magmacube" or "enderman" or "blaze" or "skeleton" or "slime" or "zombie" or "cavespider" or "creeper" or "ghast" or "giant":
  762. if arg 2 is set:
  763. if arg 3 is set:
  764. if arg 4 is set:
  765. set {_rodzaj} to arg 1
  766. if {_rodzaj} is "spider":
  767. spawn spider at location of targeted block
  768. if {_rodzaj} is "pigzombie" or "pigman" or "ZombiePigman":
  769. spawn Zombie Pigman at location of targeted block
  770. if {_rodzaj} is "magmacube":
  771. spawn magma cube at location of targeted block
  772. if {_rodzaj} is "enderman":
  773. spawn enderman at location of targeted block
  774. if {_rodzaj} is "blaze":
  775. spawn blaze at location of targeted block
  776. if {_rodzaj} is "skeleton":
  777. spawn skeleton at location of targeted block
  778. if {_rodzaj} is "slime":
  779. spawn slime at location of targeted block
  780. if {_rodzaj} is "zombie":
  781. spawn zombie at location of targeted block
  782. if {_rodzaj} is "cavespider":
  783. spawn cavespider at location of targeted block
  784. if {_rodzaj} is "creeper":
  785. spawn creeper at location of targeted block
  786. if {_rodzaj} is "ghast":
  787. spawn ghast at location of targeted block
  788. if {_rodzaj} is "giant":
  789. spawn giant at location of targeted block
  790. set {_HP} to arg 2 parsed as integer
  791. set {_nazwa} to arg 4
  792. set {%{_nazwa}%.DMG} to arg 3 parsed as integer
  793. add {_nazwa} to {betterBoss.Custom.bossy::*}
  794. set the last spawned entity's max health to {_HP}
  795. heal the last spawned entity
  796. set the last spawned entity's display name to "%{_nazwa}%"
  797. #set the last spawned entity's display name to "%{_nazwa}% %last spawned entity's health%/%max health of last spawned entity%" #z powodów technicznych off
  798. if arg 1 is "zombie" or "pigzombie":
  799. if arg 5 is "leather" or "iron" or "gold" or "diamond" or "none":
  800. if arg 6 is "leather" or "iron" or "gold" or "diamond" or "none":
  801. if arg 7 is "leather" or "iron" or "gold" or "diamond" or "none":
  802. if arg 8 is "leather" or "iron" or "gold" or "diamond" or "none":
  803. if arg 5 is not "none":
  804. if arg 5 is "diamond":
  805. set helmet of the last spawned entity to a diamond helmet
  806. if arg 5 is "gold":
  807. set helmet of the last spawned entity to a gold helmet
  808. if arg 5 is "iron":
  809. set helmet of the last spawned entity to a iron helmet
  810. if arg 5 is "leather":
  811. set helmet of the last spawned entity to a leather helmet
  812. if arg 6 is not "none":
  813. if arg 6 is "diamond":
  814. set chestplate of the last spawned entity to a diamond chestplate
  815. if arg 6 is "gold":
  816. set chestplate of the last spawned entity to a gold chestplate
  817. if arg 6 is "iron":
  818. set chestplate of the last spawned entity to a iron chestplate
  819. if arg 6 is "leather":
  820. set chestplate of the last spawned entity to a leather chestplate
  821. if arg 7 is not "none":
  822. if arg 7 is "diamond":
  823. set leggings of the last spawned entity to a diamond leggings
  824. if arg 7 is "gold":
  825. set leggings of the last spawned entity to a gold leggings
  826. if arg 7 is "iron":
  827. set leggings of the last spawned entity to a iron leggings
  828. if arg 7 is "leather":
  829. set leggings of the last spawned entity to a leather leggings
  830. if arg 8 is not "none":
  831. if arg 8 is "diamond":
  832. set boots of the last spawned entity to a diamond boots
  833. if arg 8 is "gold":
  834. set boots of the last spawned entity to a gold boots
  835. if arg 8 is "iron":
  836. set boots of the last spawned entity to a iron boots
  837. if arg 8 is "leather":
  838. set boots of the last spawned entity to a leather boots
  839. else:
  840. send "Nie ma takiego rodzaju zbroi jak %arg 2%"
  841. else:
  842. send "Nie ma takiego rodzaju zbroi jak %arg 2%"
  843. else:
  844. send "Nie ma takiego rodzaju zbroi jak %arg 2%"
  845. else:
  846. send "Nie ma takiego rodzaju zbroi jak %arg 2%"
  847. else:
  848. send "&4Musisz podać nazwę bossa(bez spacji)"
  849. else:
  850. send "&4Musisz podać DMG bossa"
  851. else:
  852. send "&4Musisz podac ilość HP bossa"
  853. else:
  854. send "&4Podany mob musi być potworem i być napsiany poprawnie po angielsku!"
  855. else:
  856. send "&4Nie masz praw do użycia tej komendy!"
  857. else:
  858. send "&4/bbc &crodzaj_potwora HP DMG nazwa rodzaj_hełmu rodzaj_napierśnika rodzaj_spodni rodzaj_butów rodzaj_broni broń"
  859. #╔═══════════════════════════════════════╗
  860. #║ ║
  861. #║ Obsługa obrażeń zadanych ║
  862. #║ przez cutom bossa ║
  863. #╚═══════════════════════════════════════╝
  864. on damage of player:
  865. if attacker is creature:
  866. loop {betterBoss.Custom.bossy::*}:
  867. set {_nazwa} to loop-value
  868. if name of attacker contains {_nazwa}:
  869. set damage to {%{_nazwa}%.DMG}
  870. exit loop
  871. #╔═══════════════════════════════════════╗
  872. #║ ║
  873. #║ Obsługa obrażeń cutom bossa ║
  874. #║ ║
  875. #╚═══════════════════════════════════════╝
  876. #Z powodów technicznych chwiolowo off
  877. #on damage of creature:
  878. # loop {betterBoss.Custom.bossy::*}:
  879. # set {_nazwa} to loop-value
  880. # if name of victim contains {_nazwa}:
  881. # set display name of victim to "%name of victim% &6%health of victim%/%max health of victim%"
  882. # exit loop
  883. #╔═══════════════════════════════════════╗
  884. #║ ║
  885. #║ Obsługa śmierci cutom bossa ║
  886. #║ ║
  887. #╚═══════════════════════════════════════╝
  888. on death of creature:
  889. loop {betterBoss.Custom.bossy::*}:
  890. set {_nazwa} to loop-value
  891. if name of victim contains {_nazwa}:
  892. Broadcast "{@s.boss.prefix}&4Gracz %attacker% zabił bossa %{_nazwa}%"
  893. remove {_nazwa} from {betterBoss.Custom.bossy::*}
  894. exit loop
  895. #╔═══════════════════════════════════════╗
  896. #║ ║
  897. #║ Komenda na nakładanie eq na moby ║
  898. #║ ║
  899. #╚═══════════════════════════════════════╝
  900. command /bbfc [<text>][<text>][<text>]:
  901. aliases: BetterBossFastCustom
  902. trigger:
  903. if arg 1 is set:
  904. if arg 1 is "eq":
  905. if arg 2 is set:
  906. if arg 2 is "on":
  907. if player have permissions "Better.Boss.eq.on" or "Better.Boss.*":
  908. set {imposition.%player%} to true#imposition - nakładanie
  909. send "Pomyślnie włączono nakładanie itemków"
  910. if arg 2 is "off":
  911. if player have permissions "Better.Boss.eq.off" or "Better.Boss.*":
  912. set {imposition.%player%} to false#imposition - nakładanie
  913. send "Pomyślnie wyłączono nakładanie itemków"
  914. else:
  915. send "&4/bbfc &ceq &con/off &6-włącza/wyłącza nakładanie eq na moba klikając prawym przyciskiem myszy na niego"
  916. if arg 1 is "hp":
  917. if arg 2 is set:
  918. if arg 2 is "on":
  919. if arg 3 is set:
  920. if player have permissions "Better.Boss.hp.on" or "Better.Boss.*":
  921. set {bbfc.hp.%player%} to true
  922. set {bbfc.hp.%player%.ile} to arg 3 parsed as integer
  923. send "Pomyślnie włączono zmianę hp na %arg 3%"
  924. else:
  925. send "&4/bbfc &chp &con/off ilość &6-włącza/wyłącza zmianę hp moba na którego klikniemy"
  926. if arg 2 is "off":
  927. if player have permissions "Better.Boss.eq.on" or "Better.Boss.*":
  928. set {bbfc.hp.%player%} to false
  929. send "Pomyślnie wyłączono zmianę hp"
  930. else:
  931. send "&4/bbfc &chp &con/off ilość &6-włącza/wyłącza zmianę hp moba na którego klikniemy"
  932. send "0"
  933. send "%arg 1%"
  934. if arg 1 is "name":
  935. send "1"
  936. if arg 2 is set:
  937. send "2"
  938. if arg 2 is "on":
  939. send "3"
  940. if arg 3 is set:
  941. send "4"
  942. if player have permissions "Better.Boss.hp.on" or "Better.Boss.*":
  943. send "5"
  944. set {bbfc.name.%player%} to true
  945. set {bbfc.name.%player%.jakie} to arg 3
  946. send "Pomyślnie włączono zmianę imienia na %arg 3%"
  947. else:
  948. send "&4/bbfc &cname &con/off imie &6-włącza/wyłącza zmianę imienia moba na którego klikniemy"
  949. if arg 2 is "off":
  950. if player have permissions "Better.Boss.eq.on" or "Better.Boss.*":
  951. set {bbfc.name.%player%} to false
  952. send "Pomyślnie wyłączono nazwę moba"
  953. else:
  954. send "&4/bbfc &cname &con/off imie &6-włącza/wyłącza zmianę imienia moba na którego klikniemy"
  955. else:
  956. send "&4/bbfc &ceq &con/off &6-włącza/wyłącza nakładanie eq na moba klikając prawym przyciskiem myszy na niego"
  957. send "&4/bbfc &chp &con/off ilość &6-włącza/wyłącza zmianę hp moba na którego klikniemy"
  958. send "&4/bbfc &cname &con/off imie &6-włącza/wyłącza zmianę imienia moba na którego klikniemy"
  959. #╔═══════════════════════════════════════╗
  960. #║ ║
  961. #║ Szybkie custom ustawienia ║
  962. #║ ║
  963. #╚═══════════════════════════════════════╝
  964. on rightclick on creature:
  965. if {imposition.%player%} is true:
  966. if player's tool is any helmet or any chestplate or any leggings or any boots:
  967. if player have permissions "Better.Boss.imposition.helmet" or "Better.Boss.*":
  968. set helmet of clicked creature to player's tool
  969. cancel event
  970. if player's tool is chestplate:
  971. if player have permissions "Better.Boss.imposition.chestplate" or "Better.Boss.*":
  972. set chestplate of clicked creature to player's tool
  973. cancel event
  974. if player's tool is any leggings:
  975. if player have permissions "Better.Boss.imposition.leggings" or "Better.Boss.*":
  976. set leggings of clicked creature to player's tool
  977. cancel event
  978. if player's tool is any boots:
  979. if player have permissions "Better.Boss.imposition.boots" or "Better.Boss.*":
  980. set boots of clicked creature to player's tool
  981. cancel event
  982. if player's tool is any sword or bow:
  983. if player have permissions "Better.Boss.imposition.tool" or "Better.Boss.*":
  984. set tool of clicked creature to player's tool
  985. cancel event
  986. if {bbfc.hp.%player%} is true:
  987. set clicked entity's max health to {bbfc.hp.%player%.ile}
  988. heal clicked entity
  989. #╔═══════════════════════════════════════╗
  990. #║ ║
  991. #║ Część z randomowym Bossem ║
  992. #║ ║
  993. #╚═══════════════════════════════════════╝
  994. every {@s.boss.rspawn.time} hours:
  995. broadcast "{@s.boss.prefix}&6&l Automatycznie spawnowanie moba..."
  996. if "{@s.boss.rspawn.is}" is "yes":
  997. #►►►►►►►►►► spawn bossa 1 ◄◄◄◄◄◄◄◄◄◄
  998. set {_loc.x} to random integer between {@s.boss.corner.rspawn.x.1} and {@s.boss.corner.rspawn.x.2}
  999. set {_loc.z} to random integer between {@s.boss.corner.rspawn.z.1} and {@s.boss.corner.rspawn.z.2}
  1000. set {_loc.y} to 200
  1001. set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
  1002. spawn a {@s.boss.type.rBOSS.1} at {_loc}
  1003. apply speed 1 to the last spawned entity for 10 seconds
  1004. apply resistance 99 to the last spawned entity for 10 seconds
  1005. #►►►►►►►►►► HP bossa ◄◄◄◄◄◄◄◄◄◄
  1006. set the last spawned entity's max health to {@s.boss.hp.rBOSS.1}
  1007. heal last spawned entity
  1008. #►►►►►►►►►► Nazwa bossa rBOSS.1 ◄◄◄◄◄◄◄◄◄◄
  1009. set the spawned {@s.boss.type.rBOSS.1}'s display name to "{@s.boss.name.rBOSS.1} %spawned {@s.boss.type.rBOSS.1}'s health%/%max health of last spawned entity%"
  1010. #►►►►►►►►►► Ubiór bossa rBOSS.1 i jego broń ◄◄◄◄◄◄◄◄◄◄
  1011. if "{@s.boss.type.rBOSS.1}" is "zombie" or "Pig zombie" or "skeleton" or "pigman" or "pigzombie":
  1012. if "{@s.boss.type.rBOSS.1}" is "zombie" or "Pig zombie" or "skeleton" or "pigman" or "pigzombie":
  1013. if "{@s.boss.czy.helmet.rBOSS.1}" is "yes":
  1014. if "{@s.boss.czy.ench.helmet.rBOSS.1}" is "yes":
  1015. set helmet of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.helmet.rBOSS.1} helmet of {@s.boss.ench.helmet.rBOSS.1}
  1016. else:
  1017. set helmet of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.helmet.rBOSS.1} helmet
  1018. if "{@s.boss.czy.chestplate.rBOSS.1}" is "yes":
  1019. if "{@s.boss.czy.ench.chestplate.rBOSS.1}" is "yes":
  1020. set chestplate of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.chestplate.rBOSS.1} chestplate of {@s.boss.ench.chestplate.rBOSS.1}
  1021. else:
  1022. set chestplate of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.chestplate.rBOSS.1} chestplate
  1023. if "{@s.boss.czy.leggings.rBOSS.1}" is "yes":
  1024. if "{@s.boss.czy.ench.leggings.rBOSS.1}" is "yes":
  1025. set leggings of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.leggings.rBOSS.1} leggings of {@s.boss.ench.leggings.rBOSS.1}
  1026. else:
  1027. set leggings of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.leggings.rBOSS.1} leggings
  1028. if "{@s.boss.czy.boots.rBOSS.1}" is "yes":
  1029. if "{@s.boss.czy.ench.boots.rBOSS.1}" is "yes":
  1030. set boots of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.boots.rBOSS.1} boots of {@s.boss.ench.boots.rBOSS.1}
  1031. else:
  1032. set boots of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.boots.rBOSS.1} boots
  1033. if "{@s.boss.czy.sword.rBOSS.1}" is "yes":
  1034. if "{@s.boss.czy.ench.sword.rBOSS.1}" is "yes":
  1035. set tool of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.sword.rBOSS.1} sword of {@s.boss.ench.sword.rBOSS.1}
  1036. else:
  1037. set tool of the spawned {@s.boss.type.rBOSS.1} to a {@s.boss.sword.rBOSS.1} sword #►►►►►►►►►► Informacje o spawnie bossa rBOSS.1 ◄◄◄◄◄◄◄◄◄◄
  1038. broadcast "{@s.boss.prefix}&6&l Automatycznie <reset>&6zespawnowano bossa o imieniu {@s.boss.name.rBOSS.1}<reset> &6na kordach %{_loc.x}%, %{_loc.y}%, %{_loc.z}%"
  1039. #╔═══════════════════════════════════════╗
  1040. #║ ║
  1041. #║ Obsługa zmiany paska ║
  1042. #║ nad głową z hp random bossa ║
  1043. #╚═══════════════════════════════════════╝
  1044. on damage of creature:
  1045. if name of victim contains "{@s.boss.name.rBOSS.1}":
  1046. set name of victim to "{@s.boss.name.rBOSS.1} &6%health of victim%/%max health of victim%"
  1047. #╔═══════════════════════════════════════╗
  1048. #║ ║
  1049. #║ Obsługa obrażeń od random bossa ║
  1050. #║ ║
  1051. #╚═══════════════════════════════════════╝
  1052. on damage:
  1053. if attacker is a creature:
  1054. if attacker is a {@s.boss.type.rBOSS.1}:
  1055. name of attacker contains "{@s.boss.name.rBOSS.1}":
  1056. set damage to {@s.boss.dmg.rBOSS.1}
  1057. #╔═══════════════════════════════════════╗
  1058. #║ ║
  1059. #║ Obsługa śmierci random bossa ║
  1060. #║ ║
  1061. #╚═══════════════════════════════════════╝
  1062. on death of creature:
  1063. if victim is a {@s.boss.type.rBOSS.1}:
  1064. name of victim contains "{@s.boss.name.rBOSS.1}":
  1065. #►►►►►►►►►► Ogłoszenie o zabiciu bossa 1◄◄◄◄◄◄◄◄◄◄
  1066. broadcast "{@s.boss.prefix}&6: Gracz &6&l%attacker%&6 zabil bossa &6&l{@s.boss.name.rBOSS.1}"
  1067. set {alive.boss.rBOSS.1} to false
  1068. chance of 20%:
  1069. add a {@s.boss.nagroda5.typ.rBOSS.1} {@s.boss.nagroda5.przedmiot.rBOSS.1} of {@s.boss.nagroda5.ench.rBOSS.1} named "{@s.boss.nagroda5.nazwa.rBOSS.1}" to inventory of attacker
  1070. stop
  1071. chance of 20%:
  1072. add a {@s.boss.nagroda4.typ.rBOSS.1} {@s.boss.nagroda4.przedmiot.rBOSS.1} of {@s.boss.nagroda4.ench.rBOSS.1} named "{@s.boss.nagroda4.nazwa.rBOSS.1}" to inventory of attacker
  1073. stop
  1074. chance of 20%:
  1075. add a {@s.boss.nagroda3.typ.rBOSS.1} {@s.boss.nagroda3.przedmiot.rBOSS.1} of {@s.boss.nagroda3.ench.rBOSS.1} named "{@s.boss.nagroda3.nazwa.rBOSS.1}" to inventory of attacker
  1076. stop
  1077. chance of 20%:
  1078. add a {@s.boss.nagroda2.typ.rBOSS.1} {@s.boss.nagroda2.przedmiot.rBOSS.1} of {@s.boss.nagroda2.ench.rBOSS.1} named "{@s.boss.nagroda2.nazwa.rBOSS.1}" to inventory of attacker
  1079. stop
  1080. chance of 100%:
  1081. add a {@s.boss.nagroda1.typ.rBOSS.1} {@s.boss.nagroda1.przedmiot.rBOSS.1} of {@s.boss.nagroda1.ench.rBOSS.1} named "{@s.boss.nagroda1.nazwa.rBOSS.1}" to inventory of attacker
  1082. stop
  1083. #╔═══════════════════════════════════════╗
  1084. #║ ║
  1085. #║ Część eventowymi bossami ║
  1086. #║ ║
  1087. #╚═══════════════════════════════════════╝
  1088. every {@s.boss.eventmob.time} hours:
  1089. if "{@s.boss.eventmob.event.is}" is "yes":
  1090. #►►►►►►►►►► Informacje o evencie ◄◄◄◄◄◄◄◄◄◄
  1091. broadcast "{@s.boss.prefix}&6&l Rozpoczęto event!"
  1092. #►►►►►►►►►► spawn mobów ◄◄◄◄◄◄◄◄◄◄
  1093. set {_licznik.a} to 10
  1094. set {_licznik.b} to 10
  1095. set {_how.many.mobs} to 0
  1096. set {_how.many.waves} to 0
  1097. loop {_licznik.a} times:
  1098. if {@s.boss.eventmob.how.waves} is {_how.many.waves}:
  1099. exit loop
  1100. add 1 to {_how.many.waves}
  1101. wait {@s.boss.eventmob.time} seconds
  1102. loop {_licznik.b} times:
  1103. if {@s.boss.eventmob.how.many} is {_how.many.mobs}:
  1104. exit loop
  1105. add 1 to {_how.many.mobs}
  1106. add 1 to {_licznik.b}
  1107. set {_loc.x} to random integer between {@s.boss.corner.eventmob.x.1} and {@s.boss.corner.eventmob.x.2}
  1108. set {_loc.z} to random integer between {@s.boss.corner.eventmob.z.1} and {@s.boss.corner.eventmob.z.2}
  1109. set {_loc.y} to 200
  1110. set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
  1111. spawn a {@s.boss.eventmob.type.x} at {_loc}
  1112. apply speed 1 to the last spawned entity for 10 seconds
  1113. apply resistance 99 to the last spawned entity for 10 seconds
  1114. #►►►►►►►►►► HP bossa ◄◄◄◄◄◄◄◄◄◄
  1115. set the last spawned entity's max health to {@s.boss.eventmob.hp.x}
  1116. heal last spawned entity
  1117. #►►►►►►►►►► Nazwa bossa eventmob ◄◄◄◄◄◄◄◄◄◄
  1118. set the spawned {@s.boss.eventmob.type.x}'s display name to "{@s.boss.eventmob.nazwa.x} %spawned {@s.boss.eventmob.type.x}'s health%/%max health of last spawned entity%"
  1119. #►►►►►►►►►► Ubiór bossa eventmob.1 i jego broń ◄◄◄◄◄◄◄◄◄◄
  1120. if "{@s.boss.eventmob.type.x}" is "zombie" or "Pig zombie" or "skeleton" or "pigman" or "pigzombie":
  1121. if "{@s.boss.czy.helmet.eventmob.1}" is "yes":
  1122. if "{@s.boss.czy.ench.helmet.eventmob.1}" is "yes":
  1123. set helmet of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.helmet.eventmob.1} helmet of {@s.boss.ench.helmet.eventmob.1}
  1124. else:
  1125. set helmet of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.helmet.eventmob.1} helmet
  1126. if "{@s.boss.czy.chestplate.eventmob.1}" is "yes":
  1127. if "{@s.boss.czy.ench.chestplate.eventmob.1}" is "yes":
  1128. set chestplate of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.chestplate.eventmob.1} chestplate of {@s.boss.ench.chestplate.eventmob.1}
  1129. else:
  1130. set chestplate of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.chestplate.eventmob.1} chestplate
  1131. if "{@s.boss.czy.leggings.eventmob.1}" is "yes":
  1132. if "{@s.boss.czy.ench.leggings.eventmob.1}" is "yes":
  1133. set leggings of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.leggings.eventmob.1} leggings of {@s.boss.ench.leggings.eventmob.1}
  1134. else:
  1135. set leggings of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.leggings.eventmob.1} leggings
  1136. if "{@s.boss.czy.boots.eventmob.1}" is "yes":
  1137. if "{@s.boss.czy.ench.boots.eventmob.1}" is "yes":
  1138. set boots of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.boots.eventmob.1} boots of {@s.boss.ench.boots.eventmob.1}
  1139. else:
  1140. set boots of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.boots.eventmob.1} boots
  1141. if "{@s.boss.czy.sword.eventmob.1}" is "yes":
  1142. if "{@s.boss.czy.ench.sword.eventmob.1}" is "yes":
  1143. set tool of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.sword.eventmob.1} sword of {@s.boss.ench.sword.eventmob.1}
  1144. else:
  1145. set tool of the spawned {@s.boss.eventmob.type.x} to a {@s.boss.sword.eventmob.1} sword
  1146. broadcast "{@s.boss.prefix}&6&l Zakończono spawnowanie mobów!"
  1147. #╔═══════════════════════════════════════╗
  1148. #║ ║
  1149. #║ Część z dedem eventowych bossów ║
  1150. #║ ║
  1151. #╚═══════════════════════════════════════╝
  1152. on death of creature:
  1153. if victim is a {@s.boss.eventmob.type.x}:
  1154. name of victim contains "{@s.boss.eventmob.nazwa.x}":
  1155. #►►►►►►►►►► Ogłoszenie o zabiciu bossa 1◄◄◄◄◄◄◄◄◄◄
  1156. broadcast "{@s.boss.prefix}&6: Gracz &6&l%attacker%&6 zabil bossa &2eventowego &6&l{@s.boss.eventmob.nazwa.x}"
  1157. #╔═══════════════════════════════════════╗
  1158. #║ ║
  1159. #║ Koniec ║
  1160. #║ ║
  1161. #╚═══════════════════════════════════════╝
Advertisement
Add Comment
Please, Sign In to add comment