Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- 玩家等級限制: 100
- on command:
- command is "boomlvl"
- cancel event
- set {_name} to "%player%"
- kick player due to "Disconneted."
- wait 20 ticks
- delete {玩家資料.%{_name}%::*}
- delete app "plugins\players\%{_name}%.yml"
- every 15 minutes:
- make console execute command "savedata"
- on command:
- command is "savedata"
- send "&b// &6文靜之潭 &e資料備份中 可能會有點卡頓 &b//" to all players
- wait 1 seconds
- loop all players:
- loop {玩家資料.%loop-player%::*}:
- set "%loop-index%" to "%loop-value-2%" in yaml file "plugins/players/%loop-player%.yml"
- loop all players:
- loop {技能.%loop-player%::*}:
- set yaml value "技能.%loop-index%" from "plugins/players/%loop-player%.yml" to "%loop-value-2%"
- send "&b// &6文靜之潭 &e資料備份成功 可繼續遊玩 &b//" to all players
- command /updateHp <number>:
- permission: op
- trigger:
- set "最大血量" to "%arg-1%" in yaml file "plugins/players/%player%.yml"
- set {玩家資料.%player%::最大血量} to arg-1
- command /expget <text> <number> <number>:
- permission: op.oao
- trigger:
- if {玩家資料.%arg-1%::目前經驗值} is set:
- add arg-2 to {玩家資料.%arg-1%::目前經驗值}
- send "&6經驗 >> &e您獲得了 %arg-2% EXP。" to arg-1 parsed as player
- on damage:
- if {玩家資料.%attacker%::遊戲模式} is "非打怪":
- stop
- if attacker is a player:
- if difference between {冷卻.%attacker%::魔力值恢復} and now is more than or equal to 1 second:
- delete {冷卻.%attacker%::魔力值恢復}
- if ({玩家資料.%attacker%::魔量吸收量} + {玩家魔力值.%attacker%}) is more than {玩家資料.%attacker%::魔力值}:
- set {玩家魔力值.%attacker%} to {玩家資料.%attacker%::魔力值}
- else:
- add {玩家資料.%attacker%::魔量吸收量} to {玩家魔力值.%attacker%}
- set {_math} to 0.99 * {玩家魔力值.%attacker%} / {玩家資料.%attacker%::魔力值}
- if {_math} is more than 1:
- set {_math} to 0.99
- set {玩家魔力值.%attacker%} to {玩家資料.%attacker%::魔力值}
- set level progress of the attacker to {_math}
- set attacker's level to {玩家魔力值.%attacker%}
- set {_check} to {玩家資料.%attacker%::最大血量}
- add ({玩家資料.%attacker%::力量} * 5) to {_check}
- add ({玩家資料.%attacker%::智慧} * 3) to {_check}
- add ({玩家資料.%attacker%::敏捷} * 4) to {_check}
- add ({玩家資料.%attacker%::幸運} * 3) to {_check}
- heal attacker by {玩家資料.%attacker%::血量吸收量} / (attacker's max health + {_check}) * attacker's max health
- set {冷卻.%attacker%::魔力值恢復} to now
- if {冷卻.%attacker%::魔力值恢復} isn't set:
- set {冷卻.%attacker%::魔力值恢復} to now
- set {_lore::*} to uncolored lore of attacker's tool split at "||"
- loop {_lore::*}:
- if {_lore::%loop-index%} contain "等級需求 -":
- if {_lore::%loop-index%} contains "技能":
- stop
- replace all "等級需求" , "-" and " " with "" in {_lore::%loop-index%}
- set {_lore::%loop-index%} to {_lore::%loop-index%} parsed as integer
- if {_lore::%loop-index%} is more than {玩家資料.%attacker%::玩家等級}:
- send "&6武器 >> &c武器無法使用,請確認是否符合武器使用條件!"
- cancel event
- stop
- if {_lore::%loop-index%} contain "職業需求":
- replace all "職業需求" , ":" , "[" , "]" and " " with "" in {_lore::%loop-index%}
- if {_lore::%loop-index%} contains "技能":
- stop
- if {_lore::%loop-index%} is "全職業":
- set {_useless} to 1
- else if {_lore::%loop-index%} isn't {玩家資料.%attacker%::玩家職業}:
- send "&6武器 >> &c武器無法使用,請確認是否符合武器使用條件!" to attacker
- cancel event
- stop
- if {_lore::%loop-index%} contain "物品類型: [ 武器 ]":
- set {_pass} to 1
- if {_lore::%loop-index%} contain "物理攻擊力 -":
- replace all "物理攻擊力" , "-" and " " with "" in {_lore::%loop-index%}
- set {_lore::%loop-index%} to {_lore::%loop-index%} parsed as integer
- set {_武器攻擊力} to {_lore::%loop-index%}
- if {_lore::%loop-index%} contain "物品類型: [ 技能 ]" or "武器類型: [ 魔杖 ]" or "武器類型: [ 弓 ]" or "武器類型: [ 飛鏢 ]" or "武器類型: [ 權杖 ]" or "武器類型: [ 長槍 ]":
- stop
- if {_lore::%loop-index%} contain "武器類型: [ 劍 ]":
- if difference between {冷卻.%attacker%::劍擊} and now is more than or equal to 0.4 second:
- delete {冷卻.%attacker%::劍擊}
- if {冷卻.%attacker%::劍擊} is set:
- if difference between {冷卻.%attacker%::波及} and now is less than or equal to 1 ticks:
- set {_yee} to 1
- else:
- cancel event
- stop
- set {冷卻.%attacker%::劍擊} to now
- if {_lore::%loop-index%} contain "武器類型: [ 匕首 ]":
- if difference between {冷卻.%attacker%::匕首擊} and now is more than or equal to 0.15 second:
- delete {冷卻.%attacker%::匕首擊}
- if {冷卻.%attacker%::匕首擊} is set:
- cancel event
- stop
- set {冷卻.%attacker%::匕首擊} to now
- if {_pass} is 1:
- set {_STRATK} to floor({玩家資料.%attacker%::力量} * 0.5)
- set {_DEXATK} to floor({玩家資料.%attacker%::敏捷} * 0.6)
- set {_INTATK} to floor({玩家資料.%attacker%::智慧} * 0.6)
- set {_LUKATK} to floor({玩家資料.%attacker%::幸運} * 0.7)
- set {_PHYSICDMG} to {玩家資料.%attacker%::物理攻擊力}
- add {_STRATK} + {_DEXATK} + {_LUKATK} to {_PHYSICDMG}
- set damage to ({_PHYSICDMG} + {_武器攻擊力})/2
- if {玩家資料.%attacker%::爆擊率} is set:
- set {_幾率.%attacker%} to {玩家資料.%attacker%::爆擊率} / 100
- Chance of {_幾率.%attacker%}:
- set {_omg} to 0.01 * {玩家資料.%attacker%::爆擊傷害} * damage
- set damage to (({_PHYSICDMG} + {_武器攻擊力})/2)*( 1 + {玩家資料.%attacker%::爆擊傷害} / 100)
- play "ENTITY_ENDERDRAGON_HURT" to attacker with volume 1 and pitch 1
- stop
- stop
- on death:
- remove all 1 xp from drops
- command /stat [<player>] [<text>] [<number>]:
- permission: op.oao
- trigger:
- if arg-1 isn't set:
- send "&c違法操作"
- stop trigger
- set {_arg=1} to player
- if arg-1 is set:
- set {_arg=1} to arg-1
- if {玩家資料.%{_arg=1}%::*} is set:
- if arg-3 is set:
- if arg-2 is "power":
- set {_w.%arg-3%} to arg-3
- if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
- add arg-3 to {玩家資料.%{_arg=1}%::力量}
- set {_w.%arg-3%} to {_w.%arg-3%} * -1
- add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
- stop trigger
- if arg-2 is "speed":
- set {_w.%arg-3%} to arg-3
- if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
- add arg-3 to {玩家資料.%{_arg=1}%::敏捷}
- set {_w.%arg-3%} to {_w.%arg-3%} * -1
- add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
- stop trigger
- if arg-2 is "clever":
- set {_w.%arg-3%} to arg-3
- if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
- add arg-3 to {玩家資料.%{_arg=1}%::智慧}
- set {_w.%arg-3%} to {_w.%arg-3%} * -1
- add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
- stop trigger
- if arg-2 is "lucky":
- set {_w.%arg-3%} to arg-3
- if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
- add arg-3 to {玩家資料.%{_arg=1}%::幸運}
- set {_w.%arg-3%} to {_w.%arg-3%} * -1
- add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
- stop trigger
- send "&c屬性點不足" to player-arg
- function LoadAP(P:player):
- set slot 10 of {_P}'s current inventory to diamond sword named "&6《增加力量屬性一點》" with lore "&E目前力量 &f[ &6%{玩家資料.%{_P}%::力量}% &f]"
- set slot 14 of {_P}'s current inventory to enchanted book named "&b《增加智慧屬性一點》" with lore "&e目前智慧 &f[ &b%{玩家資料.%{_P}%::智慧}% &f]"
- set slot 12 of {_P}'s current inventory to golden boots named "&a《增加敏捷屬性一點》" with lore "&e目前敏捷 &f[ &a%{玩家資料.%{_P}%::敏捷}% &f]"
- set slot 16 of {_P}'s current inventory to lily pads named "&2《增加幸運屬性一點》" with lore "&e目前幸運 &f[ &2%{玩家資料.%{_P}%::幸運}% &f]"
- command /stats:
- trigger:
- open chest with 3 row named "&9&l 文靜之潭&6&l配點介面" to player
- if inventory name of player's current inventory contains "配點介面":
- loop 9 times:
- set slot (loop-number - 1) of player's current inventory to 1 of black stained glass pane named "&7"
- loop 5 times:
- set slot (9 + (loop-number - 1) * 2) of player's current inventory to 1 of black stained glass pane named "&7"
- set slot (18 + (loop-number - 1) * 2) of player's current inventory to 1 of black stained glass pane named "&7"
- set slot 10 of player's current inventory to diamond sword named "&6《增加力量屬性一點》" with lore "&E目前力量 &f[ &6%{玩家資料.%player%::力量}% &f]"
- set slot 14 of player's current inventory to enchanted book named "&b《增加智慧屬性一點》" with lore "&e目前智慧 &f[ &b%{玩家資料.%player%::智慧}% &f]"
- set slot 12 of player's current inventory to golden boots named "&a《增加敏捷屬性一點》" with lore "&e目前敏捷 &f[ &a%{玩家資料.%player%::敏捷}% &f]"
- set slot 16 of player's current inventory to lily pads named "&2《增加幸運屬性一點》" with lore "&e目前幸運 &f[ &2%{玩家資料.%player%::幸運}% &f]"
- set slot 19 of player's current inventory to 1 of red stained glass pane named "&7"
- set slot 21 of player's current inventory to 1 of light green stained glass pane named "&7"
- set slot 23 of player's current inventory to 1 of light blue stained glass pane named "&7"
- set slot 25 of player's current inventory to 1 of yellow stained glass pane named "&7"
- on inventory click:
- if inventory name of player's current inventory contains "配點介面":
- if name of clicked item is "&7":
- cancel event
- stop
- on mor.inventory click:
- if inventory name of player's current inventory contains "配點介面":
- cancel event
- if name of event-item contains "力量" or "智慧" or "敏捷" or "幸運":
- if name of event-item contains "力量":
- execute command "stat %player% power 1"
- if name of event-item contains "敏捷":
- execute command "stat %player% speed 1"
- if name of event-item contains "智慧":
- execute command "stat %player% clever 1"
- if name of event-item contains "幸運":
- execute command "stat %player% lucky 1"
- wait 1 ticks
- LoadAP(player)
- on rightclick:
- if name of player's held item contains "屬性重置卷":
- set {_amount} to amount of player's held item
- set amount of player's held item to {_amount}-1
- set "力量" to "4" in yaml file "plugins/players/%player%.yml"
- set "智慧" to "4" in yaml file "plugins/players/%player%.yml"
- set "敏捷" to "4" in yaml file "plugins/players/%player%.yml"
- set "幸運" to "4" in yaml file "plugins/players/%player%.yml"
- set {玩家資料.%player%::力量} to 4
- set {玩家資料.%player%::智慧} to 4
- set {玩家資料.%player%::敏捷} to 4
- set {玩家資料.%player%::幸運} to 4
- set {_屬性點} to ({玩家資料.%player%::玩家等級}-1)*5
- set "剩餘屬性點" to "%{_屬性點}%" in yaml file "plugins/players/%player%.yml"
- set {玩家資料.%player%::剩餘屬性點} to {_屬性點}
- stop
- every 1 minutes:
- loop {玩家資料::*}:
- if {玩家資料.%loop-index%::高級會員時間} is set:
- remove 1 from {玩家資料.%loop-index%::高級會員時間}
- if {玩家資料.%loop-index%::高級會員時間} is smaller than or equal to 0:
- delete {玩家資料.%loop-index%::高級會員}
- delete {玩家資料.%loop-index%::高級會員時間}
- set {_高級會員} to loop-index parsed as player
- send "特權會員已過期。" to {_高級會員}
- command /vip [<text>] [<number>] [<text>]:
- permission: op.oao
- trigger:
- if {玩家資料.%arg-1%::玩家等級} is set:
- if {玩家資料.%arg-1%::高級會員} is set:
- delete {玩家資料.%arg-1%::高級會員}
- send "特權會員已過期。" to arg-1 parsed as player
- send "已關閉該玩家特權會員。"
- stop
- if arg-2 is set:
- if arg-3 isn't set:
- set {玩家資料.%arg-1%::高級會員時間} to 60 * arg-2
- else if arg-3 is "小時":
- set {玩家資料.%arg-1%::高級會員時間} to 60 * arg-2
- else if arg-3 is "分鐘":
- set {玩家資料.%arg-1%::高級會員時間} to arg-2
- else if arg-3 contains "天":
- set {玩家資料.%arg-1%::高級會員時間} to 60 * arg-2 * 24
- set {_內容} to floor({玩家資料.%arg-1%::高級會員時間} / 60)
- if {_內容} is equal to 0:
- set {_內容} to "%{玩家資料.%arg-1%::高級會員時間}%分鐘"
- else if {_內容} is more than or equal to 1:
- set {_內容} to "%floor({玩家資料.%arg-1%::高級會員時間} / 60)%小時"
- else:
- set {_內容} to "%floor({玩家資料.%arg-1%::高級會員時間} / 60 / 24)%天"
- send "特權會員已開啟。%{_內容}%" to arg-1 parsed as player
- else:
- send "永久特權會員已開啟。" to arg-1 parsed as player
- set {玩家資料.%arg-1%::高級會員} to now
- send "已開啟該玩家特權會員。"
- stop
- send "該玩家不存在"
- on any movement:
- if {玩家資料.%player%::遊戲模式} is "非打怪":
- stop
- set player's walk speed to 0.2 * ({玩家資料.%player%::移動速度}+{技能加速.%player%})/100
- if {玩家資料.%player%::玩家職業} is "初心者":
- set {_幾轉} to 10
- else if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 1:
- set {_幾轉} to 30
- else if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 2:
- set {_幾轉} to 60
- else if {幾轉職業::%{玩家資料.%player%::玩家職業}%} is 3:
- set {_幾轉} to {@玩家等級限制}
- if {玩家資料.%player%::玩家等級} is more than or equal to {_幾轉}:
- if {玩家資料.%player%::目前經驗值} is more than {玩家資料.%player%::最大經驗值}:
- set {玩家資料.%player%::目前經驗值} to {玩家資料.%player%::最大經驗值}
- stop
- if {玩家資料.%player%::目前經驗值} is more than {玩家資料.%player%::最大經驗值}:
- if {玩家資料.%player%::玩家等級} is more than or equal to 1:
- set {_clv} to 1.6
- if {玩家資料.%player%::玩家等級} is more than or equal to 10:
- set {_clv} to 1.4
- if {玩家資料.%player%::玩家等級} is more than or equal to 15:
- set {_clv} to 1.2
- if {玩家資料.%player%::玩家等級} is more than or equal to 31:
- set {_clv} to 1.1
- if {玩家資料.%player%::玩家等級} is more than or equal to 52:
- set {_clv} to 1.05
- set {玩家資料.%player%::最大經驗值} to round( {_clv} * ({玩家資料.%player%::最大經驗值}))
- set {玩家資料.%player%::目前經驗值} to round( {玩家資料.%player%::目前經驗值} ) - {玩家資料.%player%::最大經驗值}
- if {玩家資料.%player%::目前經驗值} is smaller than 0:
- set {玩家資料.%player%::目前經驗值} to 0
- if {玩家資料.%player%::玩家等級} is more than {_幾轉}:
- if {玩家資料.%player%::目前經驗值} is more than {玩家資料.%player%::最大經驗值}:
- set {玩家資料.%player%::目前經驗值} to {玩家資料.%player%::最大經驗值}
- stop
- if {玩家資料.%player%::目前經驗值} is {玩家資料.%player%::最大經驗值}:
- stop
- set {玩家資料.%player%::玩家等級} to {玩家資料.%player%::玩家等級} + 1
- set {玩家資料.%player%::剩餘屬性點} to {玩家資料.%player%::剩餘屬性點} + 5
- set {玩家資料.%player%::剩餘技能點} to {玩家資料.%player%::剩餘技能點} + 1
- if {玩家資料.%player%::目前經驗值} is smaller than {玩家資料.%player%::最大經驗值}:
- execute player command "showshowshow"
- send "&6等級 >> &e您的等級提升至 &6&l%{玩家資料.%player%::玩家等級}% 等 &e了!"
- on damage:
- attacker is a player
- set victim's damage delay to 0 second
- command /debugmp:
- trigger:
- send "%{玩家資料.%player%::魔力值}%" to player
- send "%{玩家魔力值.%player%}%" to player
- on quit:
- delete {玩家魔力值.%player%}
- command /spelltest:
- trigger:
- if {玩家魔力值.%player%} is larger or equal to 20:
- send "&cBANG!" to player
- remove 20 from {玩家魔力值.%player%}
- set {_math} to 0.99 * {玩家魔力值.%player%} / {玩家資料.%player%::魔力值}
- 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 {玩家魔力值.%player%}
- else:
- send "&4魔力不足!" to player
- stop
- on command:
- command is "showshowshow"
- cancel event
- drawWings style 11, particle1 "totem", speed 0, XYZ 0, 0, 0, particle2 "lava", particle3 "fireworkspark", center player, id "%player%show", rainbowMode false, flapSpeed 1, flapRange 1, angle 120, height 3, space 0.4, visibleRange 30, tps 0, second 1
- set {_loop.%player%} to a random integer between 10 and 14
- loop {_loop.%player%} times:
- wait 2 tick
- add 1 to {_notesound.%player%}
- if {_notesound.%player%} > 3:
- set {_notesound.%player%} to 1
- if {_notesound.%player%} = 1:
- play "ENTITY_PLAYER_LEVELUP" to player with volume 1 and pitch 2
- if {_notesound.%player%} = 2:
- play "ENTITY_PLAYER_LEVELUP" to player with volume 1 and pitch 1
- if {_notesound.%player%} = 3:
- play "ENTITY_PLAYER_LEVELUP" to player with volume 1 and pitch 0
- wait 1.5 seconds
- stopeffect id "%player%show"
- on damage:
- if attacker is victim:
- cancel event
- stop
- #請看死亡復活
- command /lv [<text>]:
- trigger:
- set {_player} to player
- if arg-1 is set:
- set {_pass} to 0
- set {_player} to arg-1 parsed as offlineplayer
- if {_player} is online:
- set {_pass} to 1
- if file existance of "plugins/players/%arg-1%.yml" is false:
- set {_player} to player
- else:
- if {_pass} is 0:
- clear {_玩家資料.%{_player}%::*}
- set {_玩家資料.%{_player}%::玩家等級} to single value "玩家等級" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::目前經驗值} to single value "目前經驗值" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::最大經驗值} to single value "最大經驗值" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::剩餘屬性點} to single value "剩餘屬性點" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::剩餘技能點} to single value "剩餘技能點" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::力量} to single value "力量" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::智慧} to single value "智慧" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::敏捷} to single value "敏捷" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::幸運} to single value "幸運" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::最大血量} to single value "最大血量" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::魔力值} to single value "魔力值" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::防禦力} to single value "防禦力" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::物理攻擊力} to single value "物理攻擊力" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::魔法攻擊力} to single value "魔法攻擊力" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::血量恢復量} to single value "血量恢復量" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::魔量恢復量} to single value "魔量恢復量" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::爆擊率} to single value "爆擊率" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::爆擊傷害} to single value "爆擊傷害" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::無視防禦} to single value "無視防禦" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::總傷害} to single value "總傷害" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::移動速度} to single value "移動速度" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::跳躍力} to single value "跳躍力" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::血量吸收量} to single value "血量吸收量" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::魔量吸收量} to single value "魔量吸收量" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::經驗卷倍率} to single value "經驗卷倍率" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::經驗卷時間} to single value "經驗卷時間" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::高級會員時間} to single value "高級會員時間" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::伴侶} to single value "伴侶" get of "plugins/players/%{_player}%.yml"
- loop {_玩家資料.%{_player}%::*}:
- set {_pass} to 0
- if loop-index is "高級會員時間":
- if loop-value is "永久":
- set {_pass} to 1
- if {_pass} is 0:
- set {_玩家資料.%{_player}%::%loop-index%} to {_玩家資料.%{_player}%::%loop-index%} parsed as integer
- set {_玩家資料.%{_player}%::玩家職業} to single value "玩家職業" get of "plugins/players/%{_player}%.yml"
- set {_玩家資料.%{_player}%::高級會員} to single value "高級會員" get of "plugins/players/%{_player}%.yml"
- if {_玩家資料.%{_player}%::高級會員} isn't "無":
- set {_高級會員} to "&c&lV&e&lI&9&lP"
- if {_玩家資料.%{_player}%::高級會員時間} isn't "永久":
- set {_GG} to floor({_玩家資料.%{_player}%::高級會員時間} / 60)
- if {_GG} is equal to 0:
- set {_GG} to "(%{_玩家資料.%{_player}%::高級會員時間}%分鐘)"
- else if {_GG} is more than or equal to 1:
- set {_GG} to "(%floor({_玩家資料.%{_player}%::高級會員時間} / 60)%小時)"
- else:
- set {_GG} to "(%floor({_玩家資料.%{_player}%::高級會員時間} / 60 / 24)%天)"
- else:
- set {_GG} to "(永久)"
- else:
- set {_高級會員} to "&f無"
- set {_GG} to ""
- send "&6●=--------=《&c&l%{_player}% &4角色資料&6》=--------=●"
- send "&e名稱: &9%{_player}% &e高級會員: &9%{_GG}%%{_高級會員}%"
- send "&e職業: &b%{_玩家資料.%{_player}%::玩家職業}% &e配偶: &d%{_玩家資料.%{_player}%::伴侶}%"
- send "&e等級: &6%{_玩家資料.%{_player}%::玩家等級}% &8&3(&a%round({_玩家資料.%{_player}%::目前經驗值})%&3/&a%{_玩家資料.%{_player}%::最大經驗值}%&3)"
- set {_check} to {_玩家資料.%{_player}%::最大血量}
- add ({_玩家資料.%{_player}%::力量} * 5) to {_check}
- add ({_玩家資料.%{_player}%::智慧} * 3) to {_check}
- add ({_玩家資料.%{_player}%::敏捷} * 4) to {_check}
- add ({_玩家資料.%{_player}%::幸運} * 3) to {_check}
- send "&e生命值: &c%{_check}% &e魔力值: &6%{_玩家資料.%{_player}%::魔力值}%"
- send "&e力量: &f[ &6%{_玩家資料.%{_player}%::力量}% &f] &e智慧: &f[ &b%{_玩家資料.%{_player}%::智慧}% &f] "
- send "&e敏捷: &f[ &a%{_玩家資料.%{_player}%::敏捷}% &f] &e幸運: &f[ &2%{_玩家資料.%{_player}%::幸運}% &f] "
- send "&6●=--------=&c----------------------------&6=--------=●"
- send "&e防禦力: &6%{_玩家資料.%{_player}%::防禦力}% "
- set {_STRATK} to {_玩家資料.%{_player}%::力量} * 0.5
- set {_DEXATK} to {_玩家資料.%{_player}%::敏捷} * 0.6
- set {_INTATK} to {_玩家資料.%{_player}%::智慧} * 0.6
- set {_LUKATK} to {_玩家資料.%{_player}%::幸運} * 0.7
- set {_PHYSICDMG} to {_玩家資料.%{_player}%::物理攻擊力}
- set {_MAGICDMG} to {_玩家資料.%{_player}%::魔法攻擊力}
- add {_STRATK} + {_DEXATK} + {_LUKATK} to {_PHYSICDMG}
- add {_INTATK} to {_MAGICDMG}
- send "&e物理攻擊力: &c%{_PHYSICDMG}% &e魔法攻擊力: &b%{_MAGICDMG}% "
- send "&e血量恢復量: &c%{_玩家資料.%{_player}%::血量恢復量}% &e魔量恢復量: &b%{_玩家資料.%{_player}%::魔量恢復量}%"
- send "&e血量吸收量: &c%{_玩家資料.%{_player}%::血量吸收量}% &e魔量吸收量: &b%{_玩家資料.%{_player}%::魔量吸收量}% "
- send "&e爆擊率: &2%{_玩家資料.%{_player}%::爆擊率}%&f%% &e爆擊傷害: &2%{_玩家資料.%{_player}%::爆擊傷害}%&f%% "
- send "&e無視防禦: &5%{_玩家資料.%{_player}%::無視防禦}%&f%% &e總傷害: &5%{_玩家資料.%{_player}%::總傷害}%&f%% "
- send "&e移動速度: &a%{_玩家資料.%{_player}%::移動速度}%&f%% &e跳躍力: &a%{_玩家資料.%{_player}%::跳躍力}%&f%% "
- send "&6●=--------=&c----------------------------&6=--------=●"
- stop
- if {玩家資料.%{_player}%::高級會員} isn't "無":
- set {_高級會員} to "&c&lV&e&lI&9&lP"
- if {玩家資料.%{_player}%::高級會員時間} isn't "永久":
- set {_GG} to floor({玩家資料.%{_player}%::高級會員時間} / 60)
- if {_GG} is equal to 0:
- set {_GG} to "(%{玩家資料.%{_player}%::高級會員時間}%分鐘)"
- else if {_GG} is more than or equal to 1:
- set {_GG} to "(%floor({玩家資料.%{_player}%::高級會員時間} / 60)%小時)"
- else:
- set {_GG} to "(%floor({玩家資料.%{_player}%::高級會員時間} / 60 / 24)%天)"
- else:
- set {_GG} to "(永久)"
- else:
- set {_高級會員} to "&f無"
- set {_GG} to ""
- send "&6●=--------=《&c&l%{_player}% &4角色資料&6》=--------=●"
- send "&e名稱: &9%{_player}% &e高級會員: &9%{_GG}%%{_高級會員}%"
- send "&e職業: &b%{玩家資料.%{_player}%::玩家職業}% &e配偶: &d%{玩家資料.%{_player}%::伴侶}%"
- send "&e等級: &6%{玩家資料.%{_player}%::玩家等級}% &8&3(&a%round({玩家資料.%{_player}%::目前經驗值})%&3/&a%{玩家資料.%{_player}%::最大經驗值}%&3)"
- set {_check} to {玩家資料.%{_player}%::最大血量}
- add ({玩家資料.%{_player}%::力量} * 5) to {_check}
- add ({玩家資料.%{_player}%::智慧} * 3) to {_check}
- add ({玩家資料.%{_player}%::敏捷} * 4) to {_check}
- add ({玩家資料.%{_player}%::幸運} * 3) to {_check}
- send "&e生命值: &c%{_check}% &e魔力值: &6%{玩家資料.%{_player}%::魔力值}%"
- send "&e力量: &f[ &6%{玩家資料.%{_player}%::力量}% &f] &e智慧: &f[ &b%{玩家資料.%{_player}%::智慧}% &f] "
- send "&e敏捷: &f[ &a%{玩家資料.%{_player}%::敏捷}% &f] &e幸運: &f[ &2%{玩家資料.%{_player}%::幸運}% &f] "
- if {_player} is executor:
- send "&e剩餘屬性點: &f%{玩家資料.%{_player}%::剩餘屬性點}%"
- send "&e剩餘技能點: &f%{玩家資料.%{_player}%::剩餘技能點}%"
- send "&6●=--------=&c----------------------------&6=--------=●"
- send "&e防禦力: &6%{玩家資料.%{_player}%::防禦力}% "
- set {_STRATK} to floor({玩家資料.%{_player}%::力量} * 0.5)
- set {_DEXATK} to floor({玩家資料.%{_player}%::敏捷} * 0.6)
- 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}
- send "&e物理攻擊力: &c%{_PHYSICDMG}% &e魔法攻擊力: &b%{_MAGICDMG}% "
- send "&e血量恢復量: &c%{玩家資料.%{_player}%::血量恢復量}% &e魔量恢復量: &b%{玩家資料.%{_player}%::魔量恢復量}%"
- send "&e血量吸收量: &c%{玩家資料.%{_player}%::血量吸收量}% &e魔量吸收量: &b%{玩家資料.%{_player}%::魔量吸收量}%"
- send "&e爆擊率: &6%{玩家資料.%{_player}%::爆擊率}%&6%% &e爆擊傷害: &6%{玩家資料.%{_player}%::爆擊傷害}%&6%%"
- send "&e無視防禦: &d%{玩家資料.%{_player}%::無視防禦}%&d%% &e總傷害: &d%{玩家資料.%{_player}%::總傷害}%&d%%"
- send "&e移動速度: &a%{玩家資料.%{_player}%::移動速度}%&a%% &e跳躍力: &a%{玩家資料.%{_player}%::跳躍力}%&a%%"
- send "&6●=--------=&c----------------------------&6=--------=●"
Add Comment
Please, Sign In to add comment