Advertisement
Guest User

DamageCycle Skript v2

a guest
Dec 27th, 2014
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. # Damage Cycle Skript v2!
  2. # Ask 6dayna6 any questions or concerns you may have. This is fairly easy to customize, just go to the prefix options to change it.
  3.  
  4. options:
  5. prefix: &4&l[&6&lDamageCycle&4&l]
  6.  
  7. variables:
  8. {damage}=false
  9. {cycle}=0
  10.  
  11. command /damagecycle <text>:
  12. usage: /dc help
  13. permission: skript.op
  14. aliases: /dc
  15. trigger:
  16. if arg 1 is not set:
  17. send "{@prefix} &e&lList of DamageCycle commands"
  18. send "&e/dc start &8- &7Starts the Cycle"
  19. send "&e/dc end &8- &7Ends the Cycle"
  20. send "&e/dc current &8- &7Tells you what the current cycle is on"
  21. send "&e/dc reset &8- &7Resets the current cycle"
  22. send "&e/dc help &8- &7Displays the list of DC commands"
  23. if arg 1 is equal to "start":
  24. if {damage} is true:
  25. send "{@prefix} &cAlready enabled"
  26. else if {damage} is false:
  27. set {damage} to true
  28. broadcast "{@prefix} &cEnabled by &c&l%command sender%"
  29. set {cycle} to a random integer between 1 and 10
  30. if arg 1 is equal to "end":
  31. if {damage} is false:
  32. send "{@prefix} &cAlready disabled"
  33. else if {damage} is true:
  34. set {damage} to false
  35. broadcast "{@prefix} &cDisabled by &c&l%command sender%"
  36. set {cycle} to 0
  37. if arg 1 is equal to "help":
  38. send "{@prefix} &e&lList of DamageCycle commands"
  39. send "&e/dc start &8- &7Starts the Cycle"
  40. send "&e/dc end &8- &7Ends the Cycle"
  41. send "&e/dc current &8- &7Tells you what the current cycle is on"
  42. send "&e/dc reset &8- &7Resets the current cycle"
  43. send "&e/dc help &8- &7Displays the list of DC commands"
  44. if arg 1 is equal to "current":
  45. if {cycle} is 0:
  46. send "{@prefix} &cThe cycle is not running"
  47. if {cycle} is 1:
  48. send "{@prefix} &cCurrent damage is &6&lFall damage"
  49. if {cycle} is 2:
  50. send "{@prefix} &cCurrent damage is &6&lZombies & Zombie Pigmen"
  51. if {cycle} is 3:
  52. send "{@prefix} &cCurrent damage is &6&lEffects"
  53. if {cycle} is 4:
  54. send "{@prefix} &cCurrent damage is &6&lSuffocation & Drowning"
  55. if {cycle} is 5:
  56. send "{@prefix} &cCurrent damage is &6&lExplosions"
  57. if {cycle} is 6:
  58. send "{@prefix} &cCurrent damage is &6&lFire"
  59. if {cycle} is 7:
  60. send "{@prefix} &cCurrent damage is &6&lSpiders & Cave Spiders"
  61. if {cycle} is 8:
  62. send "{@prefix} &cCurrent damage is &6&lEndermen"
  63. if {cycle} is 9:
  64. send "{@prefix} &cCurrent damage is &6&lSkeletons"
  65. if {cycle} is 10:
  66. send "{@prefix} &cCurrent damage is &6&lSilverfish"
  67. if arg 1 is equal to "reset":
  68. set {cycle} to 0
  69. send "{@prefix} &cCycle was reset"
  70.  
  71. every 5 minutes:
  72. if {damage} is true:
  73. set {cycle} to a random integer between 1 and 10
  74. if {cycle} is 1:
  75. broadcast "{@prefix} &cThe cycle has swapped"
  76. broadcast "{@prefix} &cAll damage from &6&lFALLING &cwill instantly kill you!"
  77. if {cycle} is 2:
  78. broadcast "{@prefix} &cThe cycle has swapped"
  79. broadcast "{@prefix} &cAll damage from &6&lZOMBIES AND PIGMEN &cwill instantly kill you!"
  80. if {cycle} is 3:
  81. broadcast "{@prefix} &cThe cycle has swapped"
  82. broadcast "{@prefix} &cAll damage from &6&lDAMAGING EFFECTS &cwill instantly kill you!"
  83. if {cycle} is 4:
  84. broadcast "{@prefix} &cThe cycle has swapped"
  85. broadcast "{@prefix} &cAll damage from &6&lSUFFOCATION AND DROWNING &cwill instantly kill you!"
  86. if {cycle} is 5:
  87. broadcast "{@prefix} &cThe cycle has swapped"
  88. broadcast "{@prefix} &cAll damage from &6&lEXPLOSIONS &cwill instantly kill you!"
  89. if {cycle} is 6:
  90. broadcast "{@prefix} &cThe cycle has swapped"
  91. broadcast "{@prefix} &cAll damage from &6&lFIRE &cwill instantly kill you!"
  92. if {cycle} is 7:
  93. broadcast "{@prefix} &cThe cycle has swapped"
  94. broadcast "{@prefix} &cAll damage from &6&lSPIDERS AND CAVE SPIDERS &cwill instantly kill you!"
  95. if {cycle} is 8:
  96. broadcast "{@prefix} &cThe cycle has swapped"
  97. broadcast "{@prefix} &cAll damage from &6&lENDERMEN &cwill instantly kill you!"
  98. if {cycle} is 9:
  99. broadcast "{@prefix} &cThe cycle has swapped"
  100. broadcast "{@prefix} &cAll damage from &6&lSKELETONS &cwill instantly kill you!"
  101. if {cycle} is 10:
  102. broadcast "{@prefix} &cThe cycle has swapped"
  103. broadcast "{@prefix} &cAll damage from &6&lSILVERFISH &cwill instantly kill you!"
  104.  
  105. on damage of a player:
  106. if {damage} is true:
  107. if {cycle} is 1:
  108. damage is caused by fall
  109. damage victim by 200 hearts
  110. if {cycle} is 2:
  111. attacker is a zombie or zombie pigman
  112. damage victim by 200 hearts
  113. if {cycle} is 3:
  114. if damage is caused by potion:
  115. damage victim by 200 hearts
  116. if damage is caused by poison:
  117. damage victim by 200 hearts
  118. if {cycle} is 4:
  119. if damage is caused by suffocation or drowning:
  120. damage victim by 200 hearts
  121. if {cycle} is 5:
  122. if attacker is a creeper or ghast:
  123. damage victim by 200 hearts
  124. if damage is caused by block explosion or entity explosion:
  125. damage victim by 200 hearts
  126. if {cycle} is 6:
  127. damage is caused by fire
  128. damage victim by 200 hearts
  129. if {cycle} is 7:
  130. attacker is a spider or cave spider
  131. damage victim by 200 hearts
  132. if {cycle} is 8:
  133. attacker is a enderman
  134. damage victim by 200 hearts
  135. if {cycle} is 9:
  136. attacker is a skeleton
  137. damage victim by 200 hearts
  138. if {cycle} is 10:
  139. attacker is a silverfish
  140. damage victim by 200 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement