Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────#
- # [ Options 選項 ]
- #───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────#
- Options:
- Tag: &6技能 &c&l>>
- #[ 死神圓舞曲 ]
- 死神圓舞曲.CD: 15
- 死神圓舞曲.MP: 200
- 死神圓舞曲.Max: 3
- #───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────#
- # [ Function 函式 ]
- #───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────#
- Function Skill(P:player, S:text, Max:number, CD:number, MP:number) :: boolean:
- set {_Skill} to uncolored {_S}
- if {技能.%{_P}%::%{_Skill}%} <= 0:
- send "{@Tag} &c尚未學習 &f<%{_S}%&f>" to {_P}
- return false
- stop
- if {技能.%{_P}%::%{_Skill}%} > {_Max}:
- send "{@Tag} &c&l注意! 你的技能等級出現錯誤! 請盡速尋求管理員協助!" to {_P}
- return false
- stop
- set {_冷卻} to "%difference between {冷卻.%{_P}%::%{_Skill}%} and now%"
- replace "seconds" and "second" and " " with "" in {_冷卻}
- set {_冷卻} to {_冷卻} parsed as number
- set {_CD} to {_CD} parsed as number
- if {_冷卻} is less than {_CD}:
- set {_冷卻} to "%difference between {_CD} and {_冷卻}%"
- replace "seconds" and "second" and " " with "" in {_冷卻}
- send "{@Tag} &f技能冷卻中 &f<%{_S}%&f> &f還有 &e%{_冷卻}% &f秒" to {_P}
- return false
- stop
- if {玩家魔力值.%{_P}%} is larger or equal to {_MP}:
- remove {_MP} from {玩家魔力值.%{_P}%}
- set {_math} to 0.99 * {玩家魔力值.%{_P}%} / {玩家資料.%{_P}%::魔力值}
- if {_math} is more than or equal to 1:
- set {_math} to 0.99
- set level progress of {_P} to {_math}
- set {_P}'s level to {玩家魔力值.%{_P}%}
- send "{@Tag} &f施放技能 &f<%{_S}%&f> &f消耗了 &9%{_MP}% &f魔力值" to {_P}
- else:
- send "{@Tag} &c魔力不足 無法施放 &f<%{_S}%&f>" to {_P}
- return false
- stop
- return true
- on command:
- player is an op
- command is "test123"
- cancel event
- #───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────#
- # [ Skill 技能 ]
- #───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────#
- on right click:
- {玩家資料.%player%::玩家職業} is "影武者"
- set {_STRATK} to {玩家資料.%player%::力量} * 0.5
- set {_DEXATK} to {玩家資料.%player%::敏捷} * 0.7
- set {_INTATK} to {玩家資料.%player%::智慧} * 0.6
- set {_LUKATK} to {玩家資料.%player%::幸運} * 0.4
- set {_PHYSICDMG} to {玩家資料.%player%::物理攻擊力}
- set {_MAGICDMG} to {玩家資料.%player%::魔法攻擊力}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 0:
- add ({_STRATK} + {_DEXATK} + {_LUKATK}) to {_PHYSICDMG}
- add ({_INTATK} + {_LUKATK}) to {_MAGICDMG}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 1:
- add ({_STRATK} + {_DEXATK} + {_LUKATK})*1.2 to {_PHYSICDMG}
- add ({_INTATK} + {_LUKATK})*1.2 to {_MAGICDMG}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 2:
- add ({_STRATK} + {_DEXATK} + {_LUKATK})*1.4 to {_PHYSICDMG}
- add ({_INTATK} + {_LUKATK})*1.4 to {_MAGICDMG}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 3:
- add ({_STRATK} + {_DEXATK} + {_LUKATK})*1.8 to {_PHYSICDMG}
- add ({_INTATK} + {_LUKATK})*1.8 to {_MAGICDMG}
- set {_check} to {玩家資料.%player%::最大血量}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 0:
- add ({玩家資料.%player%::力量} * 5) to {_check}
- add ({玩家資料.%player%::智慧} * 4) to {_check}
- add ({玩家資料.%player%::敏捷} * 3) to {_check}
- add ({玩家資料.%player%::幸運} * 2) to {_check}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 1:
- add ({玩家資料.%player%::力量} * 5)*1.25 to {_check}
- add ({玩家資料.%player%::智慧} * 4)*1.25 to {_check}
- add ({玩家資料.%player%::敏捷} * 3)*1.25 to {_check}
- add ({玩家資料.%player%::幸運} * 2)*1.25 to {_check}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 2:
- add ({玩家資料.%player%::力量} * 5)*1.5 to {_check}
- add ({玩家資料.%player%::智慧} * 4)*1.5 to {_check}
- add ({玩家資料.%player%::敏捷} * 3)*1.5 to {_check}
- add ({玩家資料.%player%::幸運} * 2)*1.5 to {_check}
- if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 3:
- add ({玩家資料.%player%::力量} * 5)*2 to {_check}
- add ({玩家資料.%player%::智慧} * 4)*2 to {_check}
- add ({玩家資料.%player%::敏捷} * 3)*2 to {_check}
- add ({玩家資料.%player%::幸運} * 2)*2 to {_check}
- #───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────#
- #[ 死神圓舞曲 ]damage_indicator
- if uncolored name of player's tool contains "死神圓舞曲":
- if Skill(player, "&6死神圓舞曲", {@死神圓舞曲.Max}, {@死神圓舞曲.CD}, {@死神圓舞曲.MP}) is true:
- set {冷卻.%player%::死神圓舞曲} to now
- play "ENTITY_ELDER_GUARDIAN_CURSE" to player with volume 1000 and pitch 0
- drawWarpRings style 4, particle "redstone", RGB 237, 21, 93, center player, id "死神圓舞曲%player%", rainbowMode false, scan true, height 4, radius 2, ringCount 5, ringDensity 20, visibleRange 32, pulseDelay 3
- wait 1 tick
- set {_location.1} to location of player
- set {_location.2} to block 6 horizontally in front player
- set {_location.2} to location of {_location.2}
- add 3.5 to y-coordinate of {_location.2}
- set {_x1} to x-coordinate of {_location.1}
- set {_y1} to y-coordinate of {_location.1}
- set {_z1} to z-coordinate of {_location.1}
- set {_x2} to x-coordinate of {_location.2}
- set {_y2} to y-coordinate of {_location.2}
- set {_z2} to z-coordinate of {_location.2}
- set {_x} to "%({_x2}-{_x1})/4%" parsed as number
- set {_y} to "%({_y2}-{_y1})/8%" parsed as number
- set {_z} to "%({_z2}-{_z1})/4%" parsed as number
- set velocity of player to new Vector {_x}, {_y}, {_z}
- wait 3 tick
- stopEffect "死神圓舞曲%player%"
- drawAtom particle1 "crit", particle2 "sweep", center player, XYZ 0, -1, 0, id "死神圓舞曲%player%", rainbowMode false, innerPCount 1, innerRadius 2, outerPCount 12, orbitCount 4, start 0, visibleRange 30, rotation 75
- loop 16 times:
- loop entities in radius 2 of player:
- if loop-entity isn't a player or a dropped item:
- make player damage loop-entity by {_PHYSICDMG}*(4+0.25*{技能.%player%::死神圓舞曲})
- drawDot count 10, particle "smoke", XYZ 0, 1, 0, center player, rainbowMode false, visibleRange 32, pulseDelay 2, keepFor 0.5 seconds
- drawDot count 10, particle "mobspell", XYZ 0, 1, 0, center player, rainbowMode false, visibleRange 32, pulseDelay 2, keepFor 0.5 seconds
- wait 1 tick
- stopEffect "死神圓舞曲%player%"
Advertisement
Add Comment
Please, Sign In to add comment