Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #點數變數 {玩家資料.%id%::商城點數}
- Options:
- tag: &6副本 >> #TAG名
- 怪物上限: 100 #一個副本內的怪物上限
- signname: &d副本 #告示牌名
- signquit: &c離開副本
- world: dungeon #地圖名
- error0: &c錯誤代碼0:副本創建過程錯誤
- error1: &c錯誤代碼1:指令錯誤
- error2: &c錯誤代碼2:此副本名已被設置過
- error3: &c錯誤代碼3:錯誤副本名
- error4: &c錯誤代碼4:無此副本
- error5: &c錯誤代碼5:副本時間必須大於零且不為小數
- #------------------------------------------------------------------------------------
- on any movement:
- if {方塊處罰.%player%} is set:
- cancel event
- #------------------------------------------------------------------------------------
- on rightclick:
- if player's tool is boat or spruce boat or birch boat or jungle boat or acacia boat:
- set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- loop {_dgfilejoin2::*}:
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- if event-player is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- if event-player's gamemode isn't creative:
- send "&c副本中禁止放船"
- cancel event
- #------------------------------------------------------------------------------------
- on command:
- set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- loop {_dgfilejoin2::*}:
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- if event-player is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- if event-player's gamemode isn't creative:
- if "%command%" is "spawn" or "g":
- send "{@tag} &c無法在副本使用此指令"
- cancel event
- #------------------------------------------------------------------------------------
- on damage:
- if attacker is a player:
- if metadata value "怪物特性" of victim is "保護中":
- cancel event
- #on command "/mpt leave":
- # set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- # if {_dgfilejoin2::*} is set:
- # loop {_dgfilejoin2::*}:
- # clear {_mydgquit1}
- # set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- # set {_mydgline1.%loop-value%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- # if {_mydgline1.%loop-value%.list::1} is name of player:
- # set {_no} to 1
- # if {_no} is set:
- # set {_teamleave.%player%::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%player%.yml"
- # loop {_teamleave.%player%::*}:
- # set {_teamleave} to loop-value
- # set {_teamleave} to {_teamleave} parsed as player
- # execute {_teamleave} command "/mydg quit"
- # send "{@tag} &c隊長離開隊伍,全員將退出副本" to {_teamleave}
- on join:
- if {方塊處罰.%player%} is set:
- delete {方塊處罰.%player%}
- on rightclick holding hoe:
- set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- loop {_dgfilejoin2::*}:
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- if event-player is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- if event-player's gamemode isn't creative:
- cancel event
- on place:
- set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- loop {_dgfilejoin2::*}:
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- if event-player is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- if event-player's gamemode isn't creative:
- cancel event
- set {_lore} to lore of player's tool
- if {_lore} contains "補品":
- set {_o} to 1
- if {_o} isn't set:
- set {方塊處罰.%player%} to 1
- send "{@tag} 由於放置方塊因此處罰2秒不能移動"
- wait 2 second
- delete {方塊處罰.%player%}
- every 3 second:
- loop all players:
- add loop-player to {_check.player::*}
- if {_check.player::*} isn't set:
- set {_dgfilejoin2.1::*} to files in "plugins/mythicdg"
- if {_dgfilejoin2.1::*} is set:
- loop {_dgfilejoin2.1::*}:
- set {_mydgquit1.1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_mydgsecond.%loop-value%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- if {_mydgsecond.%loop-value%.list::*} is set:
- loop {_mydgsecond.%loop-value%.list::*}:
- remove loop-value-2 from skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value-1%"
- set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- if {_dgfilejoin2::*} is set:
- loop {_dgfilejoin2::*}:
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_mydgprotect} to skutil yaml value "副本保護對象" from file "plugins/mythicdg/%loop-value%"
- if {_mydgprotect} isn't "無":
- set {_mydgline1.%loop-value%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- loop all entities:
- if loop-entity isn't dropped item or player or armor stand:
- if loop-entity is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- set {_0} to 1
- if {_mydgline1.%loop-value%.list::*} is set:
- if {_0} is set:
- set {_bossbar} to name of bossbar "%{_mydgquit1}%"
- if "%uncolored {_bossbar}%" isn't "開始副本":
- loop all entities:
- if loop-entity isn't dropped item or player or armor stand:
- if loop-entity is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- if "%uncolored name of loop-entity%" is "%{_mydgprotect}%":
- set {_o} to loop-entity
- set metadata value "怪物特性" of loop-entity to "保護中"
- stop loop
- if {_o} isn't set:
- loop all players:
- if loop-player is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- execute loop-player command "/mydg quit"
- send "{@tag} &c保護對象已死亡..." to loop-player
- else:
- loop all entities:
- if loop-entity isn't dropped item or player:
- if loop-entity is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- set loop-entity's target to {_o}
- set {_oo} to location of {_o}
- set {_speed} to walk speed of the loop-entity
- make loop-entity pathfind to {_oo} with speed {_speed}
- if {_dgfilejoin2::*} is set:
- loop {_dgfilejoin2::*}:
- clear {_mydgquit1}
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_mydgline1.%loop-value%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- if {_mydgline1.%loop-value%.list::*} is set:
- if file existance of "plugins/MithicParty/%{_mydgline1.%loop-value%.list::1}%.yml" is true:
- set {_teamcheak.%loop-value%::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%{_mydgline1.%loop-value%.list::1}%.yml"
- loop {_teamcheak.%loop-value%::*}:
- clear {_playercheak.%loop-value-2%}
- set {_playercheak.%loop-value-2%} to loop-value-2 parsed as player
- if {_playercheak.%loop-value-2%} is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- set {_ok.%loop-value-2%} to 1
- else:
- set {_mydgteam1.%{_playercheak.%loop-value-2%}%} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%{_playercheak.%loop-value-2%}%.yml"
- if {_mydgteam1.%{_playercheak.%loop-value-2%}%} isn't "無":
- execute {_playercheak.%loop-value-2%} command "/mydg quit"
- set skutil yaml value "進行中副本" from file "plugins/MithicParty/%{_playercheak.%loop-value-2%}%.yml" to "無"
- if {_mydgline1.%loop-value%.list::*} is set:
- clear {_ok.%{_mydgquit1}%}
- clear {_no.%{_mydgquit1}%}
- loop all players:
- if loop-player is within {副本名::%{_mydgquit1}%::mydg_area_x} to {副本名::%{_mydgquit1}%::mydg_area_y}:
- set {_ok.%{_mydgquit1}%} to 1
- if {_ok.%{_mydgquit1}%} isn't set:
- set {_checkleader} to {_mydgline1.%loop-value%.list::1} parsed as offlineplayer
- if file existance of "plugins/MithicParty/%{_checkleader}%.yml" is true:
- set {_myparty.%{_checkleader}%.list1::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%{_checkleader}%.yml"
- if {_myparty.%{_checkleader}%.list1::*} is set:
- loop {_myparty.%{_checkleader}%.list1::*}:
- set {_team} to loop-value-2
- set {_team} to {_team} parsed as player
- execute {_team} command "/mydg quit"
- else:
- execute {_checkleader} command "/mydg quit"
- if {_mydgline1.%loop-value%.list::2} is set:
- execute console command "/mydg go %{_mydgquit1}% %{_mydgline1.%loop-value%.list::2}%"
- else:
- remove bossbar "%{_mydgquit1}%"
- remove {_mydgline1.%loop-value%.list::1} from skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mydgquit1}%.yml"
- if {_mydgline1.%loop-value%.list::2} is set:
- execute console command "/mydg go %{_mydgquit1}% %{_mydgline1.%loop-value%.list::2}%"
- on damage of entity:
- if entity isn't a player:
- set {_y.1} to Y-coordinate of location of victim
- set {_y.1} to {_y.1} parsed as number
- if {_y.1} < 0:
- if "%damage cause%" is "void":
- set damage to 999999999999
- on damage of player:
- set {_y.1} to Y-coordinate of location of victim
- set {_y.1} to {_y.1} parsed as number
- if {_y.1} < 0:
- if file existance of "plugins/MithicParty/%victim%.yml" is false:
- if "%damage cause%" is "void":
- execute victim command "/mydg quit"
- execute victim command "/spawn"
- on join:
- if {mydg.CD.%event-player%} is set:
- delete {mydg.CD.%event-player%}
- set {_dgfilejoin.%event-player%::*} to files in "plugins/mythicdg"
- loop {_dgfilejoin.%event-player%::*}:
- set {_mydgquit.%event-player%} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- loop all players:
- if loop-player is within {副本名::%{_mydgquit.%event-player%}%::mydg_area_x} to {副本名::%{_mydgquit.%event-player%}%::mydg_area_y}:
- if loop-player is event-player:
- teleport loop-player to {副本名::%{_mydgquit.%event-player%}%::respawn}
- stop loop
- on quit:
- make player execute command "/mydg quit"
- set {_dgfilejoin.%event-player%::*} to files in "plugins/mythicdg"
- loop {_dgfilejoin.%event-player%::*}:
- set {_mydgquit.%event-player%} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- clear {_stop.%event-player%}
- loop all players:
- if loop-player is within {副本名::%{_mydgquit.%event-player%}%::mydg_area_x} to {副本名::%{_mydgquit.%event-player%}%::mydg_area_y}:
- if loop-player is event-player:
- execute loop-player command "/mydg quit"
- set {_stop.%event-player%} to 1
- stop loop
- if {_stop.%event-player%} is set:
- set {_onquit%event-player%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- loop {_onquit%event-player%.list::*}:
- if loop-value-2 is event-player:
- remove loop-value-2 from skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- #on mor.inventory click:
- # if inventory name of player's current inventory contains "復活介面":
- # if name of event-item contains "回城":
- # set {_dgfilejoin.%event-player%::*} to files in "plugins/mythicdg"
- # loop {_dgfilejoin.%event-player%::*}:
- # set {_mydgquit.%event-player%} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- # loop all players:
- # if loop-player is within {副本名::%{_mydgquit.%event-player%}%::mydg_area_x} to {副本名::%{_mydgquit.%event-player%}%::mydg_area_y}:
- # if loop-player is event-player:
- # set {_no3.%event-player%} to 1
- # stop loop
- # delete holo object "%player%.death"
- # set player's health to 0.5
- # set {冷卻.%player%::強制阻斷} to now
- # delete skutil yaml nodes "死亡座標" from file "plugins/players/%player%.yml"
- # remove {玩家魔力值.%player%} from {玩家魔力值.%player%}
- # if {玩家魔力值.%player%} is larger than {玩家資料.%player%::魔力值}:
- # set {玩家魔力值.%player%} to {玩家資料.%player%::魔力值}
- # set {_math} to 0.99 * {玩家魔力值.%player%} / {玩家資料.%player%::魔力值}
- # set player's level to {玩家魔力值.%player%}
- # if {_math} is more than or equal to 1:
- # set {_math} to 0.99
- # set {玩家魔力值.%player%} to {玩家資料.%player%::魔力值}
- # set level progress of the player to {_math}
- # remove invisibility from player
- # remove absorption from player
- # remove regeneration from player
- # remove fire resistance from player
- # if slot 38 of player isn't empty:
- # set player's tool to slot 38 of player
- # set slot 38 of player to air
- # if slot 37 of player isn't empty:
- # set slot 40 of player to slot 37 of player
- # set slot 37 of player to air
- # teleport player to spawn of "%player's world%"
- # set player's gamemode to survival
- # apply saturation 5 to player for 2 seconds
- # delete {玩家資料.%player%::死亡座標}
- # set {玩家資料.%player%::原地復活} to 0
- # send action bar from "&b&l已回城復活!" to player
- # if {_no.%event-player%} is set:
- # execute event-player command "/mydg quit"
- #------------------------------------------------------------------------------------
- on leftclick on sign:
- line 1 of the clicked block is "{@signname}":
- line 2 of the clicked block is set:
- stop
- if player isn't sneaking:
- if {副本名::%line 2 of the clicked block%::mydg_name} is set:
- execute player command "/mydg info %line 2 of the clicked block%"
- else:
- send "{@tag} &c無此副本"
- else:
- execute player command "/mydg list"
- on rightclick on sign:
- line 1 of the clicked block is "{@signquit}":
- execute player command "/mydg quit"
- line 1 of the clicked block is "{@signname}":
- line 2 of the clicked block is set:
- # send "&c出現BUG 暫停開放"
- # stop
- if file existance of "plugins/MithicParty/%player%.yml" is true:
- set {_mypartydg1.%event-player%} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%event-player%.yml"
- if {_mypartydg1.%event-player%} is set:
- if {副本名::%line 2 of the clicked block%::mydg_name} is set:
- if file existance of "plugins/MithicParty/%event-player%.yml" is true:
- set {_mypartycreate.%event-player%} to skutil yaml value "隊長" from file "plugins/MithicParty/%event-player%.yml"
- if {_mypartycreate.%event-player%} is event-player:
- set {_myparty.%event-player%.list1::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%event-player%.yml"
- set {_myparty.%event-player%.number} to 0
- loop {_myparty.%event-player%.list1::*}:
- increase {_myparty.%event-player%.number} by 1
- set {_mydgparty.%event-player%} to skutil yaml value "隊伍人數下限" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydgparty.%event-player%} to {_mydgparty.%event-player%} parsed as number
- if {_myparty.%event-player%.number} >= {_mydgparty.%event-player%}:
- set {_mydgline.%event-player%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydglinenumber.%event-player%} to 0
- loop {_mydgline.%event-player%.list::*}:
- increase {_mydglinenumber.%event-player%} by 1
- if {_mydglinenumber.%event-player%} = 45:
- send "{@tag} &c排隊已滿,請稍候"
- cancel event
- if {_mydgcheck.%event-player%} isn't set:
- open chest with 6 row named "&d副本介面" to player
- set {_mydgline.%event-player%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydglinenumber.%event-player%} to 0 #排隊人數
- set {_mydglinenumber1.%event-player%} to 8 #隊長頭顱放置slot點
- loop {_mydgline.%event-player%.list::*}:
- increase {_mydglinenumber.%event-player%} by 1
- increase {_mydglinenumber1.%event-player%} by 1
- set {_mydglineguiname.%event-player%.%{_mydglinenumber.%event-player%}%} to loop-value parsed as offlineplayer #隊長名
- if {_mydglinenumber1.%event-player%} = 9:
- set {_mydglinegui.%event-player%.%{_mydglinenumber.%event-player%}%} to skull of {_mydglineguiname.%event-player%.%{_mydglinenumber.%event-player%}%} named "&b攻略中&e%loop-value%"
- else:
- set {_mydglinegui.%event-player%.%{_mydglinenumber.%event-player%}%} to skull of {_mydglineguiname.%event-player%.%{_mydglinenumber.%event-player%}%} named "&b排隊中&e%loop-value%"
- make gui slot {_mydglinenumber1.%event-player%} of player with {_mydglinegui.%event-player%.%{_mydglinenumber.%event-player%}%}
- set {_mydglinenumber1.%event-player%} to 0
- loop 7 times:
- increase {_mydglinenumber1.%event-player%} by 1
- set {_mydglineguipane.%event-player%.%{_mypartycreatenumber1.%event-player%}%} to green stained glass pane named ""
- make gui slot {_mydglinenumber1.%event-player%} of player with {_mydglineguipane.%event-player%.%{_mypartycreatenumber1.%event-player%}%}
- set {_mydgtime.%event-player%} to skutil yaml value "副本時間" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydglv.%event-player%} to skutil yaml value "副本需求等級" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydglvh.%event-player%} to skutil yaml value "副本最高需求等級" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydgpartyh.%event-player%} to skutil yaml value "隊伍人數上限" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydgparty.%event-player%} to skutil yaml value "隊伍人數下限" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydglineguitime.%event-player%} to painting named "&a副本名: &f%line 2 of the clicked block%" with lore "&a限制時間: &f%{_mydgtime.%event-player%}%||&a等級最低需求: &f%{_mydglv.%event-player%}% ||&a等級最高需求: &f%{_mydglvh.%event-player%}% ||&a隊伍下限: &f%{_mydgparty.%event-player%}%||&a隊伍上限: &f%{_mydgpartyh.%event-player%}%||&a物品需求: %{副本名::%line 2 of the clicked block%::item}%||&b點選加入排隊"
- make gui slot 0 of player with {_mydglineguitime.%event-player%} to close then execute console command "/mydg join %line 2 of the clicked block% %event-player%" with permission "" #加入排隊指令
- set {_mydglineguileave.%event-player%} to barrier named "&c離開排隊" with lore "&b點選離開排隊"
- make gui slot 8 of player with {_mydglineguileave.%event-player%} to close then execute console command "/mydg leave %line 2 of the clicked block% %event-player%" with permission "" #加入排隊指令
- if {副本名::%line 2 of the clicked block%::rank} is "開啟":
- set {_mydg.rank1::*} to skutil yaml list "總排名.1.隊伍" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank2::*} to skutil yaml list "總排名.2.隊伍" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank3::*} to skutil yaml list "總排名.3.隊伍" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank4::*} to skutil yaml list "總排名.4.隊伍" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank5::*} to skutil yaml list "總排名.5.隊伍" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank1fact} to skutil yaml value "總排名.1.真實排名" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank2fact} to skutil yaml value "總排名.2.真實排名" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank3fact} to skutil yaml value "總排名.3.真實排名" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank4fact} to skutil yaml value "總排名.4.真實排名" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank5fact} to skutil yaml value "總排名.5.真實排名" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank1time} to skutil yaml value "總排名.1.時間" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank2time} to skutil yaml value "總排名.2.時間" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank3time} to skutil yaml value "總排名.3.時間" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank4time} to skutil yaml value "總排名.4.時間" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank5time} to skutil yaml value "總排名.5.時間" from file "plugins/mythicdg/%line 2 of the clicked block%.yml"
- set {_mydg.rank1time} to {_mydg.rank1time} parsed as number
- set {_mydg.rank2time} to {_mydg.rank2time} parsed as number
- set {_mydg.rank3time} to {_mydg.rank3time} parsed as number
- set {_mydg.rank4time} to {_mydg.rank4time} parsed as number
- set {_mydg.rank5time} to {_mydg.rank5time} parsed as number
- set {_mydg.ranktext} to gold block named "&e最快攻略副本排名"
- make gui slot 1 of player with {_mydg.ranktext}
- make gui slot 7 of player with {_mydg.ranktext}
- set {_mydg.rank1.leader} to {_mydg.rank1::1} parsed as offlineplayer
- set {_mydg.rank1.slot} to skull of {_mydg.rank1.leader} named "&6第%{_mydg.rank1fact}%名 &b%{_mydg.rank1time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank1::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank1.slot} to "&b%loop-value%"
- make gui slot 2 of player with {_mydg.rank1.slot}
- set {_mydg.rank2.leader} to {_mydg.rank2::1} parsed as offlineplayer
- set {_mydg.rank2.slot} to skull of {_mydg.rank2.leader} named "&6第%{_mydg.rank2fact}%名 &b%{_mydg.rank2time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank2::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank2.slot} to "&b%loop-value%"
- make gui slot 3 of player with {_mydg.rank2.slot}
- set {_mydg.rank3.leader} to {_mydg.rank3::1} parsed as offlineplayer
- set {_mydg.rank3.slot} to skull of {_mydg.rank3.leader} named "&6第%{_mydg.rank3fact}%名 &b%{_mydg.rank3time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank3::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank3.slot} to "&b%loop-value%"
- make gui slot 4 of player with {_mydg.rank3.slot}
- set {_mydg.rank4.leader} to {_mydg.rank4::1} parsed as offlineplayer
- set {_mydg.rank4.slot} to skull of {_mydg.rank4.leader} named "&6第%{_mydg.rank4fact}%名 &b%{_mydg.rank4time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank4::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank4.slot} to "&b%loop-value%"
- make gui slot 5 of player with {_mydg.rank4.slot}
- set {_mydg.rank5.leader} to {_mydg.rank5::1} parsed as offlineplayer
- set {_mydg.rank5.slot} to skull of {_mydg.rank5.leader} named "&6第%{_mydg.rank5fact}%名 &b%{_mydg.rank5time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank5::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank5.slot} to "&b%loop-value%"
- make gui slot 6 of player with {_mydg.rank5.slot}
- else:
- send "{@tag} &c隊伍人數不足,無法進入"
- else:
- send "{@tag} &c你不是隊長,無法加入副本"
- else:
- send "{@tag} &c無此副本"
- else:
- send "{@tag} &c你尚未創建/加入隊伍,無法進入"
- #------------------------------------------------------------------------------------
- on command "/mpt leave":
- if file existance of "plugins/MithicParty/%event-player%.yml" is true:
- set {_mypartycreate.%event-player%} to skutil yaml value "隊長" from file "plugins/MithicParty/%event-player%.yml"
- set {_mypartycreate.%event-player%} to {_mypartycreate.%event-player%} parsed as player
- if {_mypartycreate.%event-player%} isn't event-player:
- set {_mypartydg1.%event-player%} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%{_mypartycreate.%event-player%}%.yml"
- set {_mydg.mydg_area_x} to {副本名::%{_mypartydg1.%event-player%}%::mydg_area_x}
- set {_mydg.mydg_area_y} to {副本名::%{_mypartydg1.%event-player%}%::mydg_area_y}
- if {_mypartydg1.%event-player%} isn't "無":
- loop all players:
- if loop-player is within {_mydg.mydg_area_x} to {_mydg.mydg_area_y}:
- if loop-player is event-player:
- execute loop-player command "/mydg quit"
- set {_check} to 1
- stop loop
- if {_check} isn't set:
- execute console command "/mydg leave %{_mypartydg1.%event-player%}% %event-player%"
- else:
- set {_mypartydg1.%event-player%} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%{_mypartycreate.%event-player%}%.yml"
- if {_mypartydg1.%event-player%} isn't "無":
- execute player command "/mydg quit"
- set {_myparty.%event-player%.list1::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%event-player%.yml"
- set {_mydg.%event-player%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mypartydg1.%event-player%}%.yml"
- loop {_mydg.%event-player%.list::*}:
- if loop-value is name of player:
- set {_line.number} to loop-index
- set {_select} to 1
- set {_mydg.%event-player%.list::%{_line.number}%} to {_myparty.%event-player%.list1::2}
- stop loop
- if {_select} is set:
- delete skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mypartydg1.%event-player%}%.yml"
- loop {_mydg.%event-player%.list::*}:
- add loop-value to skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mypartydg1.%event-player%}%.yml"
- set {_mydg.mydg_area_x} to {副本名::%{_mypartydg1.%event-player%}%::mydg_area_x}
- set {_mydg.mydg_area_y} to {副本名::%{_mypartydg1.%event-player%}%::mydg_area_y}
- if player is within {_mydg.mydg_area_x} to {_mydg.mydg_area_y}:
- execute player command "/mydg quit"
- # if {_mydgnumber} < 3:
- # if {_check} isn't set:
- # execute console command "/mydg leave %{_mypartydg1.%event-player%}% %{_mypartycreate.%event-player%}%"
- #------------------------------------------------------------------------------------
- #轉換成位置
- function mydgLoc(location: text, world: world) :: location:
- set {_loc::*} to {_location} parsed as "x: %num%, y: %num%, z: %num%"
- set {_dd} to "{@world}" parsed as world
- return location({_loc::1}, {_loc::2}, {_loc::3}, {_dd})
- function mydgrank(隊伍: text, 時間: text, 真實: text, 排名: text, 副本名: text) :: text:
- set skutil yaml value "總排名.%{_排名}%.真實排名" from file "plugins/mythicdg/%{_副本名}%.yml" to "%{_真實}%"
- set skutil yaml value "總排名.%{_排名}%.時間" from file "plugins/mythicdg/%{_副本名}%.yml" to "%{_時間}%"
- loop {%{_隊伍}%::*}:
- add loop-value to skutil yaml list "總排名.%{_排名}%.隊伍" from file "plugins/mythicdg/%{_副本名}%.yml"
- #------------------------------------------------------------------------------------
- command /remydg [<text>] [<text>] [<text>] [<text>]:
- trigger:
- if arg-1 is "error":
- if player have permission "mydg":
- set {_加載副本名} to "苦力帕神殿遺跡"
- set {副本名::%{_加載副本名}%::mydg_area_y} to location of player
- set "副本頂點y" to "%{副本名::%{_加載副本名}%::mydg_area_y}%" in yaml file "plugins/mythicdg/%{_加載副本名}%.yml"
- send "修復完成"
- if arg-1 is "del":
- if arg-2 is set:
- if player have permission "mydg":
- delete file "plugins/mythicdg/%arg-2%.yml"
- send "已刪除%arg-2%檔案"
- if arg-1 is "cd":
- if arg-2 is set:
- if player have permission "mydg":
- delete {mydg.CD.%arg-2%}
- if arg-1 is "new":
- if player have permission "mydg":
- set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- if {_dgfilejoin2::*} is set:
- loop {_dgfilejoin2::*}:
- clear {_mydgquit1}
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_mydg.mode} to skutil yaml value "模式" from file "plugins/mythicdg/%loop-value%"
- if {_mydg.mode} isn't set:
- set skutil yaml value "模式" from file "plugins/mythicdg/%loop-value%" to "一般放怪"
- set {副本名::%{_mydgquit1}%::mode} to "一般放怪"
- send "&e已更改 %{_mydgquit1}%"
- if arg-1 is "new1":
- if player have permission "mydg":
- set {_dgfilejoin2::*} to files in "plugins/mythicdg"
- if {_dgfilejoin2::*} is set:
- loop {_dgfilejoin2::*}:
- clear {_mydgquit1}
- set {_mydgquit1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set skutil yaml value "副本保護對象" from file "plugins/mythicdg/%loop-value%" to "無"
- send "&e已更改 %{_mydgquit1}%"
- command /mydg [<text>] [<text>] [<text>] [<text>] [<text>] :
- #------------------------------------------------------------------------------------
- trigger:
- if arg-1 isn't set:
- send "&b----------&6副本指令&b----------"
- send "&a/mydg <areax,areay> <副本名> &d設置副本區域"
- send "&a/mydg spawn <副本名> &d設置副本玩家出生點"
- send "&a/mydg lv <副本名> &d設定副本最低需求等級"
- send "&a/mydg lvh <副本名> &d設定副本最高需求等級"
- send "&a/mydg party <副本名> <數字> &d設定副本最低需求"
- send "&a/mydg partyh <副本名> <數字> &d設定副本最高需求"
- send "&a/mydg respawn <副本名> &d設定副本離開重生點"
- send "&a/mydg item <副本名> &d設置副本需求物品"
- send "&a/mydg time <副本名> <整數> &d設置副本時間"
- send "&a/mydg protest <副本名> ~ ~ <怪物顯示名> &d設置副本保護對象"
- send "&a/mydg tp <副本名> <areax,areay> &d傳送至副本區域兩個對角線"
- send "&b/mydg tp <副本名> <mob> <怪物編號> &d傳送至副本怪物出生點 (限定一般放怪模式)"
- send "&b/mydg tp <副本名> <mob2> <怪物編號> <波數> &d傳送至副本怪物出生點 (限定波數放怪模式)"
- send "&a/mydg delete <dg> <副本名> &d刪除副本"
- send "&a/mydg kill <副本名> &d刪除副本怪物"
- send "&a/mydg quit &d離開副本"
- send "&a/mydg reload &d重載副本(尚未製好)"
- send "&a/mydg info <副本名> &d查詢副本排隊狀況"
- send "&a/mydg rank <副本名> <true,false,boom> &d開/關/重置副本排名"
- send "&a/mydg mode <副本名> <1,2> &d1是將怪物一次放出,2是將怪物以波數放出"
- send "&b/mydg mob <副本名> <怪物名> &d設置副本怪物 (限定一般放怪模式)"
- send "&b/mydg start <副本名> &d出生副本怪物 (限定一般放怪模式)"
- send "&b/mydg mob2 <副本名> <怪物名> <波數> &d設置副本怪物 (限定波數放怪模式)"
- send "&b/mydg cmd text <副本名> <指令名> <波數> &d下一波開始時對副本中玩家使用指令 使用 <player> 會替換為玩家ID (限定波數放怪模式)"
- send "&b/mydg start2 <副本名> &d出生副本怪物 (限定波數放怪模式)"
- send "&b/mydg delete mob <副本名> <怪物編號>> &d刪除副本怪物 (限定一般放怪模式)"
- send "&b/mydg delete mob2 <副本名> <怪物編號> <波數> &d刪除副本怪物 (限定波數放怪模式)"
- send "&b/mydg delete cmd <副本名> <波數> <指令> &d刪除副本指令 (限定波數放怪模式)"
- send "&b----------&6副本指令&b----------"
- if arg-1 is "mode":
- if arg-2 is set:
- if arg-3 is "1" or "2":
- if arg-3 is "1":
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set skutil yaml value "模式" from file "plugins/mythicdg/%arg-2%.yml" to "一般放怪"
- send "{@tag} &f更改副本模式為一般放怪"
- send "{@tag} &f更改副本模式將刪掉副本怪物"
- delete skutil yaml nodes "副本怪物" from file "plugins/mythicdg/%arg-2%.yml"
- set {副本名::%arg-2%::mode} to "一般放怪"
- else:
- send "{@tag} &c無此副本"
- if arg-3 is "2":
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set skutil yaml value "模式" from file "plugins/mythicdg/%arg-2%.yml" to "波數放怪"
- delete skutil yaml nodes "副本怪物" from file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f更改副本模式為波數放怪"
- send "{@tag} &f更改副本模式將刪掉副本怪物"
- set {副本名::%arg-2%::mode} to "波數放怪"
- else:
- send "{@tag} &c無此副本"
- else:
- send "{@tag} &c指令錯誤 請更正為 /mydg mode <副本名> <1,2> "
- if arg-1 is "list":
- set {_dgfilejoin::*} to files in "plugins/mythicdg"
- set {_num} to -1
- open chest with 6 row named "&6副本介面" to player
- set {_managedg} to "{SkullOwner:{Id:""39afdd42-8238-4b6e-bce3-f9a54a08e0ae"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzFmNDIwODM2ZDUwODE3YTlmZTRlYTE3ZTA5NjE2NzQ4ODgxMTVkMWY2MjcxNzU5MzVmMjFjNjhiNzc3M2QzYyJ9fX0=""}]}}}"
- loop {_dgfilejoin::*}:
- increase {_num} by 1
- set {_mydgmanage} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_numdg} to {副本名::%{_mydgmanage}%::player_time}
- set {_numdg1} to {副本名::%{_mydgmanage}%::lv}
- set {_numdg2} to {副本名::%{_mydgmanage}%::lvh}
- set {_numdg3} to {副本名::%{_mydgmanage}%::party}
- set {_numdg4} to {副本名::%{_mydgmanage}%::partyh}
- set {_numdg5} to {副本名::%{_mydgmanage}%::item}
- set {_managedg.%player%.dg} to player head with custom nbt "%{_managedg}%" named "&f副本名: &b%{_mydgmanage}%" with lore "&a限制時間: &f%{_numdg}%||&a等級最低需求: &f%{_numdg1}%||&a等級最高需求: &f%{_numdg2}%||&a隊伍下限: &f%{_numdg3}%||&a隊伍上限: &f%{_numdg4}%||&a物品需求: %{_numdg5}%||&b點選查詢排隊狀況"
- make gui slot {_num} of player with {_managedg.%player%.dg} to run player command "/mydg info %{_mydgmanage}%" with permission ""
- if {_num} > 52:
- set {_next} to "{SkullOwner:{Id:""1f961930-4e97-47b7-a5a1-2cc5150f3764"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTNmYzUyMjY0ZDhhZDllNjU0ZjQxNWJlZjAxYTIzOTQ3ZWRiY2NjY2Y2NDkzNzMyODliZWE0ZDE0OTU0MWY3MCJ9fX0=""}]}}}"
- set {_next1} to player head with custom nbt "%{_next}%" named "&f下一頁"
- make gui slot 53 of player with {_next1} to run player command "/48484" with permission ""
- if arg-1 is "party":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {副本名::%arg-2%::party} to arg-3
- set "隊伍人數下限" to "%{副本名::%arg-2%::party}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設置 副本: %arg-2% 隊伍人數下限為 %arg-3%"
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- if arg-1 is "partyh":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {副本名::%arg-2%::partyh} to arg-3
- set "隊伍人數上限" to "%{副本名::%arg-2%::partyh}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設置 副本: %arg-2% 隊伍人數上限為 %arg-3%"
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- if arg-1 is "respawn":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {副本名::%arg-2%::respawn} to location of player
- set "重生地點" to "%{副本名::%arg-2%::respawn}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設置 副本: %arg-2% 重生地點為腳下"
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- if arg-1 is "reload":
- stop trigger
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- send "{@tag} &f重新加載副本"
- set {_加載::*} to files in "plugins/mythicdg"
- loop {_加載::*}:
- set {_加載副本名} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_reloadareax} to skutil yaml value "副本頂點x" from file "plugins/mythicdg/%loop-value%"
- set {副本名::%{_加載副本名}%::mydg_area_x} to mydgLoc("%{_reloadareax}%", player's world)
- set {_reloadareay} to skutil yaml value "副本頂點y" from file "plugins/mythicdg/%loop-value%"
- set {副本名::%{_加載副本名}%::mydg_area_x} to mydgLoc("%{_reloadareay}%", player's world)
- set {_reloadspawn} to skutil yaml value "副本重生點" from file "plugins/mythicdg/%loop-value%"
- set {副本名::%{_加載副本名}%::player_spawn} to mydgLoc("%{_reloadspawn}%", player's world)
- set {副本名::%{_加載副本名}%::player_time} to skutil yaml value "副本時間" from file "plugins/mythicdg/%loop-value%"
- set {副本名::%{_加載副本名}%::lv} to skutil yaml value "副本需求等級" from file "plugins/mythicdg/%loop-value%"
- set {副本名::%{_加載副本名}%::lvh} to skutil yaml value "副本需求等級" from file "plugins/mythicdg/%loop-value%"
- if arg-1 is "item":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- send "{@tag} &f已設定手中物品為副本進入條件"
- if name of player's tool isn't "none":
- set {副本名::%arg-2%::item} to name of player's tool
- set "副本需求物品" to "%{副本名::%arg-2%::item}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- else:
- send "{@tag} &c由於手中物品不是自定物品因此設定成無"
- set {副本名::%arg-2%::item} to "無"
- set "副本需求物品" to "%{副本名::%arg-2%::item}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg itme <副本名>"
- if arg-1 is "lvh":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {副本名::%arg-2%::lvh} to arg-3
- set "副本最高需求等級" to "%arg-3%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設置 副本: %arg-2% 最高等級需求: %arg-3%"
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg lvh <副本名> <需求等級>"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg lvh <副本名> <需求等級>"
- stop trigger
- if arg-1 is "lv":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {副本名::%arg-2%::lv} to arg-3
- set "副本需求等級" to "%arg-3%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設置 副本: %arg-2% 最低等級需求: %arg-3%"
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg lv <副本名> <需求等級>"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg lv <副本名> <需求等級>"
- stop trigger
- if arg-1 is "protect":
- if arg-2 is set:
- if arg-3 is "~":
- if arg-4 is "~":
- if arg-5 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {副本名::%arg-2%::protect} to arg-5
- set "副本保護對象" to "%arg-5%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設置 副本: %arg-2% 保護對象: %arg-5%"
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請使用/mydg protect <副本名> ~ ~ <怪物顯示名> "
- stop trigger
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請使用/mydg protect <副本名> ~ ~ <怪物顯示名> "
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg protect <副本名> ~ ~ <怪物顯示名>"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg protect <副本名> ~ ~ <怪物顯示名>"
- stop trigger
- if arg-1 is "join":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- loop all players:
- if loop-player is arg-3:
- set {_mydg.check} to 1
- stop loop
- if {_mydg.check} is set:
- if {mydg.CD.%arg-3%} is set:
- set {_mydgjoin.%arg-3%} to arg-3 parsed as player
- send "{@tag} &c副本冷卻時間10秒,請等等再試" to {_mydgjoin.%arg-3%}
- stop trigger
- set {mydg.CD.%arg-3%} to 1
- set {_mydgjoin.%arg-3%} to arg-3 parsed as player
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {_mydg.checkdg.%arg-3%} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%arg-3%.yml"
- set {_myparty.%arg-3%.list::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%arg-3%.yml"
- loop {_myparty.%arg-3%.list::*}:
- if loop-value isn't arg-3:
- set {_mydgteam.%arg-3%} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%loop-value%.yml"
- if {_mydgteam.%arg-3%} isn't "無":
- send "{@tag} &c你隊友正在攻略其它副本,請稍候" to {_mydgjoin.%arg-3%}
- wait 10 second
- delete {mydg.CD.%arg-3%}
- stop trigger
- if {_mydg.checkdg.%arg-3%} is "無":
- loop {_myparty.%arg-3%.list::*}:
- set {_mypartylevel.%loop-value%} to skutil yaml value "玩家等級" from file "plugins/players/%loop-value%.yml"
- set {_mypartylevel.%loop-value%} to {_mypartylevel.%loop-value%} parsed as number
- set {副本名::%arg-2%::lv} to {副本名::%arg-2%::lv} parsed as number
- set {副本名::%arg-2%::lvh} to {副本名::%arg-2%::lvh} parsed as number
- if {_mypartylevel.%loop-value%} >= {副本名::%arg-2%::lv}:
- if {副本名::%arg-2%::lvh} < {_mypartylevel.%loop-value%}:
- send "{@tag} &f%loop-value%&c等級不到&f%{副本名::%arg-2%::lvh}%&c以下" to {_mydgjoin.%arg-3%}
- set {_stop} to 1
- else:
- send "{@tag} &f%loop-value%&c等級不到&f%{副本名::%arg-2%::lv}%&c以上" to {_mydgjoin.%arg-3%}
- set {_stop} to 1
- if {_stop} isn't set:
- set {_check::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%arg-2%.yml"
- if "%{_check::*}%" contains "%arg-3%":
- send "&c你有在排隊此副本"
- stop trigger
- add arg-3 to skutil yaml list "排隊中" from file "plugins/mythicdg/%arg-2%.yml"
- set skutil yaml value "進行中副本" from file "plugins/MithicParty/%arg-3%.yml" to "%arg-2%"
- send "{@tag} &e你加入 副本:%arg-2% 排隊了" to {_mydgjoin.%arg-3%}
- set {_dgfile::*} to files in "plugins/mythicdg"
- loop {_dgfile::*}:
- set {_mydgline} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- delete {_mydgline.%{_mydgline}%list::*}
- clear {_mydgstop.%{_mydgline}%}
- set {_mydgline.%{_mydgline}%list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- if {_mydgline.%{_mydgline}%list::1} is set:
- set {_mydg_areax_x%{_mydgline}%} to {副本名::%{_mydgline}%::mydg_area_x}
- set {_mydg_areax_y%{_mydgline}%} to {副本名::%{_mydgline}%::mydg_area_y}
- loop all players:
- if loop-player is within {_mydg_areax_x%{_mydgline}%} to {_mydg_areax_y%{_mydgline}%}:
- set {_mydgstop.%{_mydgline}%} to 1
- else:
- set {_mydgstop.%{_mydgline}%} to 1
- if {_mydgstop.%{_mydgline}%} isn't set:
- set {_副本.%{_mydgline}%} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- execute console command "/mydg go %{_副本.%{_mydgline}%}% %{_mydgline.%{_mydgline}%list::1}%"
- else:
- send "{@tag} &c你已排隊其它副本了" to {_mydgjoin.%arg-3%}
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- wait 10 second
- delete {mydg.CD.%arg-3%}
- if arg-1 is "go":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- set {_people.%arg-2%} to 1
- send "&c%loop-player%"
- if {_people.%arg-2%} is set:
- send "{@tag} 有玩家正在進行副本"
- stop trigger
- set {_arg-3} to arg-3 parsed as player
- set {_mydgline.list::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%arg-3%.yml"
- loop {_mydgline.list::*}:
- set {_lvcheck} to single value "玩家等級" get of "plugins/players/%loop-value%.yml"
- set {_lvcheck} to {_lvcheck} parsed as number
- set {副本名::%arg-2%::lv} to {副本名::%arg-2%::lv} parsed as number
- set {副本名::%arg-2%::lvh} to {副本名::%arg-2%::lvh} parsed as number
- if {_lvcheck} < {副本名::%arg-2%::lv}:
- send "{@tag} &f%loop-value%&c等級不到&f%{副本名::%arg-2%::lv}%&c以上" to {_arg-3}
- set {_nocheck} to 1
- if {_lvcheck} > {副本名::%arg-2%::lvh}:
- send "{@tag} &f%loop-value%&c等級超過&f%{副本名::%arg-2%::lvh}%&c" to {_arg-3}
- set {_nocheck} to 1
- if {_nocheck} is set:
- execute console command "/mydg leave %arg-2% %arg-3%"
- stop trigger
- set {_linecheck} to 0
- loop {_mydgline.list::*}:
- increase {_linecheck} by 1
- set {_linecheck} to {_linecheck} parsed as number
- set {副本名::%arg-2%::party} to {副本名::%arg-2%::party} parsed as number
- set {副本名::%arg-2%::partyh} to {副本名::%arg-2%::partyh} parsed as number
- if {_linecheck} < {副本名::%arg-2%::party}:
- send "{@tag} &c隊伍低於%{副本名::%arg-2%::party}%人" to {_arg-3}
- set {_nocheck1} to 1
- if {_linecheck} > {副本名::%arg-2%::partyh}:
- send "{@tag} &c隊伍高於%{副本名::%arg-2%::partyh}%人" to {_arg-3}
- set {_nocheck1} to 1
- if {_nocheck1} is set:
- execute console command "/mydg leave %arg-2% %arg-3%"
- stop trigger
- set {_itemcheck} to arg-3 parsed as player
- loop items in {_itemcheck}'s inventory:
- if name of loop-item contains "%{副本名::%arg-2%::item}%":
- set {_yes} to 1
- set {_mydgitem} to loop-item
- remove 1 of {_mydgitem} from {_itemcheck}'s inventory
- stop loop
- if {副本名::%arg-2%::item} is "無":
- set {_yes} to 1
- if {_yes} is 1:
- set {_mydgtime} to arg-3 parsed as player
- remove bossbar "%arg-2%"
- create bossbar title "&b開始副本!!!" and id "%arg-2%" for {_mydgtime}
- loop all players:
- send "&a[&c公告&a] &f%arg-3% &b隊伍開始攻略了 &f%arg-2% 副本 &b我們祝福他們吧!" to loop-player
- loop {_mydgline.list::*}:
- set {_loopvalue} to loop-value parsed as player
- add bossbar "%arg-2%" for {_loopvalue}
- loop {_mydgline.list::*}:
- set {_tp} to loop-value parsed as player
- teleport {_tp} to {副本名::%arg-2%::player_spawn}
- set "進行中副本" to "%arg-2%" in yaml file "plugins/MithicParty/%{_tp}%.yml"
- run {_tp} command "/mydg kill %arg-2%" as op
- loop {_mydgline.list::*}:
- set {_mydgtp} to loop-value parsed as player
- send {_mydgtp} title "&a&l進入副本 %arg-2% " with subtitle "&7請在 &b%{副本名::%arg-2%::player_time}% &7秒內破關" for 8 seconds
- wait 8 second
- loop {_mydgline.list::*}:
- set {_mydgtp} to loop-value parsed as player
- send {_mydgtp} title "&a&l五秒後開始放怪(≧▽≦) " with subtitle "&7小心別死喔づ(・ω・)づ" for 1 seconds
- wait 1 second
- loop {_mydgline.list::*}:
- set {_mydgtp} to loop-value parsed as player
- send {_mydgtp} title "&a&l4" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to {_mydgtp} with volume 10 and pitch 3
- wait 1 second
- loop {_mydgline.list::*}:
- set {_mydgtp} to loop-value parsed as player
- send {_mydgtp} title "&a&l3" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to {_mydgtp} with volume 10 and pitch 4
- wait 1 second
- loop {_mydgline.list::*}:
- set {_mydgtp} to loop-value parsed as player
- send {_mydgtp} title "&a&l2" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to {_mydgtp} with volume 10 and pitch 5
- wait 1 second
- loop {_mydgline.list::*}:
- set {_mydgtp} to loop-value parsed as player
- send {_mydgtp} title "&a&l1" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to {_mydgtp} with volume 10 and pitch 6
- wait 1 second
- loop {_mydgline.list::*}:
- set {_mydgtp} to loop-value parsed as player
- send {_mydgtp} title "&e&l副本開始!!" with subtitle "" for 1 seconds
- play sound "ENTITY_FIREWORK_LAUNCH" to {_mydgtp} with volume 20 and pitch 1
- play sound "ENTITY_ENDERDRAGON_FIREBALL_EXPLODE" to {_mydgtp} with volume 20 and pitch 1
- if {副本名::%arg-2%::mode} is "一般放怪":
- run {_mydgtp} command "/mydg start %arg-2%" as op
- set bossbar "%arg-2%" color to blue
- edit bossbar "%arg-2%" style to segmented 12
- set {_剩餘時間} to {副本名::%arg-2%::player_time}
- set bossbar "%arg-2%" progress to {_剩餘時間} / {副本名::%arg-2%::player_time}
- set {_總訊息::*} to "&a離開請使用&d/mydg quit"
- add "&7如果中途離開隊伍或離開伺服將會踢出副本" to {_總訊息::*}
- add "&e時效到期將踢出副本" to {_總訊息::*}
- set {_時間} to 5
- set {_時間.1} to 0
- loop {副本名::%arg-2%::player_time} times:
- clear {_time::*}
- set {_time::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%arg-2%.yml"
- if {_time::1} isn't set:
- set {_剩餘時間} to 0
- remove bossbar "%arg-2%"
- stop loop
- wait 1 second
- clear {_yes}
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- set {_yes} to 1
- if {_yes} isn't set:
- set {_剩餘時間} to 0
- remove bossbar "%arg-2%"
- stop loop
- increase {_時間} by 1
- reduce {_剩餘時間} by 1
- set bossbar "%arg-2%" progress to {_剩餘時間} / {副本名::%arg-2%::player_time} * 100
- if {_時間} > 5:
- increase {_時間.1} by 1
- if {_時間.1} > 3:
- set {_時間.1} to 1
- set {_訊息} to {_總訊息::%{_時間.1}%}
- set {_時間} to 0
- set bossbar "%arg-2%" title to "&c剩餘時間: &b%{_剩餘時間}% %{_訊息}%"
- if {_剩餘時間} < {副本名::%arg-2%::player_time} * 6 / 10 :
- set bossbar "%arg-2%" color to yellow
- if {_剩餘時間} < {副本名::%arg-2%::player_time} * 3 / 10:
- set bossbar "%arg-2%" color to red
- if {_剩餘時間} <= 0:
- remove bossbar "%arg-2%"
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- execute loop-player command "/mydg quit"
- stop loop
- if {副本名::%arg-2%::mode} is "波數放怪":
- set bossbar "%arg-2%" color to blue
- edit bossbar "%arg-2%" style to segmented 12
- set {_player} to "%arg-3%" parsed as number
- send "%{_剩餘時間}% / %{副本名::%arg-2%::player_time}%" to {_player}
- set {_剩餘時間} to {副本名::%arg-2%::player_time}
- set bossbar "%arg-2%" progress to {_剩餘時間} / {副本名::%arg-2%::player_time}
- set {_總訊息::*} to "&a離開請使用&d/mydg quit"
- add "&7如果中途離開隊伍或離開伺服將會踢出副本" to {_總訊息::*}
- add "&e時效到期將踢出副本" to {_總訊息::*}
- set {_時間} to 5
- set {_時間.1} to 0
- set {_波數} to 1
- run {_mydgtp} command "/mydg start2 %arg-2% %{_波數}%" as op
- loop {副本名::%arg-2%::player_time} times:
- clear {_time::*}
- set {_time::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%arg-2%.yml"
- if {_time::1} isn't set:
- set {_剩餘時間} to 0
- remove bossbar "%arg-2%"
- stop loop
- clear {_checkplayer::*}
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- add loop-player to {_checkplayer::*}
- wait 1 second
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- set {_yes} to 1
- if {_yes} isn't set:
- set {_剩餘時間} to 0
- remove bossbar "%arg-2%"
- stop loop
- clear {_no}
- if {_yes.ok} isn't set:
- loop all entities:
- if loop-entity isn't a player or a dropped item:
- if loop-entities is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- increase {_no} by 1
- if metadata value "怪物特性" of loop-entity is "保護中":
- increase {_no} by -1
- else:
- set {_no} to 1
- if {_no} <= 0:
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&7[&e成功清空怪物&7]" with subtitle "" for 1 seconds
- increase {_波數} by 1
- clear {_怪物::*}
- reduce {_剩餘時間} by 1
- set {_怪物::*} to skutil yaml nodes "副本怪物.%{_波數}%" from file "plugins/mythicdg/%arg-2%.yml"
- if {_怪物::*} is set:
- clear {_checkplayer::*}
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&e10秒後將有下一波" with subtitle "" for 1 seconds
- add loop-player to {_checkplayer::*}
- wait 5 second
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&a&l5" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to loop-player with volume 10 and pitch 3
- wait 1 second
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&a&l4" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to loop-player with volume 10 and pitch 4
- wait 1 second
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&a&l3" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to loop-player with volume 10 and pitch 5
- wait 1 second
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&a&l2" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to loop-player with volume 10 and pitch 6
- wait 1 second
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&a&l1" with subtitle "" for 1 seconds
- play sound "BLOCK_NOTE_PLING" to loop-player with volume 10 and pitch 7
- wait 1 second
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- send loop-player title "&e下一波攻擊開始" with subtitle "" for 1 seconds
- play sound "ENTITY_ENDERDRAGON_FIREBALL_EXPLODE" to loop-player with volume 20 and pitch 1
- clear {_checkok}
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- if "%{_checkplayer::*}%" contains "%loop-player%":
- set {_checkok} to 1
- if {_checkok} isn't set:
- stop loop
- run {_mydgtp} command "/mydg start2 %arg-2% %{_波數}%" as op
- clear {_cmd::*}
- set {_cmd::*} to skutil yaml list "副本怪物.波數.%{_波數} - 1%" from file "plugins/mythicdg/%arg-2%.yml"
- if {_cmd::*} is set:
- loop {_cmd::*}:
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- set {_cmd.%loop-player%} to "%loop-value-2%"
- replace all "<player>" with "%loop-player%" in {_cmd.%loop-player%}
- execute console command "%{_cmd.%loop-player%}%"
- clear {_no}
- else:
- clear {_no}
- set {_yes.ok} to 1
- set {_cmd::*} to skutil yaml list "副本怪物.波數.%{_波數} - 1%" from file "plugins/mythicdg/%arg-2%.yml"
- if {_cmd::*} is set:
- loop {_cmd::*}:
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- set {_cmd.%loop-player%} to "%loop-value-2%"
- replace all "<player>" with "%loop-player%" in {_cmd.%loop-player%}
- execute console command "%{_cmd.%loop-player%}%"
- else:
- clear {_checkok}
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- if "%{_checkplayer::*}%" contains "%loop-player%":
- set {_checkok} to 1
- if {_checkok} isn't set:
- stop loop
- increase {_時間} by 1
- reduce {_剩餘時間} by 1
- set bossbar "%arg-2%" progress to {_剩餘時間} / {副本名::%arg-2%::player_time} * 100
- if {_時間} > 5:
- increase {_時間.1} by 1
- if {_時間.1} > 3:
- set {_時間.1} to 1
- set {_訊息} to {_總訊息::%{_時間.1}%}
- set {_時間} to 0
- set bossbar "%arg-2%" title to "&c剩餘時間: &b%{_剩餘時間}% %{_訊息}%"
- if {_剩餘時間} < {副本名::%arg-2%::player_time} * 6 / 10 :
- set bossbar "%arg-2%" color to yellow
- if {_剩餘時間} < {副本名::%arg-2%::player_time} * 3 / 10:
- set bossbar "%arg-2%" color to red
- if {_剩餘時間} is 0:
- remove bossbar "%arg-2%"
- loop all players:
- if loop-player is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- execute loop-player command "/mydg quit"
- stop loop
- else:
- send "{@tag} &c你身上無指定物品" to {_itemcheck}
- execute console command "/mydg leave %arg-2% %{_itemcheck}%"
- if arg-1 is "quit":
- if file existance of "plugins/MithicParty/%player%.yml" is true:
- set {_mydgquit} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%name of player%.yml"
- if {副本名::%{_mydgquit}%::rank} is "開啟":
- if {_mydgquit} isn't "無":
- loop all entities:
- if loop-entities is within {副本名::%{_mydgquit}%::mydg_area_x} to {副本名::%{_mydgquit}%::mydg_area_y}:
- if loop-entities isn't name of player or item:
- set {_noclear} to 1
- if {_noclear} isn't set:
- set {_teamleader} to skutil yaml value "隊長" from file "plugins/MithicParty/%name of player%.yml"
- set {_清除時間.check} to name of bossbar "%{_mydgquit}%"
- set {_清除時間.list::*} to uncolored split "%{_清除時間.check}%" at " "
- set {_時間.true} to {_清除時間.list::2} parsed as number
- set {副本名::%{_mydgquit}%::player_time} to {副本名::%{_mydgquit}%::player_time} parsed as number
- set {_通關時間} to {副本名::%{_mydgquit}%::player_time} - {_時間.true}
- set {mydgparty.list1::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%name of player%.yml"
- if {_時間.true} is set:
- loop {mydgparty.list1::*}:
- set {_mydgplayer} to loop-value parsed as player
- send "{@tag} &b成功攻略完副本,攻略時間 &a%{_通關時間}% &b秒" to {_mydgplayer}
- else:
- set {_ok} to 1
- set {_mydgquit.rank1} to skutil yaml value "總排名.1.時間" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_mydgquit.rank2} to skutil yaml value "總排名.2.時間" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_mydgquit.rank3} to skutil yaml value "總排名.3.時間" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_mydgquit.rank4} to skutil yaml value "總排名.4.時間" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_mydgquit.rank5} to skutil yaml value "總排名.5.時間" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_mydgquit.rank1} to {_mydgquit.rank1} parsed as number
- set {_mydgquit.rank2} to {_mydgquit.rank2} parsed as number
- set {_mydgquit.rank3} to {_mydgquit.rank3} parsed as number
- set {_mydgquit.rank4} to {_mydgquit.rank4} parsed as number
- set {_mydgquit.rank5} to {_mydgquit.rank5} parsed as number
- set {mydgquit.rank1.party::*} to skutil yaml list "總排名.1.隊伍" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {mydgquit.rank2.party::*} to skutil yaml list "總排名.2.隊伍" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {mydgquit.rank3.party::*} to skutil yaml list "總排名.3.隊伍" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {mydgquit.rank4.party::*} to skutil yaml list "總排名.4.隊伍" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {mydgquit.rank5.party::*} to skutil yaml list "總排名.5.隊伍" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- if {_ok} isn't set:
- if {_通關時間} > {_mydgquit.rank1}:
- if {_通關時間} > {_mydgquit.rank2}:
- if {_通關時間} > {_mydgquit.rank3}:
- if {_通關時間} > {_mydgquit.rank4}:
- if {_通關時間} > {_mydgquit.rank5}:
- set {_ok} to 1
- else:
- loop all players:
- play sound "ENTITY_ENDERDRAGON_GROWL" to loop-player with volume 1 and pitch 1
- send "&a[&c公告&a] &f%{_teamleader}%隊伍 &a以 &b%{_通關時間}% &a秒攻略完 &f%{_mydgquit}% &a副本 &l&a是全服&1第五名&l&a最快攻略隊伍!!" to loop-player
- delete skutil yaml nodes "總排名.5" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- mydgrank("mydgparty.list1", "%{_通關時間}%", "五", "5", "%{_mydgquit}%")
- else:
- loop all players:
- play sound "ENTITY_ENDERDRAGON_GROWL" to loop-player with volume 1 and pitch 1
- send "&a[&c公告&a] &f%{_teamleader}%隊伍 &a以 &b%{_通關時間}% &a秒攻略完 &f%{_mydgquit}% &a副本 &l&a是全服&9第四名&l&a最快攻略隊伍!!" to loop-player
- delete skutil yaml nodes "總排名.4" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.5" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- mydgrank("mydgparty.list1", "%{_通關時間}%", "四", "4", "%{_mydgquit}%")
- mydgrank("mydgquit.rank4.party", "%{_mydgquit.rank4}%", "五", "5", "%{_mydgquit}%")
- else:
- loop all players:
- play sound "ENTITY_ENDERDRAGON_GROWL" to loop-player with volume 1 and pitch 1
- send "&a[&c公告&a] &f%{_teamleader}%隊伍 &a以 &b%{_通關時間}% &a秒攻略完 &f%{_mydgquit}% &a副本 &l&a是全服&l&3第三名&l&a最快攻略隊伍!!" to loop-player
- delete skutil yaml nodes "總排名.3" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.4" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.5" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- mydgrank("mydgparty.list1", "%{_通關時間}%", "三", "3", "%{_mydgquit}%")
- mydgrank("mydgquit.rank3.party", "%{_mydgquit.rank3}%", "四", "4", "%{_mydgquit}%")
- mydgrank("mydgquit.rank4.party", "%{_mydgquit.rank4}%", "五", "5", "%{_mydgquit}%")
- else:
- loop all players:
- play sound "ENTITY_ENDERDRAGON_GROWL" to loop-player with volume 1 and pitch 1
- send "&a[&c公告&a] &f%{_teamleader}%隊伍 &a以 &b%{_通關時間}% &a秒攻略完 &f%{_mydgquit}% &a副本 &l&e是全服&l&9第二名&l&a最快攻略隊伍!!" to loop-player
- delete skutil yaml nodes "總排名.2" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.3" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.4" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.5" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- mydgrank("mydgparty.list1", "%{_通關時間}%", "二", "2", "%{_mydgquit}%")
- mydgrank("mydgquit.rank2.party", "%{_mydgquit.rank2}%", "三", "3", "%{_mydgquit}%")
- mydgrank("mydgquit.rank3.party", "%{_mydgquit.rank3}%", "四", "4", "%{_mydgquit}%")
- mydgrank("mydgquit.rank4.party", "%{_mydgquit.rank4}%", "五", "5", "%{_mydgquit}%")
- else:
- loop all players:
- play sound "ENTITY_ENDERDRAGON_GROWL" to loop-player with volume 1 and pitch 1
- send "&a[&c公告&a] &f%{_teamleader}%隊伍 &a以 &b%{_通關時間}% &a秒攻略完 &f%{_mydgquit}% &a副本 &l&a是全服&l&6第一名&l&a最快攻略隊伍!!" to loop-player
- delete skutil yaml nodes "總排名.1" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.2" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.3" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.4" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- delete skutil yaml nodes "總排名.5" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- mydgrank("mydgparty.list1", "%{_通關時間}%", "一", "1", "%{_mydgquit}%")
- mydgrank("mydgquit.rank1.party", "%{_mydgquit.rank1}%", "二", "2", "%{_mydgquit}%")
- mydgrank("mydgquit.rank2.party", "%{_mydgquit.rank2}%", "三", "3", "%{_mydgquit}%")
- mydgrank("mydgquit.rank3.party", "%{_mydgquit.rank3}%", "四", "4", "%{_mydgquit}%")
- mydgrank("mydgquit.rank4.party", "%{_mydgquit.rank4}%", "五", "5", "%{_mydgquit}%")
- if file existance of "plugins/MithicParty/%player%.yml" is false:
- set {_dgfilejoin::*} to files in "plugins/mythicdg"
- loop {_dgfilejoin::*}:
- set {_mydgquit} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- loop all players:
- if loop-player is within {副本名::%{_mydgquit}%::mydg_area_x} to {副本名::%{_mydgquit}%::mydg_area_y}:
- if loop-player is player:
- add 1 to {_quit.1}
- if {_quit.1} < 2:
- set {_quitlist.1%{_mydgquit}%::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- if {_quitlist.1%{_mydgquit}%::*} is set:
- remove {_quitlist.1%{_mydgquit}%::1} from skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- remove bossbar "%{_mydgquit}%"
- teleport player to {副本名::%{_mydgquit}%::respawn}
- stop loop
- else:
- teleport player to {副本名::%{_mydgquit}%::respawn}
- stop loop
- stop trigger
- set {_mydgquit} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%name of player%.yml"
- if {_mydgquit} isn't "無":
- set {_mydgline.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_mydgleader} to skutil yaml value "隊長" from file "plugins/MithicParty/%name of player%.yml"
- set {_mydgparty.list1::*} to skutil yaml list "隊員" from file "plugins/MithicParty/%name of player%.yml"
- if {_mydgline.list::1} is {_mydgleader}:
- send "{@tag} &f你離開副本了"
- loop all players:
- if loop-player is within {副本名::%{_mydgquit}%::mydg_area_x} to {副本名::%{_mydgquit}%::mydg_area_y}:
- set {_kill} to 1
- if {_kill} isn't set:
- run player command "/mydg kill %{_mydgquit}%" as op
- teleport player to {副本名::%{_mydgquit}%::respawn}
- if {_mydgleader} is name of player:
- loop all players:
- if loop-player is within {副本名::%{_mydgquit}%::mydg_area_x} to {副本名::%{_mydgquit}%::mydg_area_y}:
- set {_no1} to 1
- if {_no1} isn't set:
- remove bossbar "%{_mydgquit}%"
- else:
- remove player bossbar "%{_mydgquit}%"
- set skutil yaml value "進行中副本" from file "plugins/MithicParty/%player%.yml" to "無"
- loop {_mydgparty.list1::*}:
- set {_mydgcheckplayer} to loop-value parsed as player
- if {_mydgcheckplayer} is within {副本名::%{_mydgquit}%::mydg_area_x} to {副本名::%{_mydgquit}%::mydg_area_y}:
- if {_mydgcheckplayer} isn't name of player:
- set {_no} to 1
- if {_no} isn't set:
- remove name of player from skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_quit} to 1
- if {_quit} is set:
- set {_dgfile::*} to files in "plugins/mythicdg"
- loop {_dgfile::*}:
- set {_ssss} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_mydgline1.%{_ssss}%list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%{_ssss}%.yml"
- clear {_mydgstop%{_ssss}%}
- if {_mydgline1.%{_ssss}%list::1} is set:
- loop all players:
- if loop-player is within {副本名::%{_ssss}%::mydg_area_x} to {副本名::%{_ssss}%::mydg_area_y}:
- set {_mydgstop%{_ssss}%} to 1
- stop loop
- else:
- set {_mydgstop%{_ssss}%} to 1
- if {_mydgstop%{_ssss}%} isn't set:
- set {_副本.%{_ssss}%} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- remove bossbar "%{_副本.%{_ssss2}%}%"
- execute console command "/mydg go %{_副本.%{_ssss}%}% %{_mydgline1.%{_ssss}%list::1}%"
- else:
- set skutil yaml value "進行中副本" from file "plugins/MithicParty/%player%.yml" to "無"
- loop all players:
- if loop-player is within {副本名::%{_mydgquit}%::mydg_area_x} to {副本名::%{_mydgquit}%::mydg_area_y}:
- set {_no1} to 1
- if {_no1} isn't set:
- remove bossbar "%{_mydgquit}%"
- else:
- remove player bossbar "%{_mydgquit}%"
- loop {_mydgparty.list1::*}:
- set {_mydgcheckplayer} to loop-value parsed as player
- if {_mydgcheckplayer} is within {副本名::%{_mydgquit}%::mydg_area_x} to {副本名::%{_mydgquit}%::mydg_area_y}:
- set {_no3} to 1
- if {_no3} isn't set:
- remove {_mydgleader} from skutil yaml list "排隊中" from file "plugins/mythicdg/%{_mydgquit}%.yml"
- set {_quit1} to 1
- if {_quit1} is set:
- set {_dgfile::*} to files in "plugins/mythicdg"
- loop {_dgfile::*}:
- set {_ssss2} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_mydgline1.%{_ssss2}%list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- clear {_mydgstop.%{_ssss2}%}
- if {_mydgline1.%{_ssss2}%list::1} is set:
- loop all players:
- if loop-player is within {副本名::%{_ssss2}%::mydg_area_x} to {副本名::%{_ssss2}%::mydg_area_y}:
- set {_mydgstop.%{_ssss2}%} to 1
- stop loop
- else:
- set {_mydgstop.%{_ssss2}%} to 1
- if {_mydgstop.%{_ssss2}%} isn't set:
- set {_副本.%{_ssss2}%} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- remove bossbar "%{_副本.%{_ssss2}%}%"
- execute console command "/mydg go %{_副本.%{_ssss2}%}% %{_mydgline1.%{_ssss2}%list::1}%"
- else:
- send "{@tag} &c你尚未進入副本"
- else:
- send "{@tag} &c你尚未進入副本"
- if arg-1 is "leave":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- loop all players:
- if loop-player is arg-3:
- set {_mydg.check} to 1
- stop loop
- if {_mydg.check} is set:
- if {副本名::%arg-2%::mydg_name} = arg-2:
- set {_mydg.checkdg.%arg-3%} to skutil yaml value "進行中副本" from file "plugins/MithicParty/%arg-3%.yml"
- set {_mydgjoin.%arg-3%} to arg-3 parsed as player
- if {_mydg.checkdg.%arg-3%} isn't "無":
- remove arg-3 from skutil yaml list "排隊中" from file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &c你離開 副本:%{_mydg.checkdg.%arg-3%}% 排隊了" to {_mydgjoin.%arg-3%}
- set skutil yaml value "進行中副本" from file "plugins/MithicParty/%arg-3%.yml" to "無"
- set {_dgfile::*} to files in "plugins/mythicdg"
- loop {_dgfile::*}:
- set {_ssss1} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- set {_mydgline.%{_ssss1}%list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%loop-value%"
- if {_mydgline.%{_ssss1}%list::1} is set:
- clear {_mydgstop.%{_ssss1}%}
- loop all players:
- if loop-player is within {副本名::%{_ssss1}%::mydg_area_x} to {副本名::%{_ssss1}%::mydg_area_y}:
- set {_mydgstop.%{_ssss1}%} to 1
- stop loop
- else:
- set {_mydgstop.%{_ssss1}%} to 1
- if {_mydgstop.%{_ssss1}%} isn't set:
- set {_副本.%{_ssss1}%} to skutil yaml value "副本名" from file "plugins/mythicdg/%loop-value%"
- execute console command "/mydg go %{_副本.%{_ssss1}%}% %{_mydgline.%{_ssss1}%list::1}%"
- else:
- send "{@tag} &c你尚未排隊其它副本了" to {_mydgjoin.%arg-3%}
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- else:
- send "{@tag} &c此人尚未在線上"
- if arg-1 is "info":
- if arg-2 is set:
- if {副本名::%arg-2%::mydg_name} = arg-2:
- open chest with 6 row named "&d副本介面" to player
- set {_mydgline.%name of player%.list::*} to skutil yaml list "排隊中" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydglinenumber.%name of player%} to 0 #排隊人數
- set {_mydglinenumber1.%name of player%} to 8 #隊長頭顱放置slot點
- loop {_mydgline.%name of player%.list::*}:
- increase {_mydglinenumber.%name of player%} by 1
- increase {_mydglinenumber1.%name of player%} by 1
- set {_mydglineguiname.%name of player%.%{_mydglinenumber.%name of player%}%} to loop-value parsed as offlineplayer #隊長名
- set {_mydglinegui.%name of player%.%{_mydglinenumber.%name of player%}%} to skull of {_mydglineguiname.%name of player%.%{_mydglinenumber.%name of player%}%} named "&b排隊中&e%loop-value%"
- if {_mydglinenumber1.%name of player%} = 9:
- set {_mydglinegui.%name of player%.%{_mydglinenumber.%name of player%}%} to skull of {_mydglineguiname.%name of player%.%{_mydglinenumber.%name of player%}%} named "&b攻略中&e%loop-value%"
- make gui slot {_mydglinenumber1.%name of player%} of player with {_mydglinegui.%name of player%.%{_mydglinenumber.%name of player%}%}
- set {_mydglinenumber1.%name of player%} to -1
- loop 9 times:
- increase {_mydglinenumber1.%name of player%} by 1
- set {_mydglineguipane.%name of player%.%{_mypartycreatenumber1.%name of player%}%} to green stained glass pane named ""
- make gui slot {_mydglinenumber1.%name of player%} of player with {_mydglineguipane.%name of player%.%{_mypartycreatenumber1.%name of player%}%}
- if {副本名::%arg-2%::rank} is "開啟":
- set {_mydg.rank1::*} to skutil yaml list "總排名.1.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank2::*} to skutil yaml list "總排名.2.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank3::*} to skutil yaml list "總排名.3.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank4::*} to skutil yaml list "總排名.4.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank5::*} to skutil yaml list "總排名.5.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank1fact} to skutil yaml value "總排名.1.真實排名" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank2fact} to skutil yaml value "總排名.2.真實排名" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank3fact} to skutil yaml value "總排名.3.真實排名" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank4fact} to skutil yaml value "總排名.4.真實排名" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank5fact} to skutil yaml value "總排名.5.真實排名" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank1time} to skutil yaml value "總排名.1.時間" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank2time} to skutil yaml value "總排名.2.時間" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank3time} to skutil yaml value "總排名.3.時間" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank4time} to skutil yaml value "總排名.4.時間" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank5time} to skutil yaml value "總排名.5.時間" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mydg.rank1time} to {_mydg.rank1time} parsed as number
- set {_mydg.rank2time} to {_mydg.rank2time} parsed as number
- set {_mydg.rank3time} to {_mydg.rank3time} parsed as number
- set {_mydg.rank4time} to {_mydg.rank4time} parsed as number
- set {_mydg.rank5time} to {_mydg.rank5time} parsed as number
- set {_mydg.ranktext} to gold block named "&e最快攻略副本排名"
- make gui slot 1 of player with {_mydg.ranktext}
- make gui slot 7 of player with {_mydg.ranktext}
- set {_mydg.rank1.leader} to {_mydg.rank1::1} parsed as offlineplayer
- set {_mydg.rank1.slot} to skull of {_mydg.rank1.leader} named "&6第%{_mydg.rank1fact}%名 &b%{_mydg.rank1time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank1::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank1.slot} to "&b%loop-value%"
- make gui slot 2 of player with {_mydg.rank1.slot}
- set {_mydg.rank2.leader} to {_mydg.rank2::1} parsed as offlineplayer
- set {_mydg.rank2.slot} to skull of {_mydg.rank2.leader} named "&6第%{_mydg.rank2fact}%名 &b%{_mydg.rank2time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank2::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank2.slot} to "&b%loop-value%"
- make gui slot 3 of player with {_mydg.rank2.slot}
- set {_mydg.rank3.leader} to {_mydg.rank3::1} parsed as offlineplayer
- set {_mydg.rank3.slot} to skull of {_mydg.rank3.leader} named "&6第%{_mydg.rank3fact}%名 &b%{_mydg.rank3time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank3::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank3.slot} to "&b%loop-value%"
- make gui slot 4 of player with {_mydg.rank3.slot}
- set {_mydg.rank4.leader} to {_mydg.rank4::1} parsed as offlineplayer
- set {_mydg.rank4.slot} to skull of {_mydg.rank4.leader} named "&6第%{_mydg.rank4fact}%名 &b%{_mydg.rank4time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank4::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank4.slot} to "&b%loop-value%"
- make gui slot 5 of player with {_mydg.rank4.slot}
- set {_mydg.rank5.leader} to {_mydg.rank5::1} parsed as offlineplayer
- set {_mydg.rank5.slot} to skull of {_mydg.rank5.leader} named "&6第%{_mydg.rank5fact}%名 &b%{_mydg.rank5time}% &a秒"
- set {_counter} to 0
- loop {_mydg.rank5::*}:
- increase {_counter} by 1
- set line {_counter} of lore of {_mydg.rank5.slot} to "&b%loop-value%"
- make gui slot 6 of player with {_mydg.rank5.slot}
- else:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c/mydg info <副本名>"
- if arg-1 is "areax":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} = arg-2:
- send "{@tag} {@error2}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- else if {mydg_stage} is 0:
- send "{@tag} {@error0}"
- send "{@tag} &c請繼續使用/mydg areay <副本名>"
- stop trigger
- else if {mydg_stage} isn't set:
- set {副本名::%arg-2%::mydg_area_x} to location of location of player
- send "{@tag} &f已設置此區域頂點"
- send "{@tag} &c請在120秒內使用/mydg areay <副本名>設置區域的對角線"
- set {mydg_stage} to 0
- wait 120 second
- if {mydg_stage} = 0:
- clear {mydg_stage}
- clear {副本名::%arg-2%::mydg_area_x}
- send "{@tag} &c已取消區域設置"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg areax <副本名>"
- stop trigger
- if arg-1 is "areay":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {mydg_stage} = 0:
- if {副本名::%arg-2%::mydg_area_x} isn't set:
- send "{@tag} {@error3}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-2%::mydg_area_y} is set:
- send "{@tag} {@error2}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- set {副本名::%arg-2%::mydg_area_y} to location of player
- set {副本名::%arg-2%::player_spawn} to location of player
- set {副本名::%arg-2%::player_time} to 600
- set {副本名::%arg-2%::mydg_name} to arg-2
- set {副本名::%arg-2%::lv} to 0
- set {副本名::%arg-2%::lvh} to 100
- set {副本名::%arg-2%::item} to "無"
- set {副本名::%arg-2%::respawn} to location of player
- set {副本名::%arg-2%::party} to 2
- set {副本名::%arg-2%::partyh} to 6
- set {副本名::%arg-2%::mode} to "一般放怪"
- set {副本名::%arg-2%::rank} to "關閉"
- clear {mydg_stage}
- send "{@tag} &f已設置此區域頂點"
- send "{@tag} &f預設此地為玩家重生點"
- send "{@tag} &f預設時間為600秒"
- send "{@tag} &f預設副本需求等級為0"
- send "{@tag} &f預設副本最高需求等級為100"
- send "{@tag} &f預設副本物品需求為無"
- send "{@tag} &f預設此地為玩家離開重生點"
- send "{@tag} &f預設副本隊伍人數上限為6"
- send "{@tag} &f預設副本隊伍人數下限為2"
- send "{@tag} &f預設排名為關閉"
- send "{@tag} &f預設模式為1"
- if file existance of "plugins/mythicdg/%arg-2%.yml" is false:
- create file "plugins/mythicdg/%arg-2%.yml"
- set "副本名" to "%{副本名::%arg-2%::mydg_name}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本頂點x" to "%{副本名::%arg-2%::mydg_area_x}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本頂點y" to "%{副本名::%arg-2%::mydg_area_y}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本重生點" to "%{副本名::%arg-2%::player_spawn}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本時間" to "%{副本名::%arg-2%::player_time}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本需求等級" to "%{副本名::%arg-2%::lv}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本最高需求等級" to "%{副本名::%arg-2%::lvh}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本需求物品" to "%{副本名::%arg-2%::item}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "重生地點" to "%{副本名::%arg-2%::respawn}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "隊伍人數下限" to "%{副本名::%arg-2%::party}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "隊伍人數上限" to "%{副本名::%arg-2%::partyh}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "排名" to "%{副本名::%arg-2%::rank}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "模式" to "%{副本名::%arg-2%::mode}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- set "副本保護對象" to "無" in yaml file "plugins/mythicdg/%arg-2%.yml"
- else:
- send "{@tag} {@error0}"
- send "請先設定/mydg areax <副本名>"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg areay <副本名>"
- stop trigger
- if arg-1 is "spawn":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- else:
- set {副本名::%arg-2%::player_spawn} to location of location of player
- set "副本重生點" to "%{副本名::%arg-2%::player_spawn}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設定%arg-2%出生點"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg spawn <副本名> <時間(整數)>"
- stop trigger
- if arg-1 is "time":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- else:
- if arg-3 parsed as integer > 0:
- set {副本名::%arg-2%::player_time} to arg-3 parsed as integer
- set "副本時間" to "%{副本名::%arg-2%::player_time}%" in yaml file "plugins/mythicdg/%arg-2%.yml"
- send "{@tag} &f已設定%{副本名::%arg-2%::player_time}%秒為副本攻略時間"
- else:
- send "{@tag} {@error5}"
- send "{@tag} 時間不可為負數或小數喔"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg time <副本名> <時間(整數)>"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg time <副本名> <時間(整數)>"
- stop trigger
- if arg-1 is "delete":
- if arg-2 is "dg":
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-3%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- else:
- send "{@tag} &f已刪除此副本"
- delete file "plugins/mythicdg/%arg-3%.yml"
- clear {副本名::%arg-3%::*}
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <dg> <副本名>"
- stop trigger
- if arg-2 is "mob":
- if arg-3 is set:
- if arg-4 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-3%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-3%::mode} isn't "一般放怪":
- send "{@tag} &c此指令只限制一般放怪"
- stop trigger
- else:
- set {_mydg.mode} to skutil yaml value "模式" from file "plugins/mythicdg/%arg-3%.yml"
- if {_mydg.mode} isn't "一般放怪":
- send "{@tag} &c此指令是給一般模式下使用"
- send "{@tag} &c此副本模式為 %{_mydg.mode}%"
- stop trigger
- if {副本名::%arg-3%::mydg_name} is set:
- set {_nodesmob.delete::*} to skutil yaml nodes with keys "副本怪物" from file "plugins/mythicdg/%arg-3%.yml"
- loop {_nodesmob.delete::*}:
- if loop-value is arg-4:
- set {_mydg.check} to 1
- delete skutil yaml nodes "副本怪物.%arg-4%" from file "plugins/mythicdg/%arg-3%.yml"
- if {_mydg.check} is set:
- send "{@tag} &f已刪除 副本:%arg-3% 怪物編號:%arg-4%"
- else:
- send "{@tag} &c請確認怪物編號是否有打錯"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <mob> <副本名> <怪物編號>"
- stop trigger
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <mob> <副本名> <怪物編號>"
- stop trigger
- if arg-2 is "mob2":
- if arg-3 is set:
- if arg-4 is set:
- if arg-5 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-3%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-3%::mode} isn't "波數放怪":
- send "{@tag} &c此指令只限制波數放怪"
- stop trigger
- set {_nodesmob.delete::*} to skutil yaml nodes "副本怪物.%arg-5%.%arg-4%" from file "plugins/mythicdg/%arg-3%.yml"
- if {_nodesmob.delete::1} is set:
- delete skutil yaml nodes "副本怪物.%arg-5%.%arg-4%" from file "plugins/mythicdg/%arg-3%.yml"
- send "{@tag} &f已刪除 副本:%arg-3% 怪物編號:%arg-4% 波數:%arg-5% 怪物名: %{_nodesmob.delete::1}%"
- else:
- send "{@tag} &c無此怪物"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <mob2> <副本名> <怪物編號> <波數>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <mob2> <副本名> <怪物編號> <波數>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <mob2> <副本名> <怪物編號> <波數>"
- if arg-2 is "cmd":
- if arg-3 is set:
- if arg-4 is set:
- if arg-5 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-3%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-3%::mode} isn't "波數放怪":
- send "{@tag} &c此指令只限制波數放怪"
- stop trigger
- set {_nodesmob.delete::*} to skutil yaml list "副本怪物.波數.%arg-4%" from file "plugins/mythicdg/%arg-3%.yml"
- if {_nodesmob.delete::1} is set:
- remove arg-5 from skutil yaml list "副本怪物.波數.%arg-4%" from file "plugins/mythicdg/%arg-3%.yml"
- send "{@tag} &f已刪除 副本:%arg-3% 指令名:%arg-5% 波數:%arg-4%"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <cmd> <副本名> <波數> <指令>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <cmd> <副本名> <波數> <指令>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <cmd> <副本名> <波數> <指令>"
- else:
- if arg-2 isn't set:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg delete <dg> <副本名>"
- send "{@tag} &c請使用/mydg delete <mob> <副本名> <怪物編號>"
- send "{@tag} &c請使用/mydg delete <mob2> <副本名> <怪物編號> <波數>"
- send "{@tag} &c請使用/mydg delete <cmd> <副本名> <波數> <指令>"
- stop trigger
- if arg-1 is "tp":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- else:
- if arg-3 is "areax":
- send "{@tag} &f正在傳送中"
- teleport player to {副本名::%arg-2%::mydg_area_x}
- else if arg-3 is "areay":
- send "{@tag} &f正在傳送中"
- teleport player to {副本名::%arg-2%::mydg_area_y}
- else if arg-3 is "spawn":
- send "{@tag} &f正在傳送中"
- teleport player to {副本名::%arg-2%::player_spawn}
- else if arg-3 is "mob":
- if arg-4 is set:
- if {副本名::%arg-2%::mode} isn't "一般放怪":
- send "{@tag} &c此指令限制一般放怪"
- stop trigger
- set {_mobtp::*} to skutil yaml nodes "副本怪物.%arg-4%" from file "plugins/mythicdg/%arg-2%.yml"
- if {_mobtp::*} is set:
- set {_mobtploc} to skutil yaml value "副本怪物.%arg-4%.%{_mobtp::1}%" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mobtploc} to location of mydgLoc("%{_mobtploc}%", player's world)
- teleport player to {_mobtploc}
- send "{@tag} &f正在傳送中"
- send "{@tag} &f怪物編號: %arg-4% 怪物名: %{_mobtp::1}%"
- else:
- send "{@tag} &c查無此怪物編號"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg mob <副本名> mob <編號>"
- else if arg-3 is "mob2":
- if arg-4 is set:
- if arg-5 is set:
- if {副本名::%arg-2%::mode} isn't "波數放怪":
- send "{@tag} &c此指令限制波數放怪"
- stop trigger
- set {_mobtp::*} to skutil yaml nodes "副本怪物.%arg-5%.%arg-4%" from file "plugins/mythicdg/%arg-2%.yml"
- if {_mobtp::*} is set:
- set {_mobloc} to skutil yaml value "副本怪物.%arg-5%.%arg-4%.%{_mobtp::1}%" from file "plugins/mythicdg/%arg-2%.yml"
- set {_mobtploc} to location of mydgLoc("%{_mobloc}%", player's world)
- teleport player to {_mobtploc}
- send "{@tag} &f正在傳送中"
- send "{@tag} &f波數: %arg-5% 怪物編號: %arg-4% 怪物名: %{_mobtp::1}%"
- else:
- send "{@tag} &c查無此怪物編號"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg tp <副本名> mob2 <編號> <波數>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg tp <副本名> mob2 <編號> <波數>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg tp <副本名> <areax/areay/spawn/mob/mob2>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg tp <副本名> <areax/areay/spawn/mob>"
- if arg-1 is "mob":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-2%::mode} isn't "一般放怪":
- send "{@tag} &c此指令限制一般放怪模式"
- stop trigger
- else:
- if {副本名::%arg-2%::mydg_mob_number} isn't set:
- set {副本名::%arg-2%::mydg_mob_number} to 0
- increase {副本名::%arg-2%::mydg_mob_number} by 1
- set {_副本名怪物地點} to location of player
- set skutil yaml value "副本怪物.%{副本名::%arg-2%::mydg_mob_number}%.%arg-3%" from file "plugins/mythicdg/%arg-2%.yml" to "%{_副本名怪物地點}%"
- send "{@tag} &f已設置 副本名: %arg-2% 怪物名: %arg-3% 怪物編號: %{副本名::%arg-2%::mydg_mob_number}%"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg mob <副本名> <怪物名>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg mob <副本名> <怪物名>"
- if arg-1 is "cmd":
- if arg-2 is "text":
- if arg-3 is set:
- if arg-4 is set:
- if arg-5 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-3%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-3%::mode} isn't "波數放怪":
- send "{@tag} &c此指令限制波數放怪"
- stop trigger
- else:
- add "%arg-5%" to {副本名::%arg-3%::%arg-4%::cmd::*}
- send "{@tag} &f已添加 副本名: %arg-3% 指令: %arg-5% 波數: %arg-4%"
- add "%arg-5%" to skutil yaml list "副本怪物.波數.%arg-4%" from file "plugins/mythicdg/%arg-3%.yml"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg cmd text <副本名> <波數> <指令>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg cmd text <副本名> <波數> <指令>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg cmd text <副本名> <波數> <指令>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg cmd text <副本名> <波數> <指令>"
- if arg-1 is "mob2":
- if arg-2 is set:
- if arg-3 is set:
- if arg-4 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-2%::mode} isn't "波數放怪":
- send "{@tag} &c此指令限制一般波數放怪"
- stop trigger
- else:
- if {副本名::%arg-2%::%arg-4%::mydg_mob_number} isn't set:
- set {副本名::%arg-2%::%arg-4%::mydg_mob_number} to 0
- increase {副本名::%arg-2%::%arg-4%::mydg_mob_number} by 1
- set {_副本名怪物地點} to location of player
- set skutil yaml value "副本怪物.%arg-4%.%{副本名::%arg-2%::%arg-4%::mydg_mob_number}%.%arg-3%" from file "plugins/mythicdg/%arg-2%.yml" to "%{_副本名怪物地點}%"
- send "{@tag} &f已設置 副本名: %arg-2% 怪物名: %arg-3% 怪物編號: %{副本名::%arg-2%::%arg-4%::mydg_mob_number} % 波數: %arg-4%"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg mob2 <副本名> <怪物名> <波數>"
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg mob2 <副本名> <怪物名> <波數>"
- if arg-1 is "start":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-2%::mode} isn't "一般放怪":
- send "{@tag} &c此指令限制一般放怪模式"
- stop trigger
- else:
- execute console command "/mydg kill %arg-2%"
- wait 1 tick
- set {_nodes::*} to skutil yaml nodes "副本怪物" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodes::*}:
- set {_nodesmob::*} to skutil yaml nodes "副本怪物.%loop-value%" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodesmob::*}:
- set {_nodesmob.spawn} to skutil yaml value "副本怪物.%loop-value-1%.%loop-value-2%" from file "plugins/mythicdg/%arg-2%.yml"
- set {_nodesmob.spawn} to location of mydgLoc("%{_nodesmob.spawn}%", player's world)
- spawn mythicmob "%loop-value-2%" at the mydgLoc("%{_nodesmob.spawn}%", player's world) with level 1
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg start <副本名>"
- if arg-1 is "start2":
- if arg-2 is set:
- if arg-3 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- if {副本名::%arg-2%::mode} isn't "波數放怪":
- send "{@tag} &c此指令限制一般波數放怪"
- stop trigger
- else:
- #execute console command "/mydg kill %arg-2%"
- wait 1 tick
- set {_nodes::*} to skutil yaml nodes "副本怪物.%arg-3%" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodes::*}:
- set {_nodesmob::*} to skutil yaml nodes "副本怪物.%arg-3%.%loop-value%" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodesmob::*}:
- set {_nodesmob.spawn} to skutil yaml value "副本怪物.%arg-3%.%loop-value-1%.%loop-value-2%" from file "plugins/mythicdg/%arg-2%.yml"
- set {_nodesmob.spawn} to location of mydgLoc("%{_nodesmob.spawn}%", player's world)
- spawn mythicmob "%loop-value-2%" at the mydgLoc("%{_nodesmob.spawn}%", player's world) with level 1
- if arg-1 is "kill":
- if arg-2 is set:
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- else:
- loop all players:
- set {_player.kill} to loop-player
- stop loop
- if {副本名::%arg-2%::mode} is "一般放怪":
- set {_nodes::*} to skutil yaml nodes "副本怪物" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodes::*}:
- set {_nodesmob::*} to skutil yaml nodes "副本怪物.%loop-value%" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodesmob::*}:
- set {_nodesmob.spawn} to skutil yaml value "副本怪物.%loop-value-1%.%loop-value-2%" from file "plugins/mythicdg/%arg-2%.yml"
- set {_nodesmob.spawn} to location of mydgLoc("%{_nodesmob.spawn}%", {_player.kill}'s world)
- spawn a armor stand at mydgLoc("%{_nodesmob.spawn}%", {_player.kill}'s world)
- apply invisibility 1 to the last spawned entity for 9999 minutes
- if {副本名::%arg-2%::mode} is "波數放怪":
- set {_nodes::*} to skutil yaml nodes "副本怪物" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodes::*}:
- if loop-value-1 isn't "波數":
- set {_nodes.mob::*} to skutil yaml nodes "副本怪物.%loop-value-1%" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodes.mob::*}:
- set {_nodesmob.1::*} to skutil yaml nodes "副本怪物.%loop-value-1%.%loop-value-2%" from file "plugins/mythicdg/%arg-2%.yml"
- loop {_nodesmob.1::*}:
- set {_nodesmob.2} to skutil yaml value "副本怪物.%loop-value-1%.%loop-value-2%.%loop-value-3%" from file "plugins/mythicdg/%arg-2%.yml"
- set {_nodesmob.spawn} to location of mydgLoc("%{_nodesmob.2}%", {_player.kill}'s world)
- spawn a armor stand at mydgLoc("%{_nodesmob.spawn}%", {_player.kill}'s world)
- apply invisibility 1 to the last spawned entity for 9999 minutes
- wait 1 tick
- loop 3 times:
- loop all entities:
- if loop-entities is within {副本名::%arg-2%::mydg_area_x} to {副本名::%arg-2%::mydg_area_y}:
- if loop-entities isn't a player:
- teleport loop-entities to {_mymobkill}
- kill loop-entity
- if loop-entities is a dropped item:
- delete loop-entity
- else:
- send "{@tag} {@error1}"
- send "{@tag} &c請使用/mydg kill <副本名>"
- if arg-1 is "rank":
- if arg-2 is set:
- if arg-3 is "true":
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- set skutil yaml value "排名" from file "plugins/mythicdg/%arg-2%.yml" to "開啟"
- set {_noderank::*} to skutil yaml list "總排名.1.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- if {_noderank::*} isn't set:
- add "none" to skutil yaml list "總排名.1.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.2.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.3.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.4.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.5.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- set skutil yaml value "總排名.1.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "一"
- set skutil yaml value "總排名.2.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "二"
- set skutil yaml value "總排名.3.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "三"
- set skutil yaml value "總排名.4.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "四"
- set skutil yaml value "總排名.5.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "五"
- set skutil yaml value "總排名.1.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.2.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.3.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.4.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.5.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set {副本名::%arg-2%::rank} to "開啟"
- send "{@tag} &f已更改 %arg-2% 排名開啟"
- if arg-3 is "false":
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- set skutil yaml value "排名" from file "plugins/mythicdg/%arg-2%.yml" to "關閉"
- set {副本名::%arg-2%::rank} to "關閉"
- send "{@tag} &f已更改 %arg-2% 排名關閉"
- if arg-3 is "boom":
- if player doesn't have permission "mydg":
- send "{@tag} &c無法使用此指令"
- stop trigger
- if {副本名::%arg-2%::mydg_name} isn't set:
- send "{@tag} {@error4}"
- send "{@tag} &c請確認副本名是否有打錯"
- stop trigger
- set {_check} to skutil yaml value "排名" from file "plugins/mythicdg/%arg-2%.yml"
- if {_check} is "開啟":
- delete skutil yaml nodes "總排名" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.1.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.2.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.3.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.4.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- add "none" to skutil yaml list "總排名.5.隊伍" from file "plugins/mythicdg/%arg-2%.yml"
- set skutil yaml value "總排名.1.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "一"
- set skutil yaml value "總排名.2.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "二"
- set skutil yaml value "總排名.3.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "三"
- set skutil yaml value "總排名.4.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "四"
- set skutil yaml value "總排名.5.真實排名" from file "plugins/mythicdg/%arg-2%.yml" to "五"
- set skutil yaml value "總排名.1.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.2.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.3.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.4.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- set skutil yaml value "總排名.5.時間" from file "plugins/mythicdg/%arg-2%.yml" to "999999"
- send "{@tag} &f以重置 %arg-2% 排名"
- else:
- send "{@tag} &c請先將排名設為開啟"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement