Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- 玩家等級限制: 100
- On Chat:
- set {_玩家聊天訊息} to message
- cancel event
- if {玩家資料.%player%::VIP} is set:
- broadcast "&e[&a%{幾轉職業::%{玩家資料.%player%::玩家職業}%}%轉&e] &e%{玩家資料.%player%::玩家職業}% &a- &eLv.%{玩家資料.%player%::玩家等級}%&a - &c&l[&6&lV&a&lI&b&lP&5&l]&e%player% &f: &f%{_玩家聊天訊息}%"
- stop
- broadcast "&e[&a%{幾轉職業::%{玩家資料.%player%::玩家職業}%}%轉&e] &e%{玩家資料.%player%::玩家職業}% &a- &eLv.%{玩家資料.%player%::玩家等級}%&a - &e%player% &f: &f%{_玩家聊天訊息}%"
- On join:
- if file existance of "plugins/players/%player%.yml" is false:
- set join message to "&b// &6歡迎新玩家 &e%player% &6進入了伺服器 &b//"
- create file "plugins/players/%player%.yml"
- set "玩家等級" to "1" in yaml file "plugins/players/%player%.yml"
- set "最大經驗值" to "15" in yaml file "plugins/players/%player%.yml"
- set "目前經驗值" to "0" 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 "幸運" to "4" in yaml file "plugins/players/%player%.yml"
- set "最大血量" to "20" in yaml file "plugins/players/%player%.yml"
- set "MP" to "100" in yaml file "plugins/players/%player%.yml"
- set "防禦力" to "0" in yaml file "plugins/players/%player%.yml"
- set "物理攻擊力" to "0" in yaml file "plugins/players/%player%.yml"
- set "魔法攻擊力" to "0" in yaml file "plugins/players/%player%.yml"
- set "血量恢復量" to "10" in yaml file "plugins/players/%player%.yml"
- set "魔量恢復量" to "8" in yaml file "plugins/players/%player%.yml"
- set "爆擊率" to "5" in yaml file "plugins/players/%player%.yml"
- set "爆擊傷害" to "35" in yaml file "plugins/players/%player%.yml"
- set "無視防禦" to "0" in yaml file "plugins/players/%player%.yml"
- set "總傷害" to "100" in yaml file "plugins/players/%player%.yml"
- set "移動速度" to "100" in yaml file "plugins/players/%player%.yml"
- set "跳躍力" to "100" in yaml file "plugins/players/%player%.yml"
- set "血量吸收量" to "0" in yaml file "plugins/players/%player%.yml"
- set "魔量吸收量" to "1" in yaml file "plugins/players/%player%.yml"
- set "剩餘屬性點" to "0" in yaml file "plugins/players/%player%.yml"
- set "剩餘技能點" to "0" in yaml file "plugins/players/%player%.yml"
- set "玩家職業" to "初心者" in yaml file "plugins/players/%player%.yml"
- set "經驗卷倍率" to "100" in yaml file "plugins/players/%player%.yml"
- set "經驗卷時間" to "0" in yaml file "plugins/players/%player%.yml"
- set "VIP" to "無" in yaml file "plugins/players/%player%.yml"
- set "VIP時間" to "0" in yaml file "plugins/players/%player%.yml"
- set "重生點" to "無" in yaml file "plugins/players/%player%.yml"
- set yaml value "技能.魔力打擊" from "plugins/players/%player%.yml" to "0"
- set yaml value "技能.自我恢復" from "plugins/players/%player%.yml" to "0"
- set yaml value "技能.迅捷之步" from "plugins/players/%player%.yml" to "0"
- else:
- set join message to "&b// &e%player% &6進入了伺服器 &b//"
- 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%::MP} to single value "MP" 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%::VIP時間} to single value "VIP時間" get of "plugins/players/%player%.yml"
- set {技能.%player%::魔力打擊} to yaml value "技能.魔力打擊" from "plugins/players/%player%.yml"
- set {技能.%player%::自我恢復} to yaml value "技能.自我恢復" from "plugins/players/%player%.yml"
- set {技能.%player%::迅捷之步} to yaml value "技能.迅捷之步" from "plugins/players/%player%.yml"
- loop {玩家資料.%player%::*}:
- set {_pass} to 0
- if loop-index is "VIP時間":
- 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%::VIP} to single value "VIP" get of "plugins/players/%player%.yml"
- if {玩家資料.%player%::VIP} is "無":
- delete {玩家資料.%player%::VIP}
- set {玩家資料.%player%::重生點} to single value "重生點" get of "plugins/players/%player%.yml"
- command /resetlv [<player>]:
- trigger:
- player is an op
- create file "plugins/players/%arg%.yml"
- set "玩家等級" to "1" in yaml file "plugins/players/%arg%.yml"
- set "最大經驗值" to "15" in yaml file "plugins/players/%arg%.yml"
- set "目前經驗值" to "0" in yaml file "plugins/players/%arg%.yml"
- set "力量" to "4" in yaml file "plugins/players/%arg%.yml"
- set "智慧" to "4" in yaml file "plugins/players/%arg%.yml"
- set "敏捷" to "4" in yaml file "plugins/players/%arg%.yml"
- set "幸運" to "4" in yaml file "plugins/players/%arg%.yml"
- set "最大血量" to "20" in yaml file "plugins/players/%arg%.yml"
- set "MP" to "100" in yaml file "plugins/players/%arg%.yml"
- set "防禦力" to "0" in yaml file "plugins/players/%arg%.yml"
- set "物理攻擊力" to "0" in yaml file "plugins/players/%arg%.yml"
- set "魔法攻擊力" to "0" in yaml file "plugins/players/%arg%.yml"
- set "血量恢復量" to "10" in yaml file "plugins/players/%arg%.yml"
- set "魔量恢復量" to "8" in yaml file "plugins/players/%arg%.yml"
- set "爆擊率" to "5" in yaml file "plugins/players/%arg%.yml"
- set "爆擊傷害" to "35" in yaml file "plugins/players/%arg%.yml"
- set "無視防禦" to "0" in yaml file "plugins/players/%arg%.yml"
- set "總傷害" to "100" in yaml file "plugins/players/%arg%.yml"
- set "移動速度" to "100" in yaml file "plugins/players/%arg%.yml"
- set "跳躍力" to "100" in yaml file "plugins/players/%arg%.yml"
- set "血量吸收量" to "0" in yaml file "plugins/players/%arg%.yml"
- set "魔量吸收量" to "1" in yaml file "plugins/players/%arg%.yml"
- set "剩餘屬性點" to "0" in yaml file "plugins/players/%arg%.yml"
- set "剩餘技能點" to "0" in yaml file "plugins/players/%arg%.yml"
- set "玩家職業" to "初心者" in yaml file "plugins/players/%arg%.yml"
- set "經驗卷倍率" to "100" in yaml file "plugins/players/%arg%.yml"
- set "經驗卷時間" to "0" in yaml file "plugins/players/%arg%.yml"
- set "VIP" to "無" in yaml file "plugins/players/%arg%.yml"
- set "VIP時間" to "0" in yaml file "plugins/players/%arg%.yml"
- set "重生點" to "無" in yaml file "plugins/players/%arg%.yml"
- set yaml value "技能.魔力打擊" from "plugins/players/%arg%.yml" to "0"
- set yaml value "技能.自我恢復" from "plugins/players/%arg%.yml" to "0"
- set yaml value "技能.迅捷之步" from "plugins/players/%arg%.yml" to "0"
- set {玩家資料.%arg%::玩家等級} to single value "玩家等級" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::目前經驗值} to single value "目前經驗值" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::最大經驗值} to single value "最大經驗值" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::剩餘屬性點} to single value "剩餘屬性點" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::剩餘技能點} to single value "剩餘技能點" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::力量} to single value "力量" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::智慧} to single value "智慧" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::敏捷} to single value "敏捷" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::幸運} to single value "幸運" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::最大血量} to single value "最大血量" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::MP} to single value "MP" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::防禦力} to single value "防禦力" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::物理攻擊力} to single value "物理攻擊力" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::魔法攻擊力} to single value "魔法攻擊力" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::血量恢復量} to single value "血量恢復量" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::魔量恢復量} to single value "魔量恢復量" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::爆擊率} to single value "爆擊率" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::爆擊傷害} to single value "爆擊傷害" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::無視防禦} to single value "無視防禦" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::總傷害} to single value "總傷害" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::移動速度} to single value "移動速度" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::跳躍力} to single value "跳躍力" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::血量吸收量} to single value "血量吸收量" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::魔量吸收量} to single value "魔量吸收量" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::經驗卷倍率} to single value "經驗卷倍率" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::經驗卷時間} to single value "經驗卷時間" get of "plugins/players/%arg%.yml"
- set {玩家資料.%arg%::VIP時間} to single value "VIP時間" get of "plugins/players/%arg%.yml"
- set {技能.%arg%::魔力打擊} to yaml value "技能.魔力打擊" from "plugins/players/%arg%.yml"
- set {技能.%arg%::自我恢復} to yaml value "技能.自我恢復" from "plugins/players/%arg%.yml"
- set {技能.%arg%::迅捷之步} to yaml value "技能.迅捷之步" from "plugins/players/%arg%.yml"
- on command:
- command is "testattack"
- send "%{玩家資料.%player%::物理攻擊力}%" to player
- on quit:
- set quit message to "&b// &e%player% &6離開了伺服器 &b//"
- if {玩家資料.%player%::*} is set:
- loop {玩家資料.%player%::*}:
- set "%loop-index%" to "%loop-value%" in yaml file "plugins/players/%player%.yml"
- delete {玩家資料.%player%::*}
- delete {技能加速.%player%}
- on command:
- command is "boomlvl"
- cancel event
- delete {玩家資料.%player%::*}
- delete app "plugins\players\%player%.yml"
- kick player due to "Disconneted."
- every 15 minutes:
- loop all players:
- loop {玩家資料.%loop-player%::*}:
- set "%loop-index%" to "%loop-value-2%" in yaml file "plugins/players/%loop-player%.yml"
- send "&b// &a資料備份成功 . &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>:
- permission: op.oao
- trigger:
- if {玩家資料.%arg-1%::目前經驗值} is set:
- add arg-2 to {玩家資料.%arg-1%::目前經驗值}
- send "&b【系統】 &a&l完成了任務,獲取了經驗值 &f%arg-2% &a。" to arg-1 parsed as player
- command /spawn:
- trigger:
- teleport player to {玩家資料.%player%::重生點}
- send "&6已傳送至&a重生點&6。"
- on damage:
- if attacker is a player:
- set {_lore::*} to uncolored lore of attacker's tool split at "||"
- loop {_lore::*}:
- 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 "弓":
- stop
- set {_STRATK} to floor({玩家資料.%attacker%::力量} * 0.5)
- set {_DEXATK} to floor({玩家資料.%attacker%::敏捷} * 0.5)
- 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 difference between {冷卻.%attacker%::MP恢復} and now is more than or equal to 1 second:
- delete {冷卻.%attacker%::MP恢復}
- if {冷卻.%attacker%::MP恢復} is set:
- stop
- add {玩家資料.%attacker%::魔量吸收量} to {玩家MP.%attacker%}
- set {_math} to 0.99 * {玩家MP.%attacker%} / {玩家資料.%attacker%::MP}
- if {_math} is more than or equal to 1:
- set {_math} to 0.99
- set {玩家MP.%attacker%} to {玩家資料.%attacker%::MP}
- set level progress of the attacker to {_math}
- set attacker's level to {玩家MP.%attacker%}
- set {冷卻.%attacker%::MP恢復} to now
- 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
- 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 12 of player's current inventory to enchanted book named "&b《增加智慧屬性一點》" with lore "&e目前智慧 &f[ &b%{玩家資料.%player%::智慧}% &f]"
- set slot 14 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 "配點介面":
- if name of event-item contains "力量" or "智慧" or "敏捷" or "幸運":
- close player's inventory
- wait 1 ticks
- 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
- make player execute command "stats"
- 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%::VIP時間} is set:
- remove 1 from {玩家資料.%loop-index%::VIP時間}
- if {玩家資料.%loop-index%::VIP時間} is smaller than or equal to 0:
- delete {玩家資料.%loop-index%::VIP}
- delete {玩家資料.%loop-index%::VIP時間}
- set {_vip} to loop-index parsed as player
- send "特權會員已過期。" to {_vip}
- command /vip [<text>] [<number>] [<text>]:
- permission: op.oao
- trigger:
- if {玩家資料.%arg-1%::玩家等級} is set:
- if {玩家資料.%arg-1%::VIP} is set:
- delete {玩家資料.%arg-1%::VIP}
- send "特權會員已過期。" to arg-1 parsed as player
- send "已關閉該玩家特權會員。"
- stop
- if arg-2 is set:
- if arg-3 isn't set:
- set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2
- else if arg-3 is "小時":
- set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2
- else if arg-3 is "分鐘":
- set {玩家資料.%arg-1%::VIP時間} to arg-2
- else if arg-3 contains "天":
- set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2 * 24
- set {_內容} to floor({玩家資料.%arg-1%::VIP時間} / 60)
- if {_內容} is equal to 0:
- set {_內容} to "%{玩家資料.%arg-1%::VIP時間}%分鐘"
- else if {_內容} is more than or equal to 1:
- set {_內容} to "%floor({玩家資料.%arg-1%::VIP時間} / 60)%小時"
- else:
- set {_內容} to "%floor({玩家資料.%arg-1%::VIP時間} / 60 / 24)%天"
- send "特權會員已開啟。%{_內容}%" to arg-1 parsed as player
- else:
- send "永久特權會員已開啟。" to arg-1 parsed as player
- set {玩家資料.%arg-1%::VIP} to now
- send "已開啟該玩家特權會員。"
- stop
- send "該玩家不存在"
- on any movement:
- set player's walk speed to 0.2 * ({玩家資料.%player%::移動速度}+{技能加速.%player%})/100
- # set player's level to {玩家資料.%player%::玩家等級}
- 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 {_幾轉}:
- #set player's level to {_幾轉}
- if {玩家資料.%player%::目前經驗值} is more than or equal to {玩家資料.%player%::最大經驗值}:
- #set level progress of the player to 0.99
- set {玩家資料.%player%::目前經驗值} to {玩家資料.%player%::最大經驗值}
- if {玩家資料.%player%::玩家等級} is more than or equal to 101:
- set {玩家資料.%player%::玩家等級} to 100
- set {玩家資料.%player%::最大經驗值} to 999999999
- #else:
- #set level progress of the player to {玩家資料.%player%::目前經驗值} / {玩家資料.%player%::最大經驗值} * 0.99
- stop
- # else:
- # set {_check} to {玩家資料.%player%::目前經驗值} / {玩家資料.%player%::最大經驗值}
- # if {_check} is smaller than or equal to 0.99:
- # set level progress of the player to {玩家資料.%player%::目前經驗值} / {玩家資料.%player%::最大經驗值} * 0.99
- # else:
- # set level progress of the player to 0.99
- if {玩家資料.%player%::目前經驗值} is more than or equal to {玩家資料.%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 or equal to 0:
- set {玩家資料.%player%::目前經驗值} to 0
- if {玩家資料.%player%::玩家等級} is more than or equal to {_幾轉}:
- #set player's level to {_幾轉}
- if {玩家資料.%player%::目前經驗值} is more than or equal to {玩家資料.%player%::最大經驗值}:
- #set level progress of the player to 0.99
- set {玩家資料.%player%::目前經驗值} to {玩家資料.%player%::最大經驗值}
- set {玩家資料.%player%::玩家等級} to {玩家資料.%player%::玩家等級} + 1
- set {玩家資料.%player%::剩餘屬性點} to {玩家資料.%player%::剩餘屬性點} + 5
- if {玩家資料.%player%::目前經驗值} is smaller than or equal to {玩家資料.%player%::最大經驗值}:
- execute player command "showshowshow"
- on damage:
- attacker is a player
- set victim's damage delay to 0.01 second
- on join:
- set {_maxmp} to {玩家資料.%player%::MP}
- set {玩家MP.%player%} to 0
- while {玩家MP.%player%} is smaller than or equal to {玩家資料.%player%::MP}:
- wait 5 seconds
- set {_check} to {玩家資料.%player%::最大血量}
- add ({玩家資料.%player%::力量} * 5) to {_check}
- add ({玩家資料.%player%::智慧} * 3) to {_check}
- add ({玩家資料.%player%::敏捷} * 4) to {_check}
- add ({玩家資料.%player%::幸運} * 3) to {_check}
- heal player by {玩家資料.%player%::血量恢復量} * 0.5 / (player's max health + {_check}) * player's max health
- add {玩家資料.%player%::魔量恢復量} to {玩家MP.%player%}
- if {玩家MP.%player%} is larger than {玩家資料.%player%::MP}:
- set {玩家MP.%player%} to {玩家資料.%player%::MP}
- set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
- set player's level to {玩家MP.%player%}
- if {_math} is more than or equal to 1:
- set {_math} to 0.99
- set {玩家MP.%player%} to {玩家資料.%player%::MP}
- set level progress of the player to {_math}
- if player isn't online:
- stop
- on quit:
- delete {玩家MP.%player%}
- command /spelltest:
- trigger:
- if {玩家MP.%player%} is larger or equal to 20:
- send "&cBANG!" to player
- remove 20 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%}
- 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}%::MP} to single value "MP" 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}%::VIP時間} to single value "VIP時間" get of "plugins/players/%{_player}%.yml"
- loop {_玩家資料.%{_player}%::*}:
- set {_pass} to 0
- if loop-index is "VIP時間":
- 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}%::VIP} to single value "VIP" get of "plugins/players/%{_player}%.yml"
- if {_玩家資料.%{_player}%::VIP} isn't "無":
- set {_VIP} to "&c&lV&e&lI&9&lP"
- if {_玩家資料.%{_player}%::VIP時間} isn't "永久":
- set {_GG} to floor({_玩家資料.%{_player}%::VIP時間} / 60)
- if {_GG} is equal to 0:
- set {_GG} to "(%{_玩家資料.%{_player}%::VIP時間}%分鐘)"
- else if {_GG} is more than or equal to 1:
- set {_GG} to "(%floor({_玩家資料.%{_player}%::VIP時間} / 60)%小時)"
- else:
- set {_GG} to "(%floor({_玩家資料.%{_player}%::VIP時間} / 60 / 24)%天)"
- else:
- set {_GG} to "(永久)"
- else:
- set {_VIP} to "&f無"
- set {_GG} to ""
- send "&6●=--------=《&c&l%{_player}% &4角色資料&6》=--------=●"
- send "&e名稱: &9%{_player}% &eVIP: &9%{_GG}%%{_VIP}%"
- send "&e職業: &b%{_玩家資料.%{_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}%::幸運} * 2) to {_check}
- send "&e生命值: &c%{_check}% &e魔力值: &6%{_玩家資料.%{_player}%::MP}%"
- 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.5
- 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}%::VIP} isn't "無":
- set {_VIP} to "&c&lV&e&lI&9&lP"
- if {玩家資料.%{_player}%::VIP時間} isn't "永久":
- set {_GG} to floor({玩家資料.%{_player}%::VIP時間} / 60)
- if {_GG} is equal to 0:
- set {_GG} to "(%{玩家資料.%{_player}%::VIP時間}%分鐘)"
- else if {_GG} is more than or equal to 1:
- set {_GG} to "(%floor({玩家資料.%{_player}%::VIP時間} / 60)%小時)"
- else:
- set {_GG} to "(%floor({玩家資料.%{_player}%::VIP時間} / 60 / 24)%天)"
- else:
- set {_GG} to "(永久)"
- else:
- set {_VIP} to "&f無"
- set {_GG} to ""
- send "&6●=--------=《&c&l%{_player}% &4角色資料&6》=--------=●"
- send "&e名稱: &9%{_player}% &eVIP: &9%{_GG}%%{_VIP}%"
- send "&e職業: &b%{玩家資料.%{_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}%::MP}%"
- 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.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}
- 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=--------=●"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement