szumielxd

4potwory

Jan 3rd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. options:
  2. pot1: location(6993, 80, 7298, world "katedra")
  3. pot2: location(6983, 81, 7313, world "katedra")
  4. pot3: location(6958, 81, 7306, world "katedra")
  5. pot4: location(6971, 82, 7285, world "katedra")
  6. back: location(6997, 96, 7296, world "katedra")
  7.  
  8.  
  9. on damage of polar bear:
  10. "%region at attacker%" contains "4potwory_quest":
  11. chance of 5%:
  12. send "&6MlodyBog &8&l» &bBicie jest juz dawno nie w modzie..." to attacker
  13. send "&6MlodyBog &8&l» &bSprobuj go usmiercic w inny, bardziej wykwintny sposob" to attacker
  14.  
  15.  
  16. on enter region "4potwory_quest":
  17. loop all players in radius 50 around player:
  18. if "%region at loop-player%" contains "4potwory_quest":
  19. teleport player to {@back}
  20. send "&cw tym miejscu moze wykazac sie tylko jedna osoba w tym samym czasie"
  21. stop
  22. loop all polar bears in radius 50 around player:
  23. teleport loop-polar bear 100 meters below loop-polar bear
  24. kill loop-polar bear
  25. execute console command "tellraw %player% ["""",{""text"":""§lPokaz na ile cie stac i zabij "",""color"":""green""},{""text"":""§l4 potwory"",""underlined"":true,""color"":""green"",""clickEvent"":{""action"":""run_command"",""value"":""/dhaInxncuzi128u88eh7wse176w128u3nreu1""},""hoverEvent"":{""action"":""show_text"",""value"":""§cKliknijn, aby zabic wszystkie 4 potwory""}},{""text"":"" §lw trakcie 10 sekund"",""color"":""green""}]"
  26. loop 4 times:
  27. if loop-number is 1:
  28. spawn polar bear at {@pot1}
  29. if loop-number is 2:
  30. spawn polar bear at {@pot2}
  31. if loop-number is 3:
  32. spawn polar bear at {@pot3}
  33. if loop-number is 4:
  34. spawn polar bear at {@pot4}
  35. set {_bear.%loop-number%} to spawned entity
  36. set {_bear.%loop-number%}'s max health to 16384
  37. heal {_bear.%loop-number%}
  38. apply slowness 200 to {_bear.%loop-number%}
  39. set target of {_bear.%loop-number%} to player
  40. set name of {_bear.%loop-number%} to "&b&lPotworny Lodowy Potwor"
  41. loop 10 times:
  42. send actionbar "&c&l00:0%10-loop-number%:&kaa" to player
  43. wait 1 second
  44. if metadata value "4potwory" of player is true:
  45. clear metadata value "4potwory" of player
  46. send action bar "" to player
  47. stop
  48. end4potwory(player)
  49. wait 2 ticks
  50. clear metadata value "4potwory" of player
  51.  
  52. on exit region "4potwory_quest":
  53. loop all polar bears in radius 50 around player:
  54. kill loop-polar bear
  55. set metadata value "4potwory" of player to true
  56. wait 1 second
  57. clear metadata value "4potwory" of player
  58.  
  59.  
  60. on death of polar bear:
  61. "%region at victim%" contains "4potwory_quest":
  62. clear drops
  63.  
  64.  
  65. command /dhaInxncuzi128u88eh7wse176w128u3nreu1:
  66. trigger:
  67. if "%region at player%" contains "4potwory_quest":
  68. loop all polar bears in radius 50 around player:
  69. kill loop-polar bear
  70. set metadata value "4potwory" of player to true
  71. wait 1 second
  72. send "&6&lBogowie sa pod wrazeniem twojego sprytu i umiejetnosci manipulacji chatem!"
  73. wait 2 second
  74. send "&4&lTeleportacja do Mefisto..."
  75. wait 1 second
  76. loop 10 times:
  77. strike lightning effect at player
  78. wait 2 ticks
  79. run {_p} command "warp mefisto" as op
  80.  
  81.  
  82. function end4potwory(p: player):
  83. if metadata value "4potwory.pozostalo" of {_p} >= 3:
  84. send {_p} title "&4&lNiestety" with subtitle "&fTa zagadka Cie przerasta..." for 5 seconds
  85. run {_p} command "warp katedra" as op
  86. else:
  87.  
  88. set {_m} to metadata value "4potwory.pozostalo" of {_p}
  89. add 1 to {_m}
  90. set metadata value "4potwory.pozostalo" of {_p} to {_m}
  91. teleport {_p} to {@back}
  92. send {_p} title "&4&lPrzegrales" with subtitle "&eZostalo Ci %4 - {_m}% szans" for 5 seconds
  93.  
  94. on disconnect:
  95. clear metadata value "4potwory.pozostalo" of player
  96.  
  97. on exit region "4potwory":
  98. clear metadata value "4potwory.pozostalo" of player
Advertisement
Add Comment
Please, Sign In to add comment