henry900326

Untitled

Jan 28th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.81 KB | None | 0 0
  1. Options:
  2. #====================================================================================================================#
  3. #[ 魔力打擊 ]
  4. 魔力打擊.CD: 1
  5. 魔力打擊.MP: 35
  6. 魔力打擊.Max: 3
  7.  
  8. #====================================================================================================================#
  9. #[ 自我恢復 ]
  10. 自我恢復.CD: 10
  11. 自我恢復.MP: 50
  12. 自我恢復.Max: 3
  13.  
  14. #====================================================================================================================#
  15. #[ 迅捷之步 ]
  16. 迅捷之步.CD: 10
  17. 迅捷之步.MP: 45
  18. 迅捷之步.Max: 3
  19.  
  20. #====================================================================================================================#
  21. on right click:
  22. set {_STRATK} to floor({玩家資料.%player%::力量} * 0.5)
  23. set {_DEXATK} to floor({玩家資料.%player%::敏捷} * 0.5)
  24. set {_INTATK} to floor({玩家資料.%player%::智慧} * 0.6)
  25. set {_LUKATK} to floor({玩家資料.%player%::幸運} * 0.7)
  26. set {_PHYSICDMG} to {玩家資料.%player%::物理攻擊力}
  27. set {_MAGICDMG} to {玩家資料.%player%::魔法攻擊力}
  28. add {_STRATK} + {_DEXATK} + {_LUKATK} to {_PHYSICDMG}
  29. add {_INTATK} to {_MAGICDMG}
  30. set {_check} to {玩家資料.%player%::最大血量}
  31. add ({玩家資料.%player%::力量} * 5) to {_check}
  32. add ({玩家資料.%player%::智慧} * 3) to {_check}
  33. add ({玩家資料.%player%::敏捷} * 4) to {_check}
  34. add ({玩家資料.%player%::幸運} * 3) to {_check}
  35.  
  36. #====================================================================================================================#
  37. #[ 魔力打擊 ]
  38. if uncolored name of player's tool is "魔力打擊":
  39. if {技能.%player%::魔力打擊} is larger than 0:
  40. {技能.%player%::魔力打擊} is less than {@魔力打擊.Max}
  41. else:
  42. send "&6技能 >> &c您還不會使用&e魔力打擊&c!" to player
  43. stop
  44. set {_冷卻} to difference between {冷卻.%player%::魔力打擊} and now
  45. if {_冷卻} is less than {@魔力打擊.CD} second:
  46. set {_冷卻} to "%difference between {@魔力打擊.CD} second and {_冷卻}%"
  47. replace "seconds" and " " with "" in {_冷卻}
  48. message "&6技能 >> &7技能冷卻中!&e魔力打擊&7的冷卻時間還有&e%{_冷卻}%秒&7!"
  49. stop
  50. if {玩家MP.%player%} is larger or equal to {@魔力打擊.CD}:
  51. remove {@魔力打擊.CD} from {玩家MP.%player%}
  52. set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
  53. if {_math} is more than or equal to 1:
  54. set {_math} to 0.99
  55. set level progress of the player to {_math}
  56. set player's level to {玩家MP.%player%}
  57. send "&6技能 >> &c您施放了技能&6魔力打擊&c!消耗了&6{@魔力打擊.MP}MP&c!" to player
  58. else:
  59. send "&6技能 >> &4您的魔力不足!&e魔力打擊&c需要&e{@魔力打擊.MP}MP&c!" to player
  60. stop
  61. loop entities in radius 4 of player:
  62. if loop-entity is targeted a entity:
  63. if loop-entity isn't a player or a dropped item:
  64. drawDot count 25, particle "blockdust", material portal, XYZ 0.5, 1, 0.5, center loop-entity, visibleRange 32, pulseDelay 2, keepFor 0.2 seconds
  65. make player damage loop-entity by (1.75+ (0.25 * {技能.%player%::魔力打擊})) * ({_PHYSICDMG} + {_MAGICDMG})
  66. play "ENTITY_ENDERDRAGON_HURT" to player with volume 1 and pitch 4
  67. stop
  68. send "&6技能 >> &f您的技能&6魔力打擊&f未成功命中目標!請再試一次!"
  69. set {冷卻.%player%::魔力打擊} to now
  70. stop
  71.  
  72. #====================================================================================================================#
  73. #[ 自我恢復 ]
  74. if uncolored name of player's tool is "自我恢復":
  75. if {技能.%player%::自我恢復} is larger than 0:
  76. {技能.%player%::自我恢復} is less than {@自我恢復.Max}
  77. else:
  78. send "&6技能 >> &c您還不會使用&e自我恢復&c!" to player
  79. stop
  80. set {_冷卻} to difference between {冷卻.%player%::自我恢復} and now
  81. if {_冷卻} is less than {@自我恢復.CD} second:
  82. set {_冷卻} to "%difference between {@自我恢復.CD} second and {_冷卻}%"
  83. replace "seconds" and " " with "" in {_冷卻}
  84. message "&6技能 >> &7技能冷卻中!&e自我恢復&7的冷卻時間還有&e%{_冷卻}%秒&7!"
  85. stop
  86. if {玩家MP.%player%} is larger or equal to {@自我恢復.MP}:
  87. remove {@自我恢復.MP} from {玩家MP.%player%}
  88. set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
  89. if {_math} is more than or equal to 1:
  90. set {_math} to 0.99
  91. set level progress of the player to {_math}
  92. set player's level to {玩家MP.%player%}
  93. send "&6技能 >> &c您施放了技能&6自我恢復&c!消耗了&6{@自我恢復.MP}MP&c!" to player
  94. else:
  95. send "&6技能 >> &4您的魔力不足!&e自我恢復&c需要&e{@自我恢復.MP}MP&c!" to player
  96. stop
  97. set {冷卻.%player%::自我恢復} to now
  98. drawComplexSpiral particle "heart", center player, id "自我恢復%player%", rainbowMode true, clockwise true, scan true, radius 1, density 10, height 10, effectMod 0.8, start 0, visibleRange 30
  99. play "ENTITY_FIREWORK_LAUNCH" to player with volume 1 and pitch 2
  100. loop 10 times:
  101. heal player by 5 * 0.5 / (player's max health + {_check}) * player's max health
  102. wait 20 ticks
  103. stopeffect id "自我恢復%player%"
  104. stop
  105.  
  106.  
  107. #====================================================================================================================#
  108. #[ 迅捷之步 ]
  109. if uncolored name of player's tool is "迅捷之步":
  110. if {技能.%player%::迅捷之步} is larger than 0:
  111. {技能.%player%::迅捷之步} is less than {@迅捷之步.Max}
  112. else:
  113. send "&6技能 >> &c您還不會使用&e迅捷之步&c!" to player
  114. stop
  115. set {_冷卻} to difference between {冷卻.%player%::迅捷之步} and now
  116. if {_冷卻} is less than {@迅捷之步.CD} second:
  117. set {_冷卻} to "%difference between {@迅捷之步.CD} second and {_冷卻}%"
  118. replace "seconds" and " " with "" in {_冷卻}
  119. message "&6技能 >> &7技能冷卻中!&e迅捷之步&7的冷卻時間還有&e%{_冷卻}%秒&7!"
  120. stop
  121. if {玩家MP.%player%} is larger or equal to {@迅捷之步.MP}:
  122. remove {@迅捷之步.MP} from {玩家MP.%player%}
  123. set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
  124. if {_math} is more than or equal to 1:
  125. set {_math} to 0.99
  126. set level progress of the player to {_math}
  127. set player's level to {玩家MP.%player%}
  128. send "&6技能 >> &c您施放了技能&6迅捷之步&c!消耗了&6{@迅捷之步.MP}MP&c!" to player
  129. else:
  130. send "&6技能 >> &4您的魔力不足!&e迅捷之步&c需要&e{@迅捷之步.MP}MP&c!" to player
  131. stop
  132. set {冷卻.%player%::迅捷之步} to now
  133. drawRings particle "cloud", center player, id "%player%", rainbowMode no, randomRotation no, animated yes, radius 1, ringCount 1, ringDensity 10, visibleRange 32, pulseDelay 1
  134. play "ENTITY_RABBIT_HURT" to player with volume 1 and pitch 2
  135. set {技能加速.%player%} to 5
  136. wait 10 seconds
  137. delete {技能加速.%player%}
  138. stopeffect id "%player%"
  139. stop
  140.  
  141. #====================================================================================================================#
  142. #[ 清除冷卻變數 ]
  143. on any movement:
  144. {冷卻.%player%::魔力打擊} is set:
  145. set {_冷卻} to difference between {冷卻.%player%::魔力打擊} and now
  146. if {_冷卻} >= {@魔力打擊.CD} second:
  147. delete {冷卻.%player%::魔力打擊}
  148.  
  149. {冷卻.%player%::自我恢復} is set:
  150. set {_冷卻} to difference between {冷卻.%player%::自我恢復} and now
  151. if {_冷卻} >= {@自我恢復.CD} second:
  152. delete {冷卻.%player%::自我恢復}
  153.  
  154. {冷卻.%player%::迅捷之步} is set:
  155. set {_冷卻} to difference between {冷卻.%player%::迅捷之步} and now
  156. if {_冷卻} >= {@迅捷之步.CD} second:
  157. delete {冷卻.%player%::迅捷之步}
Advertisement
Add Comment
Please, Sign In to add comment