Guest User

CoD Zombies Skript

a guest
Jan 4th, 2015
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.27 KB | None | 0 0
  1. options:
  2.  
  3.  
  4. P: &4[&cZombies&4]&c
  5.  
  6.  
  7.  
  8.  
  9.  
  10. command /zombies <text> [<integer>]:
  11.  
  12.  
  13. permission: skript.op
  14.  
  15.  
  16. trigger:
  17.  
  18.  
  19. if arg 1 is "enable":
  20.  
  21.  
  22. set {zombies.state} to true
  23.  
  24.  
  25. broadcast "{@P} Enabled"
  26.  
  27.  
  28. set {zombies.mysterybox.cooldown} to true
  29.  
  30.  
  31. if arg 1 is "disable":
  32.  
  33.  
  34. set {zombies.state} to false
  35.  
  36.  
  37. broadcast "{@P} Disabled"
  38.  
  39.  
  40. if arg 1 is "reseteffects":
  41.  
  42.  
  43. loop all players:
  44.  
  45.  
  46. remove loop-player from {zombies.perk.juggernog::*}
  47.  
  48.  
  49. remove loop-player from {zombies.perk.doubletap::*}
  50.  
  51.  
  52. remove loop-player from {zombies.perk.staminup::*}
  53.  
  54.  
  55. remove loop-player from {zombies.perk.speedcola::*}
  56.  
  57.  
  58. console command "effect %loop-player% clear"
  59.  
  60.  
  61. if arg 1 is "rotatebox":
  62.  
  63.  
  64. broadcast "{@P} Box Rotated!"
  65.  
  66.  
  67. if {zombies.mysterybox.currentlocation} is 1:
  68.  
  69.  
  70. set block at {zombies.mysterybox.location.1} to air
  71.  
  72.  
  73. wait 1 tick
  74.  
  75.  
  76. set block at {zombies.mysterybox.location.2} to ender chest
  77.  
  78.  
  79. set {zombies.mysterybox.currentlocation} to 2
  80.  
  81.  
  82. exit 2 sections
  83.  
  84.  
  85. if {zombies.mysterybox.currentlocation} is 2:
  86.  
  87.  
  88. set block at {zombies.mysterybox.location.2} to air
  89.  
  90.  
  91. wait 1 tick
  92.  
  93.  
  94. set block at {zombies.mysterybox.location.3} to ender chest
  95.  
  96.  
  97. set {zombies.mysterybox.currentlocation} to 3
  98.  
  99.  
  100. exit 2 sections
  101.  
  102.  
  103. if {zombies.mysterybox.currentlocation} is 3:
  104.  
  105.  
  106. set block at {zombies.mysterybox.location.3} to air
  107.  
  108.  
  109. wait 1 tick
  110.  
  111.  
  112. set block at {zombies.mysterybox.location.4} to ender chest
  113.  
  114.  
  115. set {zombies.mysterybox.currentlocation} to 4
  116.  
  117.  
  118. exit 2 sections
  119.  
  120.  
  121. if {zombies.mysterybox.currentlocation} is 4:
  122.  
  123.  
  124. wait 1 tick
  125.  
  126.  
  127. set block at {zombies.mysterybox.location.4} to air
  128.  
  129.  
  130. set block at {zombies.mysterybox.location.1} to ender chest
  131.  
  132.  
  133. set {zombies.mysterybox.currentlocation} to 1
  134.  
  135.  
  136. exit 2 sections
  137.  
  138.  
  139. if arg 1 is "setboxlocation":
  140.  
  141.  
  142. if arg 2 is set:
  143.  
  144.  
  145. set {zombies.mysterybox.location.%arg 2%} to the player's location
  146.  
  147.  
  148. message "{@P} Set box location %arg 2% to %location of the player%"
  149.  
  150.  
  151. if arg 1 is "resetrotationcycle":
  152.  
  153.  
  154. set {zombies.mysterybox.currentlocation} to 4
  155.  
  156.  
  157. loop 4 times:
  158.  
  159.  
  160. set block at {zombies.mysterybox.location.%loop-number%} to air
  161.  
  162.  
  163. on break of sign:
  164.  
  165.  
  166. player is not op
  167.  
  168.  
  169. {zombies.state} is true
  170.  
  171.  
  172. cancel the event
  173.  
  174.  
  175.  
  176.  
  177.  
  178. on place of sign:
  179.  
  180.  
  181. player is not op
  182.  
  183.  
  184. {zombies.state} is true
  185.  
  186.  
  187. cancel the event
  188.  
  189.  
  190.  
  191.  
  192.  
  193. on consume of milk:
  194.  
  195.  
  196. {zombies.state} is true
  197.  
  198.  
  199. cancel the event
  200.  
  201.  
  202.  
  203.  
  204.  
  205. on damage:
  206.  
  207.  
  208. attacker is not a player:
  209.  
  210.  
  211. damage is caused by fall:
  212.  
  213.  
  214. message " "
  215.  
  216.  
  217. else:
  218.  
  219.  
  220. chance of 50%:
  221.  
  222.  
  223. remove victim from {zombies.perk.juggernog::*}
  224.  
  225.  
  226. remove victim from {zombies.perk.doubletap::*}
  227.  
  228.  
  229. remove victim from {zombies.perk.staminup::*}
  230.  
  231.  
  232. remove victim from {zombies.perk.speedcola::*}
  233.  
  234.  
  235. console command "effect %victim% clear"
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247. on leftclick on sign:
  248.  
  249.  
  250. if {zombies.state} is true:
  251.  
  252.  
  253. if line 1 of the block is "[PerkShop]":
  254.  
  255.  
  256. if line 2 of the block is "Juggernog":
  257.  
  258.  
  259. player doesn't have resistance
  260.  
  261.  
  262. if player has 16 gold ingot:
  263.  
  264.  
  265. message "&bYou purchased JUGGERNOG for 16 gold"
  266.  
  267.  
  268. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  269.  
  270.  
  271. add player to {zombies.perk.juggernog::*}
  272.  
  273.  
  274. apply resistance 1 to the player for 999 days
  275.  
  276.  
  277. remove 16 gold ingot from the player
  278.  
  279.  
  280. if line 2 of the block is "Double_Tap":
  281.  
  282.  
  283. player doesn't have strength
  284.  
  285.  
  286. if player has 20 gold ingot:
  287.  
  288.  
  289. message "&bYou purchased DOUBLE_TAP for 20 gold"
  290.  
  291.  
  292. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  293.  
  294.  
  295. add player to {zombies.perk.doubletap::*}
  296.  
  297.  
  298. apply strength 1 to the player for 999 days
  299.  
  300.  
  301. remove 16 gold ingot from the player
  302.  
  303.  
  304. if line 2 of the block is "Staminup":
  305.  
  306.  
  307. player doesn't have speed
  308.  
  309.  
  310. if player has 8 gold ingot:
  311.  
  312.  
  313. message "&bYou purchased STAMINUP for 8 Gold"
  314.  
  315.  
  316. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  317.  
  318.  
  319. add player to {zombies.perk.staminup::*}
  320.  
  321.  
  322. apply speed 2 to the player for 999 days
  323.  
  324.  
  325. remove 8 gold ingot from the player
  326.  
  327.  
  328. if line 2 of the block is "Speed_Cola":
  329.  
  330.  
  331. player doesn't have haste
  332.  
  333.  
  334. if player has 4 gold ingot:
  335.  
  336.  
  337. message "&bYou purchased SPEED_COLA for 4 gold"
  338.  
  339.  
  340. message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
  341.  
  342.  
  343. add player to {zombies.perk.speedcola::*}
  344.  
  345.  
  346. apply haste 1 to the player for 999 days
  347.  
  348.  
  349. remove 4 gold ingot from the player
  350.  
  351.  
  352. if line 1 of the block is "[PackAPunch]":
  353.  
  354.  
  355. if player has 5 diamonds:
  356.  
  357.  
  358. if the tool of the player is enchanted with sharpness 1:
  359.  
  360.  
  361. enchant the player's tool with sharpness 2
  362.  
  363.  
  364. remove 5 diamonds from the player
  365.  
  366.  
  367. exit 3 sections
  368.  
  369.  
  370. if the tool of the player is enchanted with sharpness 2:
  371.  
  372.  
  373. enchant the player's tool with sharpness 3
  374.  
  375.  
  376. remove 5 diamonds from the player
  377.  
  378.  
  379. exit 3 sections
  380.  
  381.  
  382. if the tool of the player is enchanted with sharpness 3:
  383.  
  384.  
  385. enchant the player's tool with sharpness 4
  386.  
  387.  
  388. remove 5 diamonds from the player
  389.  
  390.  
  391. exit 3 sections
  392.  
  393.  
  394. if the tool of the player is enchanted with power 1:
  395.  
  396.  
  397. enchant the event-player's tool with power 2
  398.  
  399.  
  400. remove 5 diamonds from the player
  401.  
  402.  
  403. exit 3 sections
  404.  
  405.  
  406. if the tool of the player is enchanted with power 2:
  407.  
  408.  
  409. enchant the event-player's tool with power 3
  410.  
  411.  
  412. remove 5 diamonds from the player
  413.  
  414.  
  415. exit 3 sections
  416.  
  417.  
  418. if the tool of the player is enchanted with power 3:
  419.  
  420.  
  421. enchant the event-player's tool with power 4
  422.  
  423.  
  424. remove 5 diamonds from the player
  425.  
  426.  
  427. exit 3 sections
  428.  
  429.  
  430. if the player's tool is enchanted with protection 1:
  431.  
  432.  
  433. enchant the event-player's tool with protection 2
  434.  
  435.  
  436. remove 5 diamonds from the player
  437.  
  438.  
  439. exit 3 sections
  440.  
  441.  
  442. if the player's tool is enchanted with protection 2:
  443.  
  444.  
  445. enchant the event-player's tool with protection 3
  446.  
  447.  
  448. remove 5 diamonds from the player
  449.  
  450.  
  451. exit 3 sections
  452.  
  453.  
  454. if the player's tool is enchanted with protection 3:
  455.  
  456.  
  457. enchant the event-player's tool with protection 4
  458.  
  459.  
  460. remove 5 diamonds from the player
  461.  
  462.  
  463. exit 3 sections
  464.  
  465.  
  466. if the player's tool is enchanted with projectile protection 1:
  467.  
  468.  
  469. enchant the event-player's tool with projectile protection 2
  470.  
  471.  
  472. remove 5 diamonds from the player
  473.  
  474.  
  475. exit 3 sections
  476.  
  477.  
  478. if the player's tool is enchanted with projectile protection 2:
  479.  
  480.  
  481. enchant the event-player's tool with projectile protection 3
  482.  
  483.  
  484. remove 5 diamonds from the player
  485.  
  486.  
  487. exit 3 sections
  488.  
  489.  
  490. if the player's tool is enchanted with projectile protection 3:
  491.  
  492.  
  493. enchant the event-player's tool with projectile protection 4
  494.  
  495.  
  496. remove 5 diamonds from the player
  497.  
  498.  
  499. exit 3 sections
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508. on leftclick on ender chest:
  509.  
  510.  
  511. {zombies.state} is true:
  512.  
  513.  
  514. player has 4 gold ingots:
  515.  
  516.  
  517. if {zombies.mysterybox.cooldown} is true:
  518.  
  519.  
  520. set {zombies.mysterybox.cooldown} to false
  521.  
  522.  
  523. remove 4 gold ingots from the player
  524.  
  525.  
  526. console command "playsound random.anvil_land %event-player%"
  527.  
  528.  
  529. message "&bOpening..."
  530.  
  531.  
  532. wait 0.5 seconds
  533.  
  534.  
  535. console command "playsound random.anvil_land %event-player%"
  536.  
  537.  
  538. chance of 87%:
  539.  
  540.  
  541. message "&bYou got a normal item"
  542.  
  543.  
  544. wait 0.1 seconds
  545.  
  546.  
  547. set {zombies.mysterybox.number} to a random integer between 1 and 34
  548.  
  549.  
  550. if {zombies.mysterybox.number} is 1:
  551.  
  552.  
  553. give 1 dirt to the player
  554.  
  555.  
  556. if {zombies.mysterybox.number} is 2:
  557.  
  558.  
  559. give 1 cobblestone to the player
  560.  
  561.  
  562. if {zombies.mysterybox.number} is 3:
  563.  
  564.  
  565. give 1 golden hoe to the player
  566.  
  567.  
  568. if {zombies.mysterybox.number} is 4:
  569.  
  570.  
  571. give 1 stick to the player
  572.  
  573.  
  574. if {zombies.mysterybox.number} is 5:
  575.  
  576.  
  577. give 1 wooden pickaxe to the player
  578.  
  579.  
  580. if {zombies.mysterybox.number} is 6:
  581.  
  582.  
  583. give 1 clay to the player
  584.  
  585.  
  586. if {zombies.mysterybox.number} is 7:
  587.  
  588.  
  589. give 1 fire to the player
  590.  
  591.  
  592. if {zombies.mysterybox.number} is 8:
  593.  
  594.  
  595. give 1 iron hoe to the player
  596.  
  597.  
  598. if {zombies.mysterybox.number} is 9:
  599.  
  600.  
  601. give 1 grass to the player
  602.  
  603.  
  604. if {zombies.mysterybox.number} is 10:
  605.  
  606.  
  607. give 1 water bucket to the player
  608.  
  609.  
  610. if {zombies.mysterybox.number} is 11:
  611.  
  612.  
  613. give 1 gold nugget to the player
  614.  
  615.  
  616. if {zombies.mysterybox.number} is 12:
  617.  
  618.  
  619. give 1 brick to the player
  620.  
  621.  
  622. if {zombies.mysterybox.number} is 13:
  623.  
  624.  
  625. give 1 leather helmet to the player
  626.  
  627.  
  628. if {zombies.mysterybox.number} is 14:
  629.  
  630.  
  631. give 1 wooden stairs to the player
  632.  
  633.  
  634. if {zombies.mysterybox.number} is 15:
  635.  
  636.  
  637. give 1 stone slab to the player
  638.  
  639.  
  640. if {zombies.mysterybox.number} is 16:
  641.  
  642.  
  643. give 1 nether quartz ore to the player
  644.  
  645.  
  646. if {zombies.mysterybox.number} is 17:
  647.  
  648.  
  649. give 1 wool to the player
  650.  
  651.  
  652. if {zombies.mysterybox.number} is 18:
  653.  
  654.  
  655. give 1 spruce wood to the player
  656.  
  657.  
  658. if {zombies.mysterybox.number} is 19:
  659.  
  660.  
  661. give 1 cactus to the player
  662.  
  663.  
  664. if {zombies.mysterybox.number} is 20:
  665.  
  666.  
  667. give 1 diamond hoe to the player
  668.  
  669.  
  670. if {zombies.mysterybox.number} is 21:
  671.  
  672.  
  673. give 1 golden shovel to the player
  674.  
  675.  
  676. if {zombies.mysterybox.number} is 22:
  677.  
  678.  
  679. give 1 golden hoe to the player
  680.  
  681.  
  682. if {zombies.mysterybox.number} is 23:
  683.  
  684.  
  685. give 1 golden chestplate to the player
  686.  
  687.  
  688. if {zombies.mysterybox.number} is 24:
  689.  
  690.  
  691. give 1 cobblestone wall to the player
  692.  
  693.  
  694. if {zombies.mysterybox.number} is 25:
  695.  
  696.  
  697. give 1 snowball to the player
  698.  
  699.  
  700. if {zombies.mysterybox.number} is 26:
  701.  
  702.  
  703. give 1 flower pot to the player
  704.  
  705.  
  706. if {zombies.mysterybox.number} is 27:
  707.  
  708.  
  709. give 1 lever to the player
  710.  
  711.  
  712. if {zombies.mysterybox.number} is 28:
  713.  
  714.  
  715. give 1 chest to the player
  716.  
  717.  
  718. if {zombies.mysterybox.number} is 29:
  719.  
  720.  
  721. give 1 leather to the player
  722.  
  723.  
  724. if {zombies.mysterybox.number} is 30:
  725.  
  726.  
  727. give 1 sign to the player
  728.  
  729.  
  730. if {zombies.mysterybox.number} is 31:
  731.  
  732.  
  733. give 1 shears to the player
  734.  
  735.  
  736. if {zombies.mysterybox.number} is 32:
  737.  
  738.  
  739. give 1 flower pot to the player
  740.  
  741.  
  742. if {zombies.mysterybox.number} is 33:
  743.  
  744.  
  745. give 1 cobblestone to the player
  746.  
  747.  
  748. if {zombies.mysterybox.number} is 34:
  749.  
  750.  
  751. give 1 golden hoe to the player
  752.  
  753.  
  754. if {zombies.mysterybox.number} is 34:
  755.  
  756.  
  757. give 1 diamond shovel to the player
  758.  
  759.  
  760. wait 0.1 seconds
  761.  
  762.  
  763. set {zombies.mysterybox.cooldown} to true
  764.  
  765.  
  766. else:
  767.  
  768.  
  769. loop 10 times:
  770.  
  771.  
  772. console command "playsound random.successful_hit %event-player%"
  773.  
  774.  
  775. wait 3 ticks
  776.  
  777.  
  778. console command "playsound random.bow %event-player%"
  779.  
  780.  
  781. wait 1 tick
  782.  
  783.  
  784. message "&bYou got a special item!"
  785.  
  786.  
  787. set {zombies.mysterybox.snumber} to a random integer between 0.9 and 16
  788.  
  789.  
  790. if {zombies.mysterybox.snumber} is 1:
  791.  
  792.  
  793. give diamond chestplate of projectile protection 4 to the player
  794.  
  795.  
  796. if {zombies.mysterybox.snumber} is 2:
  797.  
  798.  
  799. give diamond leggings of protection 3 and thorns 2 to the player
  800.  
  801.  
  802. if {zombies.mysterybox.snumber} is 3:
  803.  
  804.  
  805. give bow of power 3 and flame 1 to the player
  806.  
  807.  
  808. if {zombies.mysterybox.snumber} is 4:
  809.  
  810.  
  811. give bow of power 4 and infinity 1 to the player
  812.  
  813.  
  814. if {zombies.mysterybox.snumber} is 5:
  815.  
  816.  
  817. give diamond boots of projectile protection 1 and feather falling 4 to the player
  818.  
  819.  
  820. if {zombies.mysterybox.snumber} is 6:
  821.  
  822.  
  823. give diamond sword of sharpness 4 to the player
  824.  
  825.  
  826. if {zombies.mysterybox.snumber} is 7:
  827.  
  828.  
  829. give diamond sword of sharpness 3 and knockback 2 to the player
  830.  
  831.  
  832. if {zombies.mysterybox.snumber} is 8:
  833.  
  834.  
  835. give diamond helmet of protection 4 to the player
  836.  
  837.  
  838. if {zombies.mysterybox.snumber} is 9:
  839.  
  840.  
  841. give diamond chestplate of protection 4 to the player
  842.  
  843.  
  844. if {zombies.mysterybox.snumber} is 10:
  845.  
  846.  
  847. give bow of power 2 and punch 1 and infinity 1 to the player
  848.  
  849.  
  850. if {zombies.mysterybox.snumber} is 11:
  851.  
  852.  
  853. give diamond leggings of protection 4 to the player
  854.  
  855.  
  856. if {zombies.mysterybox.snumber} is 12:
  857.  
  858.  
  859. give diamond boots of protection 4 to the player
  860.  
  861.  
  862. if {zombies.mysterybox.snuwmber} is 12:
  863.  
  864.  
  865. give diamond boots of protection 4 to the player
  866.  
  867.  
  868. if {zombies.mysterybox.snumber} is 13:
  869.  
  870.  
  871. give diamond sword of sharpness 2 and fire aspect 1 to the player
  872.  
  873.  
  874. if {zombies.mysterybox.snumber} is 14:
  875.  
  876.  
  877. give iron sword of sharpness 4 and knockback 1 to the player
  878.  
  879.  
  880. if {zombies.mysterybox.snumber} is 15:
  881.  
  882.  
  883. give iron pickaxe of unbreaking 3 and fortune 3 to the player
  884.  
  885.  
  886. if {zombies.mysterybox.snumber} is 16:
  887.  
  888.  
  889. give iron helmet of aqua affinity 2 and thorns 3 and protection 2 and unbreaking 2 to the player
  890.  
  891.  
  892. wait 0.1 seconds
  893.  
  894.  
  895. set {zombies.mysterybox.cooldown} to true
  896.  
  897.  
  898. else:
  899.  
  900.  
  901. message "&bThe mysterybox is on its 5 seconds global cooldown!"
  902.  
  903.  
  904. else:
  905.  
  906.  
  907. message "&bYou do not have 4 gold"
  908.  
  909.  
  910.  
  911.  
  912.  
  913. on skript start:
  914.  
  915.  
  916. set {zombies.mysterybox.cooldown} to true
  917.  
  918.  
  919.  
  920.  
  921.  
  922. on rightclick on ender chest:
  923.  
  924.  
  925. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment