Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- #====================================================================================================================#
- #[ 魔力打擊 ]
- 魔力打擊.CD: 1
- 魔力打擊.MP: 35
- 魔力打擊.Max: 3
- #====================================================================================================================#
- #[ 自我恢復 ]
- 自我恢復.CD: 10
- 自我恢復.MP: 50
- 自我恢復.Max: 3
- #====================================================================================================================#
- #[ 迅捷之步 ]
- 迅捷之步.CD: 10
- 迅捷之步.MP: 45
- 迅捷之步.Max: 3
- #====================================================================================================================#
- on right click:
- set {_STRATK} to floor({玩家資料.%player%::力量} * 0.5)
- set {_DEXATK} to floor({玩家資料.%player%::敏捷} * 0.5)
- set {_INTATK} to floor({玩家資料.%player%::智慧} * 0.6)
- set {_LUKATK} to floor({玩家資料.%player%::幸運} * 0.7)
- set {_PHYSICDMG} to {玩家資料.%player%::物理攻擊力}
- set {_MAGICDMG} to {玩家資料.%player%::魔法攻擊力}
- add {_STRATK} + {_DEXATK} + {_LUKATK} to {_PHYSICDMG}
- add {_INTATK} to {_MAGICDMG}
- set {_check} to {玩家資料.%player%::最大血量}
- add ({玩家資料.%player%::力量} * 5) to {_check}
- add ({玩家資料.%player%::智慧} * 3) to {_check}
- add ({玩家資料.%player%::敏捷} * 4) to {_check}
- add ({玩家資料.%player%::幸運} * 3) to {_check}
- #====================================================================================================================#
- #[ 魔力打擊 ]
- if uncolored name of player's tool is "魔力打擊":
- if {技能.%player%::魔力打擊} is larger than 0:
- {技能.%player%::魔力打擊} is less than {@魔力打擊.Max}
- else:
- send "&6技能 >> &c您還不會使用&e魔力打擊&c!" to player
- stop
- set {_冷卻} to difference between {冷卻.%player%::魔力打擊} and now
- if {_冷卻} is less than {@魔力打擊.CD} second:
- set {_冷卻} to "%difference between {@魔力打擊.CD} second and {_冷卻}%"
- replace "seconds" and " " with "" in {_冷卻}
- message "&6技能 >> &7技能冷卻中!&e魔力打擊&7的冷卻時間還有&e%{_冷卻}%秒&7!"
- stop
- if {玩家MP.%player%} is larger or equal to {@魔力打擊.CD}:
- remove {@魔力打擊.CD} from {玩家MP.%player%}
- set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
- if {_math} is more than or equal to 1:
- set {_math} to 0.99
- set level progress of the player to {_math}
- set player's level to {玩家MP.%player%}
- send "&6技能 >> &c您施放了技能&6魔力打擊&c!消耗了&6{@魔力打擊.MP}MP&c!" to player
- else:
- send "&6技能 >> &4您的魔力不足!&e魔力打擊&c需要&e{@魔力打擊.MP}MP&c!" to player
- stop
- loop entities in radius 4 of player:
- if loop-entity is targeted a entity:
- if loop-entity isn't a player or a dropped item:
- drawDot count 25, particle "blockdust", material portal, XYZ 0.5, 1, 0.5, center loop-entity, visibleRange 32, pulseDelay 2, keepFor 0.2 seconds
- make player damage loop-entity by (1.75+ (0.25 * {技能.%player%::魔力打擊})) * ({_PHYSICDMG} + {_MAGICDMG})
- play "ENTITY_ENDERDRAGON_HURT" to player with volume 1 and pitch 4
- stop
- send "&6技能 >> &f您的技能&6魔力打擊&f未成功命中目標!請再試一次!"
- set {冷卻.%player%::魔力打擊} to now
- stop
- #====================================================================================================================#
- #[ 自我恢復 ]
- if uncolored name of player's tool is "自我恢復":
- if {技能.%player%::自我恢復} is larger than 0:
- {技能.%player%::自我恢復} is less than {@自我恢復.Max}
- else:
- send "&6技能 >> &c您還不會使用&e自我恢復&c!" to player
- stop
- set {_冷卻} to difference between {冷卻.%player%::自我恢復} and now
- if {_冷卻} is less than {@自我恢復.CD} second:
- set {_冷卻} to "%difference between {@自我恢復.CD} second and {_冷卻}%"
- replace "seconds" and " " with "" in {_冷卻}
- message "&6技能 >> &7技能冷卻中!&e自我恢復&7的冷卻時間還有&e%{_冷卻}%秒&7!"
- stop
- if {玩家MP.%player%} is larger or equal to {@自我恢復.MP}:
- remove {@自我恢復.MP} from {玩家MP.%player%}
- set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
- if {_math} is more than or equal to 1:
- set {_math} to 0.99
- set level progress of the player to {_math}
- set player's level to {玩家MP.%player%}
- send "&6技能 >> &c您施放了技能&6自我恢復&c!消耗了&6{@自我恢復.MP}MP&c!" to player
- else:
- send "&6技能 >> &4您的魔力不足!&e自我恢復&c需要&e{@自我恢復.MP}MP&c!" to player
- stop
- set {冷卻.%player%::自我恢復} to now
- 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
- play "ENTITY_FIREWORK_LAUNCH" to player with volume 1 and pitch 2
- loop 10 times:
- heal player by 5 * 0.5 / (player's max health + {_check}) * player's max health
- wait 20 ticks
- stopeffect id "自我恢復%player%"
- stop
- #====================================================================================================================#
- #[ 迅捷之步 ]
- if uncolored name of player's tool is "迅捷之步":
- if {技能.%player%::迅捷之步} is larger than 0:
- {技能.%player%::迅捷之步} is less than {@迅捷之步.Max}
- else:
- send "&6技能 >> &c您還不會使用&e迅捷之步&c!" to player
- stop
- set {_冷卻} to difference between {冷卻.%player%::迅捷之步} and now
- if {_冷卻} is less than {@迅捷之步.CD} second:
- set {_冷卻} to "%difference between {@迅捷之步.CD} second and {_冷卻}%"
- replace "seconds" and " " with "" in {_冷卻}
- message "&6技能 >> &7技能冷卻中!&e迅捷之步&7的冷卻時間還有&e%{_冷卻}%秒&7!"
- stop
- if {玩家MP.%player%} is larger or equal to {@迅捷之步.MP}:
- remove {@迅捷之步.MP} from {玩家MP.%player%}
- set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
- if {_math} is more than or equal to 1:
- set {_math} to 0.99
- set level progress of the player to {_math}
- set player's level to {玩家MP.%player%}
- send "&6技能 >> &c您施放了技能&6迅捷之步&c!消耗了&6{@迅捷之步.MP}MP&c!" to player
- else:
- send "&6技能 >> &4您的魔力不足!&e迅捷之步&c需要&e{@迅捷之步.MP}MP&c!" to player
- stop
- set {冷卻.%player%::迅捷之步} to now
- drawRings particle "cloud", center player, id "%player%", rainbowMode no, randomRotation no, animated yes, radius 1, ringCount 1, ringDensity 10, visibleRange 32, pulseDelay 1
- play "ENTITY_RABBIT_HURT" to player with volume 1 and pitch 2
- set {技能加速.%player%} to 5
- wait 10 seconds
- delete {技能加速.%player%}
- stopeffect id "%player%"
- stop
- #====================================================================================================================#
- #[ 清除冷卻變數 ]
- on any movement:
- {冷卻.%player%::魔力打擊} is set:
- set {_冷卻} to difference between {冷卻.%player%::魔力打擊} and now
- if {_冷卻} >= {@魔力打擊.CD} second:
- delete {冷卻.%player%::魔力打擊}
- {冷卻.%player%::自我恢復} is set:
- set {_冷卻} to difference between {冷卻.%player%::自我恢復} and now
- if {_冷卻} >= {@自我恢復.CD} second:
- delete {冷卻.%player%::自我恢復}
- {冷卻.%player%::迅捷之步} is set:
- set {_冷卻} to difference between {冷卻.%player%::迅捷之步} and now
- if {_冷卻} >= {@迅捷之步.CD} second:
- delete {冷卻.%player%::迅捷之步}
Advertisement
Add Comment
Please, Sign In to add comment