Advertisement
Hsuwan

Untitled

Dec 3rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.34 KB | None | 0 0
  1. on right click:
  2. loop {_lore::*}:
  3. if {_lore::%loop-index%} contains "可施展技能" or "能":
  4. set {_技能} to {_lore::%loop-index%}#儲存技能注解
  5. if {_check} is 5:#檢測是不是無關數字
  6. set {_check} to 1#確認可以開技能
  7. if {_lore::%loop-index%} contains "職業限制" or "職業需求":
  8. set {_職業} to {_lore::%loop-index%}#儲存職業注解
  9. set {_check} to 0#因為有職業限制,先檢查職業
  10. exit loop
  11. if {_check} is 0:
  12. if {_職業} is 0:#沒變化就停止.
  13. damage player by 100000
  14. stop
  15. loop {職業::*}:
  16. if "%{_職業}%" contains "%loop-value%":
  17. if {玩家資料.%player%::職業} is "%loop-value%":
  18. set {_check} to 1#允許過職業關
  19. if "%{_技能}%" contains "蓄力擊":
  20. if difference between {冷卻.%player%::蓄力擊} and now is more than or equal to 5 second:
  21. delete {冷卻.%player%::蓄力擊}
  22. if {冷卻.%player%::蓄力擊} is set:
  23. send "&c&l《蓄力擊》&e冷卻中,請稍後再使用"
  24. stop
  25. set {冷卻.%player%::蓄力擊} to now
  26. send "&e你使用了&c&l《蓄力擊》"
  27. set {_particle} to crit
  28. play raw sound "mob.cat.hiss" at player with pitch 2 volume 1
  29. set {_蓄力擊.1} to block above player#玩家自身座標
  30. set {_蓄力擊.2} to block 6 blocks in front player#玩家前方十格座標
  31. set {_x.1} to x-coordinate of {_蓄力擊.1}#玩家自身x座標
  32. set {_x.2} to x-coordinate of {_蓄力擊.2}#玩家前方十格x座標
  33. set {_y.1} to y-coordinate of {_蓄力擊.1}#玩家自身y座標
  34. set {_y.2} to y-coordinate of {_蓄力擊.2}#玩家前方十格y座標
  35. set {_z.1} to z-coordinate of {_蓄力擊.1}#玩家自身z座標
  36. set {_z.2} to z-coordinate of {_蓄力擊.2}#玩家前方十格z座標
  37. set {_x.difference} to ({_x.2} - {_x.1}) / 15#計算玩家自身與玩家前方十格 座標差 除以30次
  38. set {_y.difference} to ({_y.2} - {_y.1}) / 15#計算玩家自身與玩家前方十格 座標差 除以30次
  39. set {_z.difference} to ({_z.2} - {_z.1}) / 15#計算玩家自身與玩家前方十格 座標差 除以30次
  40. loop 15 times:#增加座標差30次
  41. increase x-coordinate of {_蓄力擊.1} by {_x.difference}#增加座標x差 1次
  42. increase y-coordinate of {_蓄力擊.1} by {_y.difference}#增加座標y差 1次
  43. increase z-coordinate of {_蓄力擊.1} by {_z.difference}#增加座標z差 1次
  44. spawn 3 of particle {_particle} offset by 0.1, 0.1, -0.1 at location of {_蓄力擊.1}#特效
  45. loop entities in radius 3 around block at location of {_蓄力擊.1}:#給予範圍傷
  46. make player damage loop-entity by 20
  47. wait 0.1 ticks#給予時間差讓特效有慢慢跑的效果
  48. stop
  49. if "%{_技能}%" contains "龍祖傳授":
  50. if {玩家資料.%player%::等級} is more than or equal to 170:
  51. if difference between {冷卻.%player%::龍祖傳授} and now is more than or equal to 30 second:
  52. delete {冷卻.%player%::龍祖傳授}
  53. if {冷卻.%player%::龍祖傳授} is set:
  54. send "&c&l《龍祖傳授》&e冷卻中,請稍後再使用"
  55. stop
  56. send "&e你使用了&c&l《龍祖傳授》"
  57. set {冷卻.%player%::龍祖傳授} to now
  58. set {冷卻.%player%::龍祖傳授團體效果} to now
  59. play raw sound "mob.enderdragon.growl" at player with pitch 3 volume 2
  60. play raw sound "mob.enderdragon.hit" at player with pitch 2 volume 2
  61. play raw sound "mob.enderdragon.wings" at player with pitch 2 volume 2
  62. spawn 60 of particle portal offset by 4, 0.5, -4 at location of player
  63. spawn 60 of particle red dust offset by 1, 4, -1 at location of player
  64. spawn 60 of particle smoke offset by 4, 4, -4 at location of player
  65. loop entities in radius 6 of player:
  66. if loop-entity is a player:
  67. spawn 50 of particle happy villager offset by 0, 2, 0 at player
  68. send "&e你已被 %player% 的&6&l《超技能-龍祖傳授》&e提升 &6100%% &e最大HP了" to loop-entity
  69. set {冷卻.%loop-entity%::龍祖傳授團體效果} to now
  70. stop
  71. if "%{_技能}%" contains "魔魂枷鎖":
  72. if {玩家資料.%player%::等級} is more than or equal to 170:
  73. if difference between {冷卻.%player%::魔魂枷鎖} and now is more than or equal to 16 second:
  74. delete {冷卻.%player%::魔魂枷鎖}
  75. if {冷卻.%player%::魔魂枷鎖} is set:
  76. send "&c&l《魔魂枷鎖》&e冷卻中,請稍後再使用"
  77. stop
  78. set {冷卻.%player%::魔魂枷鎖} to now
  79. wait 1 ticks
  80. loop 3 times:
  81. loop entities in radius 8 of player:
  82. set {_particle} to witch magic
  83. if loop-entity isn't a player or a dropped item:
  84. set {_魔魂枷鎖.1} to block above player#玩家自身座標
  85. set {_魔魂枷鎖.2} to block above loop-entity#玩家前方十格座標
  86. set {_x.1} to x-coordinate of {_魔魂枷鎖.1}#玩家自身x座標
  87. set {_x.2} to x-coordinate of {_魔魂枷鎖.2}#玩家前方十格x座標
  88. set {_y.1} to y-coordinate of {_魔魂枷鎖.1}#玩家自身y座標
  89. set {_y.2} to y-coordinate of {_魔魂枷鎖.2}#玩家前方十格y座標
  90. set {_z.1} to z-coordinate of {_魔魂枷鎖.1}#玩家自身z座標
  91. set {_z.2} to z-coordinate of {_魔魂枷鎖.2}
  92. set {_x.difference} to ({_x.2} - {_x.1}) / 4#計算玩家自身與玩家前方十格 座標差 除以30次
  93. set {_y.difference} to ({_y.2} - {_y.1}) / 4#計算玩家自身與玩家前方十格 座標差 除以30次
  94. set {_z.difference} to ({_z.2} - {_z.1}) / 4
  95. play raw sound "mob.ghast.scream" at player with pitch 0 volume 1
  96. loop 4 times:#增加座標差30次
  97. increase x-coordinate of {_魔魂枷鎖.1} by {_x.difference}#增加座標x差 1次
  98. increase y-coordinate of {_魔魂枷鎖.1} by {_y.difference}#增加座標y差 1次
  99. increase z-coordinate of {_魔魂枷鎖.1} by {_z.difference}#增加座標z差 1次
  100. spawn 3 of particle {_particle} offset by 0.1, 0.1, -0.1 at location of {_魔魂枷鎖.1}#特效
  101. play raw sound "mob.zombie.remedy" at player with pitch 1 volume 0.5
  102. if loop-entity isn't a player or a dropped item:
  103. make player damage loop-entity by ({玩家資料.%player%::力量} * 17 + {飾品狀態.%player%::力量}) * 4 + ({飾品狀態.%player%::智慧} + {玩家資料.%player%::智慧} * 17) * 3
  104. thrust loop-entity backwards with force 1
  105. wait 20 ticks
  106. stop
  107. if "%{_技能}%" contains "鬥王領域":
  108. if {玩家資料.%player%::等級} is more than or equal to 170:
  109. if difference between {冷卻.%player%::鬥王領域} and now is more than or equal to 15 second:
  110. delete {冷卻.%player%::鬥王領域}
  111. if {冷卻.%player%::鬥王領域} is set:
  112. send "&c&l《鬥王領域》&e冷卻中,請稍後再使用"
  113. stop
  114. set {冷卻.%player%::鬥王領域} to now
  115. send "&e你使用了&c&l《鬥王領域》"
  116. play raw sound "mob.zombiepig.zpighurt" at player with pitch 1 volume 2
  117. spawn 100 of particle mob spell offset by 2, 2, -2 at location of player
  118. thrust player upwards with force 1.5
  119. wait 10 ticks
  120. thrust player downwards with force 1.5
  121. wait 5 ticks
  122. loop entities in radius 6 of player:
  123. if loop-entity isn't a player or a dropped item:
  124. make player damage loop-entity by ({玩家資料.%player%::力量} * 17 + {飾品狀態.%player%::力量}) * 8
  125. spawn 40 of particle angry villager offset by 0.3, 1, -0.3 at location of loop-entit
  126. wait 12 ticks
  127. loop entities in radius 6 of player:
  128. if loop-entity isn't a player or a dropped item:
  129. make player damage loop-entity by ({玩家資料.%player%::敏捷} * 17 + {飾品狀態.%player%::敏捷}) * 4
  130. spawn 40 of particle angry villager offset by 0.3, 1, -0.3 at location of loop-entity
  131. thrust loop-entity backwards with force 2
  132. stop
  133. if "%{_技能}%" contains "鉉光引力":
  134. if {玩家資料.%player%::等級} is more than or equal to 170:
  135. if difference between {冷卻.%player%::鉉光引力} and now is more than or equal to 30 second:
  136. delete {冷卻.%player%::鉉光引力}
  137. if {冷卻.%player%::鉉光引力} is set:
  138. send "&c&l《鉉光引力》&e冷卻中,請稍後再使用"
  139. stop
  140. set {冷卻.%player%::鉉光引力} to now
  141. send "&e你使用了&c&l《鉉光引力》"
  142. play raw sound "mob.endermen.portal" at player with pitch 2 volume 2
  143. spawn 60 of particle fireworks spark offset by 3, 4, -3 at location of player
  144. loop 30 times:
  145. spawn 100 of particle instant spell offset by 5, 4, -5 at location of player
  146. loop entities in radius 9 of player:
  147. if loop-entity isn't a player or a dropped item:
  148. make player damage loop-entity by ({玩家資料.%player%::智慧} * 17 + {飾品狀態.%player%::智慧}) * 2.5 + ({玩家資料.%player%::力量} * 12 + {飾品狀態.%player%::力量}) * 2.5
  149. thrust loop-entity forwards with force 1
  150. thrust loop-entity downwards with force 0.5
  151. wait 20 ticks
  152. stop
  153. if "%{_技能}%" contains "翱翔":
  154. if {玩家資料.%player%::等級} is more than or equal to 170:
  155. if difference between {冷卻.%player%::翱翔} and now is more than or equal to 3 second:
  156. delete {冷卻.%player%::翱翔}
  157. if {冷卻.%player%::翱翔} is set:
  158. send "&c&l《翱翔》&e冷卻中,請稍後再使用"
  159. stop
  160. set {冷卻.%player%::翱翔} to now
  161. send "&e你使用了&c&l《翱翔》"
  162. play raw sound "mob.bat.takeoff" at player with pitch 1 volume 2
  163. spawn 100 of particle snowball poof offset by 5, 4, -5 at location of player
  164. thrust player forwards with force 1.5
  165. thrust player upwards with force 0.5
  166. loop entities in radius 6 of player:
  167. if loop-entity isn't a player or a dropped item:
  168. make player damage loop-entity by ({玩家資料.%player%::敏捷} * 17 + {飾品狀態.%player%::敏捷}) * 2.25 + {飾品狀態.%player%::力量} * 1.4 + {玩家資料.%player%::力量} * 0.9 * 15
  169. spawn 40 of particle cloud offset by 0.3, 1, -0.3 at location of player
  170. thrust loop-entity backwards with force 0.5
  171. wait 10 ticks
  172. loop 2 times:
  173. thrust player forwards with force 1.2
  174. thrust player upwards with force 0.35
  175. loop entities in radius 5 of player:
  176. if loop-entity isn't a player or a dropped item:
  177. make player damage loop-entity by ({玩家資料.%player%::敏捷} * 17 + {飾品狀態.%player%::敏捷}) * 1.5 + {飾品狀態.%player%::智慧} * 1.15 + {玩家資料.%player%::智慧} * 0.65 * 12
  178. spawn 40 of particle cloud offset by 0.3, 1, -0.3 at location of player
  179. thrust loop-entity backwards with force 0.5
  180. wait 10 ticks
  181. stop
  182. on damage:
  183. if {冷卻.%attacker%::龍祖傳授} is set:
  184. if difference between {冷卻.%attacker%::龍祖傳授} and now is more than or equal to 60 seconds:
  185. delete {冷卻.%attacker%::龍祖傳授}
  186. increase damage by ({玩家資料.%attacker%::智慧} * 12 + {飾品狀態.%attacker%::智慧} + {玩家資料.%attacker%::力量} * 12 + {飾品狀態.%attacker%::力量} + {玩家資料.%attacker%::敏捷} * 12 + {飾品狀態.%attacker%::敏捷}) * 0.05
  187. if attacker isn't a player:
  188. stop
  189. if damage is more than or equal to 0.1:
  190. play raw sound "mob.enderdragon.wings" at victim with pitch 0 volume 1
  191. if {冷卻.%victim%::龍祖傳授團體效果} is set:
  192. if difference between {冷卻.%victim%::龍祖傳授團體效果} and now is more than or equal to 60 seconds:
  193. delete {冷卻.%victim%::龍祖傳授團體效果}
  194. set {_龍祖減傷} to damage*0.5
  195. increase damage by -1 * {_龍祖減傷}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement