szumielxd

klucz2

Sep 16th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.18 KB | None | 0 0
  1. on damage of skeleton:
  2. "%region at victim%" contains "key2_boss in world keys":
  3. cancel event
  4.  
  5. on entity target:
  6. "%region at entity%" contains "key2_boss in world keys":
  7. "%type of entity's target%" is "player":
  8. cancel event
  9.  
  10. on exit region "key2_boss":
  11. clearSets(player)
  12.  
  13. on enter region "key2_nwm":
  14. set {_r} to random integer between 1 and 8
  15. {_r} is 1:
  16. send "&aAle tak zupelnie nic nie wiesz?"
  17. {_r} is 2:
  18. send "&aNic a nic?"
  19. {_r} is 3:
  20. send "&aPustka w glowie?"
  21. {_r} is 4:
  22. send "&aAle ze nie wiesz czy wiesz?"
  23. {_r} is 5:
  24. send "&aMoze teraz juz wiesz?"
  25. {_r} is 6:
  26. send "&aA czy wiesz ze nic nie wiesz?"
  27. {_r} is 7:
  28. send "&aGlupota boli?"
  29. {_r} is 8:
  30. send "&aCzy ty cokolwiek wiesz?"
  31. {key2.nwm.%player%} is not set:
  32. set {key2.nwm.%player%} to 1
  33. wait 2 minutes
  34. delete {key2.nwm.%player%}
  35. else:
  36. add 1 to {key2.nwm.%player%}
  37. {key2.nwm.%player%} is 10:
  38. teleport player to location 363, 31, 212 in world "keys"
  39.  
  40.  
  41. on disconnect:
  42. clearSets(player)
  43.  
  44. function clearSets(p: player):
  45.  
  46. name of {_p}'s boots is "&6&lKabanosowe Sandaly":
  47. set {_p}'s boots to air
  48. name of {_p}'s boots is "&e&lCytrynowe Sandaly":
  49. set {_p}'s boots to air
  50. name of {_p}'s boots is "&f&lCukrowe Sandaly":
  51. set {_p}'s boots to air
  52. name of {_p}'s boots is "&b&lLodowe Sandaly":
  53. set {_p}'s boots to air
  54.  
  55. name of {_p}'s leggings is "&6&lKabanosowe Kalesony":
  56. set {_p}'s leggings to air
  57. name of {_p}'s leggings is "&e&lCytrynowe Kalesony":
  58. set {_p}'s leggings to air
  59. name of {_p}'s leggings is "&f&lCukrowe Kalesony":
  60. set {_p}'s leggings to air
  61. name of {_p}'s leggings is "&b&lLodowe Kalesony":
  62. set {_p}'s leggings to air
  63.  
  64. name of {_p}'s chestplate is "&6&lKabanosowe Napiersnik":
  65. set {_p}'s chestplate to air
  66. name of {_p}'s chestplate is "&e&lCytrynowy Napiersnik":
  67. set {_p}'s chestplate to air
  68. name of {_p}'s chestplate is "&f&lCukrowy Napiersnik":
  69. set {_p}'s chestplate to air
  70. name of {_p}'s chestplate is "&b&lLodowy Napiersnik":
  71. set {_p}'s chestplate to air
  72.  
  73. name of {_p}'s helmet is "&6&lKabanosowy Helm":
  74. set {_p}'s helmet to air
  75. name of {_p}'s helmet is "&e&lCytrynowy Helm":
  76. set {_p}'s helmet to air
  77. name of {_p}'s helmet is "&f&lCukrowy Helm":
  78. set {_p}'s helmet to air
  79. name of {_p}'s helmet is "&b&lLodowy Helm":
  80. set {_p}'s helmet to air
  81.  
  82. loop {_p}'s inventory:
  83. name of loop-slot is "&6&lKabanosowy Helm" or "&6&lKabanosowy Napiersnik" or "&6&lKabanosowe Kalesony" or "&6&lKabanosowe Sandaly":
  84. remove loop-slot from {_p}'s inventory
  85. name of loop-slot is "&e&lCytrynowy Helm" or "&e&lCytrynowy Napiersnik" or "&e&lCytrynowe Kalesony" or "&e&lCytrynowe Sandaly":
  86. remove loop-slot from {_p}'s inventory
  87. name of loop-slot is "&f&lCukrowy Helm" or "&f&lCukrowy Napiersnik" or "&f&lCukrowe Kalesony" or "&f&lCukrowe Sandaly":
  88. remove loop-slot from {_p}'s inventory
  89. name of loop-slot is "&b&lLodowy Helm" or "&b&lLodowy Napiersnik" or "&b&lLodowe Kalesony" or "&b&lLodowe Sandaly":
  90. remove loop-slot from {_p}'s inventory
  91.  
  92. on enter region "key2_boss":
  93. {key2.bossroom} is in region "key2_boss":
  94. cancel event
  95. send "&cTam sie dzieja straszne rzeczy"
  96. else:
  97.  
  98. send "&5Czyz ten portal nie wyglada kuszaco?"
  99. set {key2.bossroom} to player
  100. loop all withers in radius 70 around player:
  101. "%region at loop-wither%" contains "key2_boss in world keys":
  102. teleport loop-wither 100 meters below loop-wither
  103. wait 1 tick
  104. delete loop-wither
  105. kill loop-wither
  106. delete {key2.wither}
  107. loop all skeletons in radius 70 around player:
  108. "%region at loop-skeleton%" contains "key2_boss in world keys":
  109. delete loop-skeleton
  110. spawn skeleton at location 351, 32, 187 in world "keys"
  111. set name of spawned entity to "&aStefan"
  112. apply slowness 99999 to spawned entity for 1 day
  113. spawn skeleton at location 350, 32, 187 in world "keys"
  114. set name of spawned entity to "&aJedrek"
  115. apply slowness 99999 to spawned entity for 1 day
  116. spawn skeleton at location 349, 32, 187 in world "keys"
  117. set name of spawned entity to "&aPochlaniacz kalorii"
  118. apply slowness 99999 to spawned entity for 1 day
  119. spawn skeleton at location 348, 32, 187 in world "keys"
  120. set name of spawned entity to "&aJurand ze Spychowa"
  121. apply slowness 99999 to spawned entity for 1 day
  122. set {_l} to 1
  123. set block at location 362, 29, 212 in world "keys" to redstone_block
  124. send "&6Za &c3 &6minuty przybedzie boss"
  125. loop 42 times:
  126. wait 5 seconds
  127. player is in region "key2_boss":
  128. loop-number is 12:
  129. {key2.wither} is alive:
  130. stop
  131. send "&c&lZa 2 minuty przybedzie Boss!"
  132. loop-number is 24:
  133. {key2.wither} is alive:
  134. stop
  135. send "&c&lZa minute przybedzie Boss!"
  136. loop-number is 30:
  137. {key2.wither} is alive:
  138. stop
  139. send "&c&lZa 30 sekund przybedzie Boss!"
  140. loop-number is 36:
  141. {key2.wither} is alive:
  142. stop
  143. send "&6&lBoss przybyl pokonac swoich wrogow!"
  144. set block at location 340, 30, 189 in world "keys" to air
  145. set block at location 340, 30, 189 in world "keys" to redstone_block
  146. set block at location 340, 30, 189 in world "keys" to air
  147. loop-number is 42:
  148. {key2.wither} is alive:
  149. send "&cWither tym razem wygral!"
  150. player is in region "key2_boss":
  151. teleport player to spawn of world "spawn"
  152. set block at location 362, 29, 212 in world "keys" to air
  153. else:
  154. player is in region "key2_boss":
  155. teleport player to spawn of world "spawn"
  156. set block at location 362, 29, 212 in world "keys" to air
  157.  
  158. loop withers in radius 2 around {key2.wither}:
  159. delete loop-wither
  160. delete {key2.wither}
  161. else:
  162. set block at location 362, 29, 212 in world "keys" to air
  163. delete {key2.bossroom}
  164. stop
  165.  
  166. on rightclick on skeleton:
  167. player is in region "key2_boss":
  168. set {_a} to player's tool
  169. type of {_a} is any helmet or any chestplate or any leggings or any boots:
  170. equip clicked skeleton with {_a}
  171. set player's tool to air
  172. set {_r} to random integer between 0 and 8
  173. {_r} is 0:
  174. send "&6Wojownik &e%skeleton's name%&l&8»&7 I to jest przyklad dobrego parafianina!" to player
  175. {_r} is 1:
  176. send "&6Wojownik &e%skeleton's name%&l&8»&7 Dziekuje za ten chojny dar" to player
  177. {_r} is 2:
  178. send "&6Wojownik &e%skeleton's name%&l&8»&7 Dla wiekszej chwaly Boga!" to player
  179. {_r} is 3:
  180. send "&6Wojownik &e%skeleton's name%&l&8»&7 Niech Bog ci wynagrodzi twoj czyn" to player
  181. {_r} is 4:
  182. send "&6Wojownik &e%skeleton's name%&l&8»&7 Swiety! Po prostu swiety!" to player
  183. {_r} is 5:
  184. send "&6Wojownik &e%skeleton's name%&l&8»&7 Coz bysmy zrobili bez twojej pomocy!" to player
  185. {_r} is 6:
  186. send "&6Wojownik &e%skeleton's name%&l&8»&7 Bog nam Cie zeslal!" to player
  187. {_r} is 7:
  188. send "&6Wojownik &e%skeleton's name%&l&8»&7 Nie kazdy bohater nie nosi peleryne" to player
  189. {_r} is 8:
  190. send "&6Wojownik &e%skeleton's name%&l&8»&7 Deus Vult! przyjacielu" to player
  191. else:
  192. send "&6Wojownik &e%skeleton's name%&l&8»&7 Nie tego nam potrzeba" to player
  193.  
  194.  
  195. on spawn of wither:
  196. "%region at event-entity%" contains "key2_wither in world keys":
  197. set name of event-entity to "&4&lPan i wladca szynki krakowskiej"
  198. set {key2.wither} to event-entity
  199. loop skeletons in radius 25 around event-entity:
  200. set loop-skeleton's target to event-entity
  201. wait 10 ticks
  202. loop skeletons in radius 25 around event-entity:
  203. event-entity is alive:
  204. loop-skeleton is alive:
  205. make safe explosion of force 3 at loop-skeleton
  206. loop skeletons in radius 3 around loop-skeleton:
  207. delete loop-skeleton-2
  208. wait 3 seconds
  209.  
  210. on pick up stick:
  211. event-item is stick named "&6&lBrazowy klucz":
  212. player is in region "key2_boss":
  213. wait 1 tick
  214. remove all event-item from player's inventory
  215. {keys.keys.owned.%player%::Brazowy_klucz} is not set:
  216. teleport player to spawn of world "spawn"
  217. broadcast "&d&l%player% &5&lZnalazl Brazowy klucz!"
  218. send "&6[&e&lBog &6-> &cJa&6] &bWspaniale! Jeszcze 1 klucz i nagroda bedzie twoja!" to player
  219. wait 1 second
  220. send "&6[&e&lBog &6-> &cJa&6] &bWpisz /klucze, aby przeczytac wskazowke ktora ci podarowalem" to player
  221. set {keys.keys.owned.%player%::Brazowy_klucz} to "Pokoj pelen przelacznikow skrywa wiele tajemnic. Czasem wystarczy poczekac, a odpowiedz pokaze sie sama"
  222. else:
  223. send "&6[&e&lBog &6-> &cJa&6] &cZe niby pozwole ci wziac drugi raz ten sam klucz?" to player
  224. wait 4 seconds
  225. player is in region "key1_key"
  226. send "&6[&e&lBog &6-> &cJa&6] &4&lOUT!" to player
  227. teleport player to spawn of world "spawn"
  228.  
  229. on damage of wither:
  230. "%region at victim%" contains "key2_wither in world keys":
  231. attacker is player:
  232. attacker's gamemode is not creative:
  233. cancel event
  234.  
  235. on death of wither:
  236. "%region at victim%" contains "key2_wither in world keys":
  237. loop skeletons in radius 25 around victim:
  238. delete loop-skeleton's target
  239. set drops to stick named "&6&lBrazowy klucz"
  240.  
  241. on shoot:
  242. "%region at event-entity%" contains "key2_boss in world keys":
  243. shooter is skeleton:
  244. loop 25 times:
  245. loop withers in radius 4 around entity:
  246. damage loop-wither by 30 hearts
  247. delete projectile
  248. stop
  249. wait 2 ticks
Advertisement
Add Comment
Please, Sign In to add comment