Advertisement
Oxalist

Untitled

Apr 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.65 KB | None | 0 0
  1. variables:
  2. {coins::%player%} = 0
  3. {kills::%player%} = 0
  4.  
  5. on death:
  6. if victim is a player:
  7. if attacker is a zombie:
  8. clear victim's inventory
  9. broadcast "&8| &2A&apocalypse &8» &2%victim% &awas killed by a &2%attacker%"
  10. add 1 to {deaths::%victim%}
  11. wait 1 second
  12. set {ingame::%player%} to "False"
  13. teleport victim to {spawn}
  14.  
  15. on join:
  16. set join message to "&8| &2A&apocalypse &8» &a&l%player%"
  17. on first join:
  18. set join message to "&8| &2A&apocalypse &8» &a&l%player%"#
  19. on quit:
  20. set leave message to "&8| &2A&apocalypse &8» &c&l%player%"
  21. set {ingame::%player%} to "False"
  22.  
  23. on rightclick on sign:
  24. if line 2 of event-block is "&2Join":
  25. make player execute command "/join"
  26. set line 3 of event-block to "&8(Click to join)"
  27.  
  28. command /leave:
  29. trigger:
  30. if {ingame::%player%} is "True":
  31. set {ingame::%player%} to "False"
  32. send "&8| &2A&apocalypse &8» &7Sending you to spawn"
  33. teleport player to {spawn}
  34. stop
  35. if {ingame::%player%} is "False":
  36. send "&8| &2A&apocalypse &8» &7You are not in a game"
  37. stop
  38.  
  39. on rightclick on sign:
  40. if line 2 of event-block is "&cLeave":
  41. make player execute command "/leave"
  42. set line 3 of event-block to "&8(Click to leave)"
  43.  
  44. command /join:
  45. trigger:
  46. if {ingame::%player%} is "False":
  47. set {ingame::%player%} to "True"
  48. send "&8| &2A&apocalypse &8» &7Sending you to the arena"
  49. teleport player to {arena}
  50. stop
  51. if {ingame::%player%} is "True":
  52. send "&8| &2A&apocalypse &8» &7You are already in the game"
  53. stop
  54.  
  55.  
  56. command /zombie [<text>] [<number>] [<text>]:
  57. trigger:
  58. if arg 1 is set:
  59. if arg 1 is "setapocalypse" or "seta":
  60. if player has permission "zombie.setapoc":
  61. if arg 2 is set:
  62. if arg 2 is 1:
  63. set {Zombie.Apocalypse.1} to location of player
  64. send "&8|&2A&apocalypse &8» &7Set spawn number &21"
  65. stop
  66. if arg 2 is 2:
  67. set {Zombie.Apocalypse.2} to location of player
  68. send "&8|&2A&apocalypse &8» &7Set spawn number &22"
  69. stop
  70. if arg 2 is 3:
  71. set {Zombie.Apocalypse.3} to location of player
  72. send "&8|&2A&apocalypse &8» &7Set spawn number &23"
  73. stop
  74. if arg 2 is 4:
  75. set {Zombie.Apocalypse.4} to location of player
  76. send "&8|&2A&apocalypse &8» &7Set spawn number &24"
  77. stop
  78. if arg 2 is 5:
  79. set {Zombie.Apocalypse.5} to location of player
  80. send "&8|&2A&apocalypse &8» &7Set spawn number &25"
  81. stop
  82. if arg 2 is not 1 or 2 or 3 or 4 or 5:
  83. send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5"
  84. stop
  85. else:
  86. send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5"
  87. stop
  88. else:
  89. send "&8| &2Z&aombie &8» &7Dazu bist du nicht Berechtigt!"
  90. stop
  91. if arg 1 is "apocalypse" or "apoc":
  92. if player has permission "zombie.apoc":
  93. add 25 to {Zombie.live}
  94. spawn a zombie at location of {Zombie.Apocalypse.1}
  95. spawn a zombie at location of {Zombie.Apocalypse.1}
  96. spawn a zombie at location of {Zombie.Apocalypse.1}
  97. spawn a zombie at location of {Zombie.Apocalypse.1}
  98. spawn a zombie at location of {Zombie.Apocalypse.1}
  99. spawn a zombie at location of {Zombie.Apocalypse.1}
  100. spawn a zombie at location of {Zombie.Apocalypse.2}
  101. spawn a zombie at location of {Zombie.Apocalypse.2}
  102. spawn a zombie at location of {Zombie.Apocalypse.2}
  103. spawn a zombie at location of {Zombie.Apocalypse.2}
  104. spawn a zombie at location of {Zombie.Apocalypse.2}
  105. spawn a zombie at location of {Zombie.Apocalypse.3}
  106. spawn a zombie at location of {Zombie.Apocalypse.3}
  107. spawn a zombie at location of {Zombie.Apocalypse.3}
  108. spawn a zombie at location of {Zombie.Apocalypse.3}
  109. spawn a zombie at location of {Zombie.Apocalypse.3}
  110. spawn a zombie at location of {Zombie.Apocalypse.4}
  111. spawn a zombie at location of {Zombie.Apocalypse.4}
  112. spawn a zombie at location of {Zombie.Apocalypse.4}
  113. spawn a zombie at location of {Zombie.Apocalypse.4}
  114. spawn a zombie at location of {Zombie.Apocalypse.4}
  115. spawn a zombie at location of {Zombie.Apocalypse.5}
  116. spawn a zombie at location of {Zombie.Apocalypse.5}
  117. spawn a zombie at location of {Zombie.Apocalypse.5}
  118. spawn a zombie at location of {Zombie.Apocalypse.5}
  119. spawn a zombie at location of {Zombie.Apocalypse.5}
  120. send "&8| &2Z&aombie &8» &7Es wurden &e25 &7Gespawnt!"
  121. broadcast " "
  122. broadcast " &aEs ist eine Neue Zombie Welle mit &225 &aZomies Ausgebrochen!"
  123. broadcast " "
  124. invoke "scoreboard"
  125. stop
  126. else:
  127. send "&8| &2Z&aombie &8» &7Dazu bist du nicht Berechtigt!"
  128. stop
  129. if arg 1 is "kill" or "clear":
  130. if player has permission "zombie.clear":
  131. set {Zombie.live} to 0
  132. kill all zombies
  133. invoke "scoreboard"
  134. else:
  135. send "&8| &2Z&aombie &8» &7Dazu bist du nicht Berechtigt!"
  136. stop
  137. if arg 1 is not "kill" or "clear" or "apocalypse" or "apoc" or "setapocalypse" or "seta":
  138. if player has permission "zombie.help":
  139. send "&8| &2Z&aombie &8» &7"
  140. send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5 &8| &eSetzte die Spawns fuer die Apocalypsen"
  141. send "&8| &2Z&aombie &8» &7/Zombie Apocalypse &8| &eLasse eine Zombie Welle Ausbrechen."
  142. send "&8| &2Z&aombie &8» &7/Zombie Clear &8| &eToete die ganzen Zombies."
  143. stop
  144. else:
  145. send "&8| &2Z&aombie &8» &7Dieser Commands exestiert nicht!"
  146. stop
  147. else:
  148. if player has permission "zombie.help":
  149. send "&8| &2Z&aombie &8» &7"
  150. send "&8| &2Z&aombie &8» &7/Zombie Setapocalypse 1-5 &8| &eSetzte die Spawns fuer die Apocalypsen"
  151. send "&8| &2Z&aombie &8» &7/Zombie Apocalypse &8| &eLasse eine Zombie Welle Ausbrechen."
  152. send "&8| &2Z&aombie &8» &7/Zombie Clear &8| &eToete die ganzen Zombies."
  153. stop
  154. else:
  155. send "&8| &2Z&aombie &8» &7Dieser Commands exestiert nicht!"
  156. stop
  157. every minute:
  158. loop all players:
  159. if {ingame::%loop-player%} is "True":
  160. add 25 to {Zombie.live}
  161. spawn a zombie at location of {Zombie.Apocalypse.1}
  162. spawn a zombie at location of {Zombie.Apocalypse.1}
  163. spawn a zombie at location of {Zombie.Apocalypse.1}
  164. spawn a zombie at location of {Zombie.Apocalypse.1}
  165. spawn a zombie at location of {Zombie.Apocalypse.1}
  166. spawn a zombie at location of {Zombie.Apocalypse.1}
  167. spawn a zombie at location of {Zombie.Apocalypse.2}
  168. spawn a zombie at location of {Zombie.Apocalypse.2}
  169. spawn a zombie at location of {Zombie.Apocalypse.2}
  170. spawn a zombie at location of {Zombie.Apocalypse.2}
  171. spawn a zombie at location of {Zombie.Apocalypse.2}
  172. spawn a zombie at location of {Zombie.Apocalypse.3}
  173. spawn a zombie at location of {Zombie.Apocalypse.3}
  174. spawn a zombie at location of {Zombie.Apocalypse.3}
  175. spawn a zombie at location of {Zombie.Apocalypse.3}
  176. spawn a zombie at location of {Zombie.Apocalypse.3}
  177. spawn a zombie at location of {Zombie.Apocalypse.4}
  178. spawn a zombie at location of {Zombie.Apocalypse.4}
  179. spawn a zombie at location of {Zombie.Apocalypse.4}
  180. spawn a zombie at location of {Zombie.Apocalypse.4}
  181. spawn a zombie at location of {Zombie.Apocalypse.4}
  182. spawn a zombie at location of {Zombie.Apocalypse.5}
  183. spawn a zombie at location of {Zombie.Apocalypse.5}
  184. spawn a zombie at location of {Zombie.Apocalypse.5}
  185. spawn a zombie at location of {Zombie.Apocalypse.5}
  186. spawn a zombie at location of {Zombie.Apocalypse.5}
  187. set {zombies} to random integer between 1 and 4
  188. if {zombies} is 1:
  189. send " " to loop-player
  190. send " &aLets keep going &2+25 &amore ""hahahahaha"" " to loop-player
  191. send " " to loop-player
  192. invoke "scoreboard"
  193. if {zombies} is 2:
  194. send " " to loop-player
  195. send " &aGod this is getting boring &2+25" to loop-player
  196. send " " to loop-player
  197. invoke "scoreboard"
  198. if {zombies} is 3:
  199. send " " to loop-player
  200. send " &aLets hurry and make it a lot more fun :) &2+25" to loop-player
  201. send " " to loop-player
  202. invoke "scoreboard"
  203. if {zombies} is 4:
  204. send " " to loop-player
  205. send " &a5, 4, 3, 2, 1 here we go! &2+25" to loop-player
  206. send " " to loop-player
  207. invoke "scoreboard"
  208. on death of zombie:
  209. clear drops
  210. remove 1 from {Zombie.live}
  211. invoke "scoreboard"
  212. stop
  213.  
  214. every second:
  215. loop all players:
  216. if {ingame::%loop-player%} is "False":
  217. wipe loop-player's sidebar
  218. set name of sidebar of loop-player to "&8» &2A&apocalypse &8«"
  219. set score "&7" in sidebar of loop-player to 5
  220. set score "&2Z&aombie &2K&aills&2: &7&l%{kills::%loop-player%}%" in sidebar of loop-player to 4
  221. set score "&2C&aoins&2: &7&l%{coins::%loop-player%}%" in sidebar of loop-player to 3
  222. set score "&2D&aeaths&2: &7&l%{deaths::%loop-player%}%" in sidebar of loop-player to 2
  223. set score "&a" in sidebar of loop-player to 1
  224.  
  225. on death of zombie:
  226. if attacker is a player:
  227. set action bar of attacker to "&2+1 &aCoin for the zombie kill"
  228. clear drops
  229. add 1 to {kills::%attacker%}
  230. add 1 to {coins::%attacker%}
  231.  
  232. on npc right click:
  233. if citizen is named "&eShop":
  234. open chest with 3 rows named "&2Z&aombie &8- &7Shop" to player
  235. wait 1 tick
  236. set slot 0 of player's current inventory to diamond sword of sharpness 5, knockback 3
  237. stop
  238. every second:
  239. loop all players:
  240. if {ingame::%loop-player%} is "True":
  241. wipe loop-player's sidebar
  242. set name of sidebar of loop-player to "&8» &2A&apocalypse &8«"
  243. set score "&7" in sidebar of loop-player to 3
  244. set score "&2Z&aombie &2C&aount&2:" in sidebar of loop-player to 2
  245. if {Zombie.live} is higher than 0:
  246. set score "&7&l%{Zombie.live}%" in sidebar of loop-player to 1
  247. else:
  248. set score "&7&l0" in sidebar of loop-player to 1
  249. set score "&8" in sidebar of loop-player to 0
  250. command /ping:
  251. trigger:
  252. set {_ping} to player's ping
  253. send player title "&2%{_ping}%" for 1 second
  254. stop
  255. on hunger meter change:
  256. cancel event
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. options:
  266. # CONFIG
  267. PermissionActivated: true #Do you want to use a permission? So set it to true or to false if you don't want it
  268. Permission: coloredsignssk.use # Here you can set the permission when this PermissionActivated is set to true
  269.  
  270.  
  271.  
  272. ColorReplacer: "&"
  273.  
  274. on sign change:
  275. if {@PermissionActivated} is true:
  276. if player has permission "{@Permission}":
  277. replace all {@ColorReplacer} with "§" in line 1 of event-block
  278. replace all {@ColorReplacer} with "§" in line 2 of event-block
  279. replace all {@ColorReplacer} with "§" in line 3 of event-block
  280. replace all {@ColorReplacer} with "§" in line 4 of event-block
  281. else:
  282. replace all {@ColorReplacer} with "§" in line 1 of event-block
  283. replace all {@ColorReplacer} with "§" in line 2 of event-block
  284. replace all {@ColorReplacer} with "§" in line 3 of event-block
  285. replace all {@ColorReplacer} with "§" in line 4 of event-block
  286.  
  287. command /setserverspawn:
  288. trigger:
  289. set {spawn} to location of player
  290. command /setserverlobby:
  291. trigger:
  292. set {arena} to location of player
  293.  
  294. on sign change:
  295. player is op
  296. if line 1 of block is "[TopKills]":
  297. add block to {TopKills.signs::*}
  298. set {_skull} to skull of {topkiller}
  299. set the block above the event-block to {_skull}'s skull
  300. set line 1 of block to "&2"
  301. set line 2 of block to "&5%{topkiller}%"
  302. set line 3 of block to "&2Kills: &f%{topkills}%"
  303.  
  304. every second:
  305. loop {TopKills.signs::*}:
  306. set line 2 of loop-value to "&a%{topkiller}%"
  307. set line 3 of loop-value to "&cKills: &f%{topkills}%"
  308. set block above loop-value to {topkiller}'s skull
  309.  
  310. every second:
  311. loop all players:
  312. set {topkills} to {kills::%loop-player%}
  313. set {topkiller} to loop-player
  314.  
  315. on sign change:
  316. player is op
  317. if line 1 of block is "[TopCoins]":
  318. add block to {TopCoins.signs::*}
  319. set {_skull} to skull of {topcoinholder}
  320. set block above block to {topcoinholder}'s skull
  321. set line 1 of block to "&2"
  322. set line 2 of block to "&5%{topcoinholder}%"
  323. set line 3 of block to "&2Coins: &f%{topcoins}%"
  324.  
  325. every second:
  326. loop {TopCoins.signs::*}:
  327. set line 2 of loop-value to "&a%{topcoinholder}%"
  328. set line 3 of loop-value to "&cCoins: &f%{topcoins}%"
  329. set block above loop-value to {topcoinholder}'s skull
  330.  
  331. every second:
  332. loop all players:
  333. set {topcoins} to {coins::%loop-player%}
  334. set {topcoinholder} to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement