Advertisement
sirayasiki

exp2

May 11th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 0 0
  1. on respawn:
  2. set the maximum health of the player to 10 + {hp::%player%} * 0.5
  3. on damage:
  4. victim is player:
  5. damage is caused by attack:
  6. set damage to damage - {vit::%victim%} * 0.5 - attacker's armor value
  7.  
  8.  
  9.  
  10. command /exp [<numbers>]:
  11. permission: op
  12. trigger:
  13. add arg 1 to {exp::%player%}
  14. command /exp1:
  15. permission: op
  16. trigger:
  17. send "%{exp::%player%}%" to player
  18. send "%{lv::%player%}%" to player
  19. command /reset <player>:
  20. permission: op
  21. trigger:
  22. set {exp::%player%} to 0
  23. set {exp1::%player%} to 0
  24. set {lv::%player%} to 0
  25. set {sp::%player%} to 0
  26. set {sp1::%player%} to 0
  27. set {hp::%player%} to 0
  28. set {str::%player%} to 0
  29. set {vit::%player%} to 0
  30. command /resetjob <player>:
  31. permission: op
  32. trigger:
  33. set {job1::%player%} to 0
  34.  
  35. every second in "world":
  36. loop all players:
  37. if {exp::%loop-player%} <= 26019:
  38. set {exp1::%loop-player%} to {lv::%loop-player%} ^ 3 * 6 * 0.5 + {lv::%loop-player%}
  39. add 1 to {lv::%loop-player%} if {exp::%loop-player%} > {exp1::%loop-player%}
  40. if {exp::%loop-player%} >= 26020:
  41. set {exp1::%loop-player%} to 26020
  42. set {exp::%loop-player%} to 26020
  43. set {lv::%loop-player%} to 20
  44. on damage:
  45. if victim's health / victim's max health * 100 >= 100:
  46. set action bar of attacker to "&f&l(&a&l||||||||||||||||||||&f&l)"
  47. if victim's health / victim's max health * 100 >= 95:
  48. if victim's health / victim's max health * 100 < 100:
  49. set action bar of attacker to "&f&l(&a&l||||||||||||||||||||&f&l)"
  50. if victim's health / victim's max health * 100 >= 90:
  51. if victim's health / victim's max health * 100 < 95:
  52. set action bar of attacker to "&f&l(&a&l|||||||||||||||||||&c&l|&f&l)"
  53. if victim's health / victim's max health * 100 >= 85:
  54. if victim's health / victim's max health * 100 < 90:
  55. set action bar of attacker to "&f&l(&a&l||||||||||||||||||&c&l||&f&l)"
  56. if victim's health / victim's max health * 100 >= 80:
  57. if victim's health / victim's max health * 100 < 85:
  58. set action bar of attacker to "&f&l(&a&l|||||||||||||||||&c&l|||&f&l)"
  59. if victim's health / victim's max health * 100 >= 80:
  60. if victim's health / victim's max health * 100 < 85:
  61. set action bar of attacker to "&f&l(&a&l||||||||||||||||&c&l||||&f&l)"
  62. if victim's health / victim's max health * 100 >= 75:
  63. if victim's health / victim's max health * 100 < 80:
  64. set action bar of attacker to "&f&l(&a&l|||||||||||||||&c&l|||||&f&l)"
  65. if victim's health / victim's max health * 100 >= 70:
  66. if victim's health / victim's max health * 100 < 75:
  67. set action bar of attacker to "&f&l(&a&l||||||||||||||&c&l||||||&f&l)"
  68. if victim's health / victim's max health * 100 >= 70:
  69. if victim's health / victim's max health * 100 < 75:
  70. set action bar of attacker to "&f&l(&a&l|||||||||||||&c&l|||||||&f&l)"
  71. if victim's health / victim's max health * 100 >= 65:
  72. if victim's health / victim's max health * 100 < 70:
  73. set action bar of attacker to "&f&l(&a&l||||||||||||&c&l||||||||&f&l)"
  74. if victim's health / victim's max health * 100 >= 60:
  75. if victim's health / victim's max health * 100 < 65:
  76. set action bar of attacker to "&f&l(&a&l|||||||||||&c&l|||||||||&f&l)"
  77. if victim's health / victim's max health * 100 >= 55:
  78. if victim's health / victim's max health * 100 < 60:
  79. set action bar of attacker to "&f&l(&a&l||||||||||&c&l||||||||||&f&l)"
  80. if victim's health / victim's max health * 100 >= 50:
  81. if victim's health / victim's max health * 100 < 55:
  82. set action bar of attacker to "&f&l(&a&l|||||||||&c&l|||||||||||&f&l)"
  83. if victim's health / victim's max health * 100 >= 45:
  84. if victim's health / victim's max health * 100 < 50:
  85. set action bar of attacker to "&f&l(&a&l||||||||&c&l||||||||||||&f&l)"
  86. if victim's health / victim's max health * 100 >= 40:
  87. if victim's health / victim's max health * 100 < 45:
  88. set action bar of attacker to "&f&l(&a&l|||||||&c&l|||||||||||||&f&l)"
  89. if victim's health / victim's max health * 100 >= 35:
  90. if victim's health / victim's max health * 100 < 40:
  91. set action bar of attacker to "&f&l(&a&l||||||&c&l||||||||||||||&f&l)"
  92. if victim's health / victim's max health * 100 >= 30:
  93. if victim's health / victim's max health * 100 < 35:
  94. set action bar of attacker to "&f&l(&a&l|||||&c&l|||||||||||||||&f&l)"
  95. if victim's health / victim's max health * 100 >= 25:
  96. if victim's health / victim's max health * 100 < 30:
  97. set action bar of attacker to "&f&l(&a&l||||&c&l||||||||||||||||&f&l)"
  98. if victim's health / victim's max health * 100 >= 20:
  99. if victim's health / victim's max health * 100 < 25:
  100. set action bar of attacker to "&f&l(&a&l|||&c&l|||||||||||||||||&f&l)"
  101. if victim's health / victim's max health * 100 >= 15:
  102. if victim's health / victim's max health * 100 < 20:
  103. set action bar of attacker to "&f&l(&a&l||&c&l||||||||||||||||||&f&l)"
  104. if victim's health / victim's max health * 100 >= 10:
  105. if victim's health / victim's max health * 100 < 15:
  106. set action bar of attacker to "&f&l(&a&l|&c&l|||||||||||||||||||&f&l)"
  107. if victim's health / victim's max health * 100 >= 5:
  108. if victim's health / victim's max health * 100 < 10:
  109. set action bar of attacker to "&f&l(&c&l||||||||||||||||||||&f&l)"
  110. on death:
  111. set action bar of attacker to "&f&l(&c&l||||||||||||||||||||&f&l)"
  112.  
  113.  
  114. command /str:
  115. trigger:
  116. if {sp::%player%} >= 1:
  117. add 1 to {str::%player%}
  118. remove 1 from {sp::%player%}
  119. send "&a&lSTRのステータスを上昇しました!" to player
  120. if {sp::%player%} = 0:
  121. send "&c&lSPが足りません!" to player
  122. command /vit:
  123. trigger:
  124. if {sp::%player%} >= 1:
  125. add 1 to {vit::%player%}
  126. remove 1 from {sp::%player%}
  127. send "&a&lVITのステータスを上昇しました!" to player
  128. if {sp::%player%} = 0:
  129. send "&c&lSPが足りません!" to player
  130. command /hp:
  131. trigger:
  132. if {sp::%player%} >= 1:
  133. add 1 to {hp::%player%}
  134. remove 1 from {sp::%player%}
  135. send "&a&lHPのステータスを上昇しました!" to player
  136. set the maximum health of the player to 10 + {hp::%player%} * 0.5
  137. if {sp::%player%} = 0:
  138. send "&c&lSPが足りません!" to player
  139.  
  140. command /status:
  141. trigger:
  142. send "&d&lHP:%{hp::%player%}%" to player
  143. send "&c&lSTR:%{str::%player%}%" to player
  144. send "&b&lVIT:%{vit::%player%}%" to player
  145.  
  146. on join:
  147. add 0 to {hp::%player%}
  148. add 0 to {vit::%player%}
  149. add 0 to {str::%player%}
  150. add 0 to {reido::%player%}
  151.  
  152. every second in "world":
  153. add 1 to {nannid}
  154. if {nannid} = 990:
  155. broadcast "&cあと10秒でピースフルになります!"
  156. if {nannid} = 995:
  157. broadcast "&cあと5秒でピースフルになります!"
  158. if {nannid} = 996:
  159. broadcast "&cあと4秒でピースフルになります!"
  160. if {nannid} = 997:
  161. broadcast "&cあと3秒でピースフルになります!"
  162. if {nannid} = 998:
  163. broadcast "&cあと2秒でピースフルになります!"
  164. if {nannid} = 999:
  165. broadcast "&cあと1秒でピースフルになります!"
  166. if {nannid} = 1000:
  167. set the difficulty of "world" to peaceful
  168. broadcast "&aモンスターの増えすぎを抑制するために一時的にピースフルになりました!この処理は1000秒ごとに行われます!"
  169. command "/setblock 2000 6 1064 wooden_button 5"
  170. if {nannid} = 1001:
  171. set the difficulty of "world" to normal
  172. set {nannid} to 1
  173.  
  174.  
  175. command /psps :
  176. permission: op
  177. trigger:
  178. send "現在進行時間%{nannid}%" to player
  179. command /job:
  180. permission: op
  181. trigger:
  182. send "%{job::%player%}%" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement