Ilom_uk

Blood Price (SK)

Jun 8th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.05 KB | None | 0 0
  1. #impromptu coding
  2. options:
  3. P: &d[&cBlood Price&d]
  4. C: &c
  5. H: &d
  6.  
  7. command /bloodprice [<text>]:
  8. permission: skript.op
  9. permission message: "{@P}{@C} No, you're not doing that..."
  10. usage: /bloodprice [enable/disable]
  11. trigger:
  12. if arg-1 is not set:
  13. if {bloodp} is true:
  14. send "{@P}{@C} Blood Price is currently {@H}enabled!"
  15. if {bloodp} is not set:
  16. send "{@P}{@C} Blood Price is currently {@H}disabled!"
  17. command "/playsound random.pop %command sender% ~ ~ ~ 1 1 1"
  18. if arg-1 is "enable" or "on":
  19. if {bloodp} is true:
  20. send "{@P}{@C} Blood Price is already {@H}enabled!"
  21. if {bloodp} is not set:
  22. set {bloodp} to true
  23. broadcast "{@P}{@C} Blood Price has been {@H}enabled!"
  24. loop all players:
  25. command "/playsound note.pling %loop-player% ~ ~ ~ 1 2 1"
  26. set {bloodp.timer} to (random integer between 240 and 720)
  27. if arg-1 is "disable" or "off":
  28. if {bloodp} is true:
  29. delete {bloodp}
  30. delete {bloodp.timer}
  31. broadcast "{@P}{@C} Blood Price has been {@H}disabled!"
  32. loop all players:
  33. command "/playsound note.pling %loop-player% ~ ~ ~ 1 2 1"
  34. if {bloodp} is not set:
  35. send "{@P}{@C} Blood Price is already {@H}disabled!"
  36. if arg-1 is "help":
  37. send "{@P}{@H} Commands for Blood Price:"
  38. send "{@P}{@H} /bloodprice [enable/disable]"
  39. send "{@P}{@H} /bloodtimer"
  40. send "{@P}{@H} /bloodcurrent"
  41. send "{@P}{@H} /whatisbloodprice"
  42. command "/playsound random.pop %command sender% ~ ~ ~ 1 1 1"
  43.  
  44. command /whatisbloodprice:
  45. trigger:
  46. send "{@P}{@C} Blood Price is where every 4-12 minutes, the player(s) at the highest health will be damaged for 3 hearts."
  47. send "{@P}{@C} However, this damage can only reduce you to half a heart."
  48. send "{@P}{@C} You can use {@H}/bloodcurrent {@C}to see who will take damage next."
  49. command "/playsound random.pop %command sender% ~ ~ ~ 1 1 1"
  50.  
  51. command /bloodcurrent:
  52. trigger:
  53. if {bloodp} is true:
  54. set {bloodp.currenthealth} to 0
  55. loop all players:
  56. if health of loop-player >= {bloodp.currenthealth}:
  57. set {bloodp.currenthealth} to health of loop-player
  58. loop all players:
  59. if health of loop-player >= {bloodp.currenthealth}:
  60. set {bloodp.current.%loop-player%} to true
  61. {bloodp.current.%loop-player%} is true
  62. send "{@P}{@C} Next player to take damage: {@H}%loop-player%" to command sender
  63. delete {bloodp.current.%loop-player%}
  64. command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  65.  
  66. command /bloodtimer:
  67. permission: skript.op
  68. trigger:
  69. if {bloodp} is true:
  70. send "{@P}{@H} %{bloodp.timer}% seconds {@C}until next damage!"
  71. command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  72.  
  73. every second:
  74. if {bloodp} is true:
  75. remove 1 from {bloodp.timer}
  76. if {bloodp.timer} = 180:
  77. broadcast "{@P}{@C} 3 minutes..."
  78. loop all players:
  79. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  80. if {bloodp.timer} = 120:
  81. broadcast "{@P}{@C} 2 minutes..."
  82. loop all players:
  83. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  84. if {bloodp.timer} = 60:
  85. broadcast "{@P}{@C} 1 minute..."
  86. loop all players:
  87. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  88. if {bloodp.timer} = 30:
  89. broadcast "{@P}{@C} 30 seconds..."
  90. loop all players:
  91. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  92. if {bloodp.timer} = 20:
  93. broadcast "{@P}{@C} 20 seconds..."
  94. loop all players:
  95. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  96. if {bloodp.timer} = 10:
  97. broadcast "{@P}{@C} 10 seconds..."
  98. loop all players:
  99. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  100. if {bloodp.timer} = 5:
  101. broadcast "{@P}{@C} :D"
  102. loop all players:
  103. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  104. if {bloodp.timer} = 4:
  105. broadcast "{@P}{@C} :/"
  106. loop all players:
  107. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  108. if {bloodp.timer} = 3:
  109. broadcast "{@P}{@C} :I"
  110. loop all players:
  111. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  112. if {bloodp.timer} = 2:
  113. broadcast "{@P}{@C} :o"
  114. loop all players:
  115. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  116. if {bloodp.timer} = 1:
  117. broadcast "{@P}{@C} D:"
  118. loop all players:
  119. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  120. if {bloodp.timer} = 0:
  121. set {bloodp.maxhealth} to 0.5
  122. loop all players:
  123. command "/playsound random.explode %loop-player% ~ ~ ~ 1 1 1"
  124. if health of loop-player >= {bloodp.maxhealth}:
  125. set {bloodp.maxhealth} to health of loop-player
  126. if {bloodp.maxhealth} > 3:
  127. loop all players:
  128. health of loop-player = {bloodp.maxhealth}
  129. set {bloodp.max.%loop-player%} to true
  130. {bloodp.max.%loop-player%} is true
  131. damage loop-player by 3 hearts
  132. delete {bloodp.max.%loop-player%}
  133. else if {bloodp.maxhealth} <= 3:
  134. loop all players:
  135. health of loop-player = {bloodp.maxhealth}
  136. set {bloodp.max.%loop-player%} to true
  137. if {bloodp.max.%loop-player%} is true:
  138. poison loop-player for 8 seconds
  139. delete {bloodp.max.%loop-player%}
  140. broadcast "{@P}{@C} Ouch!"
  141. delete {bloodp.maxhealth}
  142. set {bloodp.timer} to (random integer between 240 and 720)
  143.  
  144. command /bloodtrigger:
  145. permission: skript.op
  146. trigger:
  147. set {bloodp.maxhealth} to 0.5
  148. loop all players:
  149. command "/playsound random.explode %loop-player% ~ ~ ~ 1 1 1"
  150. if health of loop-player >= {bloodp.maxhealth}:
  151. set {bloodp.maxhealth} to health of loop-player
  152. if {bloodp.maxhealth} > 3:
  153. loop all players:
  154. health of loop-player = {bloodp.maxhealth}
  155. set {bloodp.max.%loop-player%} to true
  156. {bloodp.max.%loop-player%} is true
  157. damage loop-player by 3 hearts
  158. delete {bloodp.max.%loop-player%}
  159. else if {bloodp.maxhealth} <= 3:
  160. loop all players:
  161. health of loop-player = {bloodp.maxhealth}
  162. set {bloodp.max.%loop-player%} to true
  163. if {bloodp.max.%loop-player%} is true:
  164. poison loop-player for 8 seconds
  165. delete {bloodp.max.%loop-player%}
  166. broadcast "{@P}{@C} Ouch!"
  167. delete {bloodp.maxhealth}
Advertisement
Add Comment
Please, Sign In to add comment