Advertisement
Guest User

cod zombies skript

a guest
Nov 21st, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.34 KB | None | 0 0
  1. options:
  2. P: &4[&cZombies&4]&c
  3.  
  4. command /zombies <text> [<integer>]:
  5. trigger:
  6. if arg 1 is "enable":
  7. set {zombies.state} to true
  8. broadcast "{@P} Enabled"
  9. set {zombies.mysterybox.cooldown} to true
  10. if arg 1 is "disable":
  11. set {zombies.state} to false
  12. broadcast "{@P} Disabled"
  13. if arg 1 is "reseteffects":
  14. loop all players:
  15. remove loop-player from {zombies.perk.juggernog::*}
  16. remove loop-player from {zombies.perk.doubletap::*}
  17. remove loop-player from {zombies.perk.staminup::*}
  18. remove loop-player from {zombies.perk.speedcola::*}
  19. console command "effect %loop-player% clear"
  20. if arg 1 is "rotatebox":
  21. message "{@P} Box Rotated!"
  22. if {zombies.mysterybox.currentlocation} is 1:
  23. set block at {zombies.mysterybox.location.1} to air
  24. wait 1 tick
  25. set block at {zombies.mysterybox.location.2} to ender chest
  26. set {zombies.mysterybox.currentlocation} to 2
  27. exit 2 sections
  28. if {zombies.mysterybox.currentlocation} is 2:
  29. set block at {zombies.mysterybox.location.2} to air
  30. wait 1 tick
  31. set block at {zombies.mysterybox.location.3} to ender chest
  32. set {zombies.mysterybox.currentlocation} to 3
  33. exit 2 sections
  34. if {zombies.mysterybox.currentlocation} is 3:
  35. set block at {zombies.mysterybox.location.3} to air
  36. wait 1 tick
  37. set block at {zombies.mysterybox.location.4} to ender chest
  38. set {zombies.mysterybox.currentlocation} to 4
  39. exit 2 sections
  40. if {zombies.mysterybox.currentlocation} is 4:
  41. wait 1 tick
  42. set block at {zombies.mysterybox.location.4} to air
  43. set block at {zombies.mysterybox.location.1} to ender chest
  44. set {zombies.mysterybox.currentlocation} to 1
  45. exit 2 sections
  46. if arg 1 is "setboxlocation":
  47. if arg 2 is set:
  48. set {zombies.mysterybox.location.%arg 2%} to the player's location
  49. message "{@P} Set box location %arg 2% to %location of the player%"
  50. if arg 1 is "resetrotationcycle":
  51. set {zombies.mysterybox.currentlocation} to 4
  52. loop 4 times:
  53. set block at {zombies.mysterybox.location.%loop-number%} to air
  54. on break of sign:
  55. player is not op
  56. {zombies.state} is true
  57. cancel the event
  58.  
  59. on place of sign:
  60. player is not op
  61. {zombies.state} is true
  62. cancel the event
  63.  
  64. on consume of milk:
  65. {zombies.state} is true
  66. cancel the event
  67.  
  68. on damage:
  69. attacker is not a player:
  70. damage is caused by fall:
  71. message " "
  72. else:
  73. chance of 50%:
  74. remove victim from {zombies.perk.juggernog::*}
  75. remove victim from {zombies.perk.doubletap::*}
  76. remove victim from {zombies.perk.staminup::*}
  77. remove victim from {zombies.perk.speedcola::*}
  78. console command "effect %victim% clear"
  79.  
  80.  
  81.  
  82. on leftclick on sign:
  83. if {zombies.state} is true:
  84. if line 1 of the block is "[PerkShop]":
  85. if line 2 of the block is "Juggernog":
  86. player doesn't have resistance
  87. if player has 16 gold ingot:
  88. message "&bYou purchased JUGGERNOG for 16 gold"
  89. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  90. add player to {zombies.perk.juggernog::*}
  91. apply resistance 1 to the player for 999 days
  92. remove 16 gold ingot from the player
  93. if line 2 of the block is "Double_Tap":
  94. player doesn't have strength
  95. if player has 20 gold ingot:
  96. message "&bYou purchased DOUBLE_TAP for 20 gold"
  97. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  98. add player to {zombies.perk.doubletap::*}
  99. apply strength 1 to the player for 999 days
  100. remove 16 gold ingot from the player
  101. if line 2 of the block is "Staminup":
  102. player doesn't have speed
  103. if player has 8 gold ingot:
  104. message "&bYou purchased STAMINUP for 8 Gold"
  105. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  106. add player to {zombies.perk.staminup::*}
  107. apply speed 2 to the player for 999 days
  108. remove 8 gold ingot from the player
  109. if line 2 of the block is "Speed_Cola":
  110. player doesn't have haste
  111. if player has 4 gold ingot:
  112. message "&bYou purchased SPEED_COLA for 4 gold"
  113. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  114. add player to {zombies.perk.speedcola::*}
  115. apply haste 1 to the player for 999 days
  116. remove 4 gold ingot from the player
  117. if line 1 of the block is "[PackAPunch]":
  118. if player has 5 diamonds:
  119. if the tool of the player is enchanted with sharpness 1:
  120. enchant the player's tool with sharpness 2
  121. remove 5 diamonds from the player
  122. exit 3 sections
  123. if the tool of the player is enchanted with sharpness 2:
  124. enchant the player's tool with sharpness 3
  125. remove 5 diamonds from the player
  126. exit 3 sections
  127. if the tool of the player is enchanted with sharpness 3:
  128. enchant the player's tool with sharpness 4
  129. remove 5 diamonds from the player
  130. exit 3 sections
  131. if the tool of the player is enchanted with power 1:
  132. enchant the event-player's tool with power 2
  133. remove 5 diamonds from the player
  134. exit 3 sections
  135. if the tool of the player is enchanted with power 2:
  136. enchant the event-player's tool with power 3
  137. remove 5 diamonds from the player
  138. exit 3 sections
  139. if the tool of the player is enchanted with power 3:
  140. enchant the event-player's tool with power 4
  141. remove 5 diamonds from the player
  142. exit 3 sections
  143. if the player's tool is enchanted with protection 1:
  144. enchant the event-player's tool with protection 2
  145. remove 5 diamonds from the player
  146. exit 3 sections
  147. if the player's tool is enchanted with protection 2:
  148. enchant the event-player's tool with protection 3
  149. remove 5 diamonds from the player
  150. exit 3 sections
  151. if the player's tool is enchanted with protection 3:
  152. enchant the event-player's tool with protection 4
  153. remove 5 diamonds from the player
  154. exit 3 sections
  155. if the player's tool is enchanted with projectile protection 1:
  156. enchant the event-player's tool with projectile protection 2
  157. remove 5 diamonds from the player
  158. exit 3 sections
  159. if the player's tool is enchanted with projectile protection 2:
  160. enchant the event-player's tool with projectile protection 3
  161. remove 5 diamonds from the player
  162. exit 3 sections
  163. if the player's tool is enchanted with projectile protection 3:
  164. enchant the event-player's tool with projectile protection 4
  165. remove 5 diamonds from the player
  166. exit 3 sections
  167.  
  168.  
  169. on leftclick on ender chest:
  170. {zombies.state} is true:
  171. player has 4 gold ingots:
  172. if {zombies.mysterybox.cooldown} is true:
  173. set {zombies.mysterybox.cooldown} to false
  174. remove 4 gold ingots from the player
  175. console command "playsound random.anvil_land %event-player%"
  176. message "&bOpening..."
  177. wait 0.5 seconds
  178. console command "playsound random.anvil_land %event-player%"
  179. chance of 87%:
  180. message "&bYou got a normal item"
  181. wait 0.1 seconds
  182. set {zombies.mysterybox.number} to a random integer between 1 and 34
  183. if {zombies.mysterybox.number} is 1:
  184. give 1 dirt to the player
  185. if {zombies.mysterybox.number} is 2:
  186. give 1 cobblestone to the player
  187. if {zombies.mysterybox.number} is 3:
  188. give 1 golden hoe to the player
  189. if {zombies.mysterybox.number} is 4:
  190. give 1 stick to the player
  191. if {zombies.mysterybox.number} is 5:
  192. give 1 wooden pickaxe to the player
  193. if {zombies.mysterybox.number} is 6:
  194. give 1 clay to the player
  195. if {zombies.mysterybox.number} is 7:
  196. give 1 fire to the player
  197. if {zombies.mysterybox.number} is 8:
  198. give 1 iron hoe to the player
  199. if {zombies.mysterybox.number} is 9:
  200. give 1 grass to the player
  201. if {zombies.mysterybox.number} is 10:
  202. give 1 water bucket to the player
  203. if {zombies.mysterybox.number} is 11:
  204. give 1 gold nugget to the player
  205. if {zombies.mysterybox.number} is 12:
  206. give 1 brick to the player
  207. if {zombies.mysterybox.number} is 13:
  208. give 1 leather helmet to the player
  209. if {zombies.mysterybox.number} is 14:
  210. give 1 wooden stairs to the player
  211. if {zombies.mysterybox.number} is 15:
  212. give 1 stone slab to the player
  213. if {zombies.mysterybox.number} is 16:
  214. give 1 nether quartz ore to the player
  215. if {zombies.mysterybox.number} is 17:
  216. give 1 wool to the player
  217. if {zombies.mysterybox.number} is 18:
  218. give 1 spruce wood to the player
  219. if {zombies.mysterybox.number} is 19:
  220. give 1 cactus to the player
  221. if {zombies.mysterybox.number} is 20:
  222. give 1 diamond hoe to the player
  223. if {zombies.mysterybox.number} is 21:
  224. give 1 golden shovel to the player
  225. if {zombies.mysterybox.number} is 22:
  226. give 1 golden hoe to the player
  227. if {zombies.mysterybox.number} is 23:
  228. give 1 golden chestplate to the player
  229. if {zombies.mysterybox.number} is 24:
  230. give 1 cobblestone wall to the player
  231. if {zombies.mysterybox.number} is 25:
  232. give 1 snowball to the player
  233. if {zombies.mysterybox.number} is 26:
  234. give 1 flower pot to the player
  235. if {zombies.mysterybox.number} is 27:
  236. give 1 lever to the player
  237. if {zombies.mysterybox.number} is 28:
  238. give 1 chest to the player
  239. if {zombies.mysterybox.number} is 29:
  240. give 1 leather to the player
  241. if {zombies.mysterybox.number} is 30:
  242. give 1 sign to the player
  243. if {zombies.mysterybox.number} is 31:
  244. give 1 shears to the player
  245. if {zombies.mysterybox.number} is 32:
  246. give 1 flower pot to the player
  247. if {zombies.mysterybox.number} is 33:
  248. give 1 cobblestone to the player
  249. if {zombies.mysterybox.number} is 34:
  250. give 1 golden hoe to the player
  251. if {zombies.mysterybox.number} is 34:
  252. give 1 diamond shovel to the player
  253. wait 0.1 seconds
  254. set {zombies.mysterybox.cooldown} to true
  255. else:
  256. loop 10 times:
  257. console command "playsound random.successful_hit %event-player%"
  258. wait 3 ticks
  259. console command "playsound random.bow %event-player%"
  260. wait 1 tick
  261. message "&bYou got a special item!"
  262. set {zombies.mysterybox.snumber} to a random integer between 0.9 and 16
  263. if {zombies.mysterybox.snumber} is 1:
  264. give diamond chestplate of projectile protection 4 to the player
  265. if {zombies.mysterybox.snumber} is 2:
  266. give diamond leggings of protection 3 and thorns 2 to the player
  267. if {zombies.mysterybox.snumber} is 3:
  268. give bow of power 3 and flame 1 to the player
  269. if {zombies.mysterybox.snumber} is 4:
  270. give bow of power 4 and infinity 1 to the player
  271. if {zombies.mysterybox.snumber} is 5:
  272. give diamond boots of projectile protection 1 and feather falling 4 to the player
  273. if {zombies.mysterybox.snumber} is 6:
  274. give diamond sword of sharpness 4 to the player
  275. if {zombies.mysterybox.snumber} is 7:
  276. give diamond sword of sharpness 3 and knockback 2 to the player
  277. if {zombies.mysterybox.snumber} is 8:
  278. give diamond helmet of protection 4 to the player
  279. if {zombies.mysterybox.snumber} is 9:
  280. give diamond chestplate of protection 4 to the player
  281. if {zombies.mysterybox.snumber} is 10:
  282. give bow of power 2 and punch 1 and infinity 1 to the player
  283. if {zombies.mysterybox.snumber} is 11:
  284. give diamond leggings of protection 4 to the player
  285. if {zombies.mysterybox.snumber} is 12:
  286. give diamond boots of protection 4 to the player
  287. if {zombies.mysterybox.snuwmber} is 12:
  288. give diamond boots of protection 4 to the player
  289. if {zombies.mysterybox.snumber} is 13:
  290. give diamond sword of sharpness 2 and fire aspect 1 to the player
  291. if {zombies.mysterybox.snumber} is 14:
  292. give iron sword of sharpness 4 and knockback 1 to the player
  293. if {zombies.mysterybox.snumber} is 15:
  294. give iron pickaxe of unbreaking 3 and fortune 3 to the player
  295. if {zombies.mysterybox.snumber} is 16:
  296. give iron helmet of aqua affinity 2 and thorns 3 and protection 2 and unbreaking 2 to the player
  297. wait 0.1 seconds
  298. set {zombies.mysterybox.cooldown} to true
  299. else:
  300. message "&bThe mysterybox is on its 5 seconds global cooldown!"
  301. else:
  302. message "&bYou do not have 4 gold"
  303.  
  304. on skript start:
  305. set {zombies.mysterybox.cooldown} to true
  306.  
  307. on rightclick on ender chest:
  308. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement