Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- Title: &6&l公會 &c&l>> &e
- Size: 150
- on command:
- command is "lv" or "lvl"
- wait 1 ticks
- if "%arguments%" don't contain "<none":
- if {公會系統::%arguments%} is set:
- send "&e==========&a%arguments%公會卡&e=========="
- send "{@Title} 公會名: &4&l%{公會系統::%arguments%}% &3&l公會等級: &9&l%floor({公會系統.名稱以及總資產::%{公會系統::%arguments%}%} / 12000)%"
- loop {公會系統::*}:
- if {公會系統::%arguments%} is {公會系統::%loop-index%}:
- if {公會系統.職位::%loop-index%} is "會長":
- set {_會長} to loop-index
- send "{@Title} 公會會長: &a%{_會長}%"
- send "&e==========&a%arguments%的會籍&e=========="
- if player is a op:
- send "{@Title} &f管理員查看: %{公會系統.每日寶箱::%{公會系統::%arguments%}%}%"
- else:
- if {公會系統::%player%} is set:
- send "&e==========&a%player%公會卡&e=========="
- send "{@Title} 公會名: &4&l%{公會系統::%player%}% &3&l公會等級: &9&l%floor({公會系統.名稱以及總資產::%{公會系統::%player%}%} / 12000)%"
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- if {公會系統.職位::%loop-index%} is "會長":
- set {_會長} to loop-index
- send "{@Title} 公會會長: &a%{_會長}% "
- send "&e==========&a%player%的會籍&e=========="
- if player is a op:
- send "{@Title} &f管理員查看: %{公會系統.每日寶箱::%{公會系統::%player%}%}%"
- #on right click on pig:
- # if {公會系統::%player%} is set:
- # set {_會地p.loc} to block at location of {公會系統.會地::%{公會系統::%player%}%}
- # set {_x1.p} to x-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- # set {_x2.p} to x-coordinate of {_會地p.loc} - 15
- # set {_z2.p} to z-coordinate of {_會地p.loc} - 15
- # set {_z1.p} to z-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- # set {_x.p} to x-coordinate of event-location
- # set {_z.p} to z-coordinate of event-location
- # if {_x.p} is smaller than or equal to {_x1.p}:
- # if {_x.p} is more than or equal to {_x2.p}:
- # if {_z.p} is smaller than or equal to {_z1.p}:
- # if {_z.p} is more than or equal to {_z2.p}:
- # drop 1 of pig spawn eggs named "&3&l公會限定 - pig生怪蛋" with lore "&b&l只公能在會世界用||&f注: 座標無限制" at location of clicked entity
- # delete clicked entity
- # stop
- # cancel event
- on right click:
- if name of player's tool contain "公會限定":
- if {公會系統::%player%} isn't set:
- cancel event
- stop
- set {_會地p.loc} to block at location of {公會系統.會地::%{公會系統::%player%}%}
- set {_x1.p} to x-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x2.p} to x-coordinate of {_會地p.loc} - 15
- set {_z2.p} to z-coordinate of {_會地p.loc} - 15
- set {_z1.p} to z-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x.p} to x-coordinate of event-location
- set {_z.p} to z-coordinate of event-location
- if {_x.p} is smaller than or equal to {_x1.p}:
- if {_x.p} is more than or equal to {_x2.p}:
- if {_z.p} is smaller than or equal to {_z1.p}:
- if {_z.p} is more than or equal to {_z2.p}:
- stop
- cancel event
- on right click on sign:
- if line 1 of clicked block is "gshop":
- set line 1 of clicked block to "&9[公會商店(幹部專用)]"
- set line 2 of clicked block to "&a<左鍵換>|<右鍵買>"
- set line 3 of clicked block to "增加會地面積"
- set line 4 of clicked block to "&b價格500經驗值"
- stop
- if line 1 of clicked block contain "公會商店":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長" or "副會長":
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- if "%player's world%" isn't "GUILD":
- send "{@Title} 請在會地世界內建立牌子選單。"
- stop
- if line 2 of clicked block don't contain ">|<右鍵":
- stop
- set line 2 of clicked block to "&9加載中,若卡住請拆掉。"
- if line 3 of clicked block contain "會地面積":
- execute console command "g %player% buy size"
- else if line 3 of clicked block contain "生怪蛋(pig)":
- execute console command "g %player% buy pig"
- else if line 3 of clicked block contain "生怪蛋(cow)":
- execute console command "g %player% buy cow"
- else if line 3 of clicked block contain "生怪蛋(sheep)":
- execute console command "g %player% buy sheep"
- else if line 3 of clicked block contain "生怪蛋(chicken)":
- execute console command "g %player% buy chicken"
- else if line 3 of clicked block contain "生怪蛋(dog)":
- execute console command "g %player% buy wolf"
- else if line 3 of clicked block contain "生怪蛋(cat)":
- execute console command "g %player% buy ocelot"
- wait 4 ticks
- set line 2 of clicked block to "&a<左鍵換>|<右鍵買>"
- else:
- if line 2 of clicked block don't contain "只有公會幹部可以用":
- loop 4 times:
- set line 2 of clicked block to "&c只有公會幹部可以用 "
- wait 4 ticks
- set line 2 of clicked block to "&c 只有公會幹部可以用"
- wait 3 ticks
- set line 2 of clicked block to "&a<左鍵換>|<右鍵買>"
- stop
- on left click on sign:
- if line 1 of clicked block contain "公會商店":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長" or "副會長":
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- if "%player's world%" isn't "GUILD":
- send "{@Title} 請在會地世界內建立牌子選單。"
- stop
- if line 2 of clicked block don't contain ">|<右鍵":
- stop
- set line 2 of clicked block to "&9加載中,若卡住請拆掉。"
- wait 2 ticks
- set line 4 of clicked block to "&9<< Loading >>"
- wait 4 ticks
- if line 3 of clicked block contain "會地面積":
- set line 3 of clicked block to "生怪蛋(pig)"
- set line 4 of clicked block to "&b價格800經驗值"
- else if line 3 of clicked block contain "生怪蛋(pig)":
- set line 3 of clicked block to "生怪蛋(cow)"
- set line 4 of clicked block to "&b價格800經驗值"
- else if line 3 of clicked block contain "生怪蛋(cow)":
- set line 3 of clicked block to "生怪蛋(sheep)"
- set line 4 of clicked block to "&b價格800經驗值"
- else if line 3 of clicked block contain "生怪蛋(sheep)":
- set line 3 of clicked block to "生怪蛋(chicken)"
- set line 4 of clicked block to "&b價格800經驗值"
- else if line 3 of clicked block contain "生怪蛋(chicken)":
- set line 3 of clicked block to "生怪蛋(dog)"
- set line 4 of clicked block to "&b價格5000經驗值"
- else if line 3 of clicked block contain "生怪蛋(dog)":
- set line 3 of clicked block to "生怪蛋(cat)"
- set line 4 of clicked block to "&b價格5000經驗值"
- else if line 3 of clicked block contain "生怪蛋(cat)":
- set line 3 of clicked block to "增加會地面積"
- set line 4 of clicked block to "&b價格500經驗值"
- set line 2 of clicked block to "&a<左鍵換>|<右鍵買>"
- else:
- if line 2 of clicked block don't contain "只有公會幹部可以用":
- loop 4 times:
- set line 2 of clicked block to "&c只有公會幹部可以用 "
- wait 4 ticks
- set line 2 of clicked block to "&c 只有公會幹部可以用"
- wait 3 ticks
- set line 2 of clicked block to "&a<左鍵換>|<右鍵買>"
- stop
- command /guild [<player>] [<text>] [<player>] [<text>]:
- aliases: /g
- trigger:
- set {_time} to "%day%"
- set {_特惠} to ""
- set {_特惠item} to 0
- if {_time} contain "22":
- set {_特惠} to "(加開特惠買1送3)"
- set {_特惠item} to 3
- if {公會系統.職位::%player%} is "會長" or "副會長":
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- if arg-2 is "setbedrock":
- set {_購買過程} to location of player
- teleport player to block at location of {公會系統.會地::%{公會系統::%player%}%}
- set {公會系統.會地.等級::%{公會系統::%player%}%} to 1 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_會地.loc} to block at location of {公會系統.會地::%{公會系統::%player%}%}
- set {_x1} to x-coordinate of {_會地.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x2} to x-coordinate of {_會地.loc} - 15
- set {_z2} to z-coordinate of {_會地.loc} - 15
- set {_z1} to z-coordinate of {_會地.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_y} to y-coordinate of {_會地.loc} - 9
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x2}, {_y}, {_z1}):
- if loop-block is air:
- set loop-block to bedrock
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x1}, {_y}, {_z2}):
- if loop-block is air:
- set loop-block to bedrock
- teleport player to location of {_購買過程}
- stop
- if executor is console:
- if {公會系統.職位::%arg-1%} is "會長" or "副會長":
- if {公會系統.會地::%{公會系統::%arg-1%}%} is set:
- if arg-2 is "buy":
- if arg-4 is "pig":
- if {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%} is more than or equal to 24800:
- remove 800 from {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%}
- set {_total} to 1 + {_特惠item}
- drop {_total} of pig spawn eggs named "&3&l公會限定 - %arg-4%生怪蛋" with lore "&b&l只公能在會世界用||&f注: 座標無限制" at location of arg-1
- loop {公會系統::*}:
- if {公會系統::%arg-1%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%arg-1%}% &f%arg-1% &b&l購買了一個%{_特惠}%%arg-4%生怪蛋。" to {_87}
- stop
- else:
- send "{@Title} 公會資產不足800,至少保底24000否則無法購買" to arg-1
- stop
- if arg-4 is "chicken":
- if {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%} is more than or equal to 24800:
- remove 800 from {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%}
- set {_total} to 1 + {_特惠item}
- drop {_total} of chicken spawn eggs named "&3&l公會限定 - %arg-4%生怪蛋" with lore "&b&l只公能在會世界用||&f注: 座標無限制" at location of arg-1
- loop {公會系統::*}:
- if {公會系統::%arg-1%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%arg-1%}% &f%arg-1% &b&l購買了一個%{_特惠}%%arg-4%生怪蛋。" to {_87}
- stop
- else:
- send "{@Title} 公會資產不足800,至少保底24000否則無法購買" to arg-1
- stop
- if arg-4 is "cow":
- if {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%} is more than or equal to 24800:
- remove 800 from {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%}
- set {_total} to 1 + {_特惠item}
- drop {_total} of cow spawn eggs named "&3&l公會限定 - %arg-4%生怪蛋" with lore "&b&l只公能在會世界用||&f注: 座標無限制" at location of arg-1
- loop {公會系統::*}:
- if {公會系統::%arg-1%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%arg-1%}% &f%arg-1% &b&l購買了一個%{_特惠}%%arg-4%生怪蛋。" to {_87}
- stop
- else:
- send "{@Title} 公會資產不足800,至少保底24000否則無法購買" to arg-1
- stop
- if arg-4 is "sheep":
- if {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%} is more than or equal to 24800:
- remove 800 from {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%}
- set {_total} to 1 + {_特惠item}
- drop {_total} of sheep spawn eggs named "&3&l公會限定 - %arg-4%生怪蛋" with lore "&b&l只公能在會世界用||&f注: 座標無限制" at location of arg-1
- loop {公會系統::*}:
- if {公會系統::%arg-1%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%arg-1%}% &f%arg-1% &b&l購買了一個%{_特惠}%%arg-4%生怪蛋。" to {_87}
- stop
- else:
- send "{@Title} 公會資產不足800,至少保底24000否則無法購買" to arg-1
- stop
- if arg-4 is "wolf":
- if {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%} is more than or equal to 29000:
- remove 5000 from {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%}
- set {_total} to 6 + {_特惠item}
- drop {_total} of wolf spawn eggs named "&3&l公會限定 - %arg-4%生怪蛋" with lore "&b&l只公能在會世界用||&f注: 座標無限制" at location of arg-1
- loop {公會系統::*}:
- if {公會系統::%arg-1%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%arg-1%}% &f%arg-1% &b&l購買了六個%{_特惠}%%arg-4%生怪蛋。" to {_87}
- stop
- else:
- send "{@Title} 公會資產不足5000,至少保底24000否則無法購買" to arg-1
- stop
- if arg-4 is "ocelot":
- if {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%} is more than or equal to 29000:
- remove 5000 from {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%}
- set {_total} to 6 + {_特惠item}
- drop {_total} of ocelot spawn eggs named "&3&l公會限定 - %arg-4%生怪蛋" with lore "&b&l只公能在會世界用||&f注: 座標無限制" at location of arg-1
- loop {公會系統::*}:
- if {公會系統::%arg-1%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%arg-1%}% &f%arg-1% &b&l購買了六個%{_特惠}%%arg-4%生怪蛋。" to {_87}
- stop
- else:
- send "{@Title} 公會資產不足5000,至少保底24000否則無法購買" to arg-1
- stop
- if arg-4 is "size":
- if {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%} is more than or equal to 24500:
- remove 500 from {公會系統.名稱以及總資產::%{公會系統::%arg-1%}%}
- set {公會系統.會地.等級::%{公會系統::%arg-1%}%} to 1 + {公會系統.會地.等級::%{公會系統::%arg-1%}%}
- execute arg-1 command "g setbedrock"
- loop {公會系統::*}:
- if {公會系統::%arg-1%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%arg-1%}% &f%arg-1% &b&l增加了會地面積,現在是&f&l%30 + {公會系統.會地.等級::%{公會系統::%arg-1%}%}% &f&lx &f&l%30 + {公會系統.會地.等級::%{公會系統::%arg-1%}%}%&b&l。" to {_87}
- stop
- else:
- send "{@Title} 公會資產不足500,至少保底24000否則無法購買" to arg-1
- stop
- else:
- send "{@Title} 擁有會地才能購買。" to arg-1
- stop
- else:
- send "{@Title} 你太自大了,你不是會長甚至連副會長都不是。" to arg-1
- stop
- if arg-2 is "shop":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長" or "副會長":
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- send "{@Title} &f&l請在牌子第一行打gshop並右鍵謝謝。"
- stop
- else:
- send "{@Title} &m暫不開放&f(購買會地後開放)"
- stop
- send "{@Title} 你必須是公會成員幹部"
- stop
- send "{@Title} 必須有公會"
- stop
- if arg-2 is "QPteleport" or "tp" or "qptp":
- if arg-3 isn't set:
- send "{@Title} &6&l/guild QPteleport &e&l<玩家名> &c&l傳送到該玩家身旁。"
- stop
- if {玩家資料.%player%::VIP} is set:
- if {公會系統::%player%} is set:
- if {公會系統::%arg-3%} is {公會系統::%player%}:
- send "{@Title}%player% 傳送到你的身邊。" to arg-3
- send "{@Title} 正在傳送. . ."
- teleport player to arg-3
- stop
- send "{@Title}傳送失敗,請確認是否加入公會。"
- stop
- else:
- send "{@Title} 傳送失敗,本指令為VIP專屬。"
- stop
- send "{@Title} &6&l/guild QPteleport &e&l<玩家名> &c&l傳送到該玩家身旁。"
- stop
- if arg-2 is "QPremove":
- if arg-3 is set:
- set {_玩家名} to arg-3
- else:
- set {_玩家名} to arg-4
- if {_玩家名} isn't set:
- send "{@Title} &6&l/guild QPremove &e&l<玩家名> &c&l踢掉該玩家。"
- stop
- if {公會系統::%player%} is {公會系統::%{_玩家名}%}:
- if {公會系統.職位::%{_玩家名}%} is "會長" or "副會長":
- send "{@Title} 不管怎麼說,移除幹部是奇怪的行為,我不允許這樣做!"
- stop
- if {公會系統.職位::%player%} is "會長" or "副會長":
- if "%{_玩家名}'s world%" is "GUILD":
- execute {_玩家名} command "spawn"
- send "{@Title} 你被 &3&n%{公會系統.職位::%player%}%&f %player% &e踢出了公會。" to {_玩家名}
- delete {公會系統.職位::%{_玩家名}%}
- delete {公會系統::%{_玩家名}%}
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title}%{_玩家名}%被踢出了公會。" to {_87}
- stop
- else:
- send "{@Title} 你可以選擇投訴給你家會長或副會長,"
- if {公會系統.職位::%{_玩家名}%} is "會長" or "副會長":
- send "{@Title} 即使他是會長或者副會長。"
- else:
- send "{@Title} 你不在一個公會 或 他跟你不同公會。"
- stop
- if arg-2 is "debugdelhome":
- if player is a op:
- if arg-4 is "delall":
- delete {公會系統.會地::*}
- loop all players:
- if "%loop-player's world%" isn't "GUILD":
- execute loop-player command "spawn"
- send "會地系統重置。自動彈回主世界。" to loop-player
- send "clear"
- stop
- if arg-4 is set:
- loop {公會系統.會地::*}:
- if loop-index contain "%arg-4%":
- delete {公會系統.會地::%loop-index%}
- exit loop
- send "clear"
- stop
- clear {_公會系統.暫存空間::*}
- loop {公會系統.會地::*}:
- add loop-index to {_公會系統.暫存空間::*}
- send "%{_公會系統.暫存空間::*}%"
- stop
- if arg-2 is "tphome":
- if player is a op:
- if arg-4 is set:
- loop {公會系統.會地::*}:
- if loop-index contain "%arg-4%":
- set {_會地.loc} to {公會系統.會地::%loop-index%}
- teleport player to block at location of {_會地.loc}
- exit loop
- stop
- clear {_公會系統.暫存空間::*}
- loop {公會系統.會地::*}:
- add loop-index to {_公會系統.暫存空間::*}
- send "%{_公會系統.暫存空間::*}%"
- stop
- if arg-2 is "debuglist":
- if player is a op:
- clear {_公會系統.暫存空間::*}
- loop {公會系統.名稱以及總資產::*}:
- add loop-index to {_公會系統.暫存空間::*}
- send "%{_公會系統.暫存空間::*}%"
- if {公會系統::%player%} is set:
- clear {_公會系統.暫存空間::*}
- loop {公會系統::*}:
- if {公會系統::%loop-index%} is {公會系統::%player%}:
- add loop-index to {_公會系統.暫存空間::*}
- send "{@Title}%{_公會系統.暫存空間::*}%"
- stop
- send "{@Title}你沒有加入任何公會。" to player
- stop
- if arg-2 is "debugresetallchest":
- if player is a op:
- loop {公會系統.每日寶箱::*}:
- set {公會系統.每日寶箱::%loop-index%} to 10
- send "ok"
- stop
- if arg-2 is "QPcreate":
- set {_公會名} to "%player%的公會"
- if arg-4 is set:
- if length of arg-4 is more than or equal to 28:
- send "&c&l公會名過長!!!!最多7個中文字"
- stop
- set {_公會名} to arg-4
- if {公會系統::%player%} is set:
- message "{@Title}你已經在一個公會裏面" to player
- stop
- else:
- loop {公會系統::*}:
- if {_公會名} is loop-value:
- send "{@Title} 已經有公會是這個名字了。"
- stop
- set {公會系統::%player%} to {_公會名}
- set {公會系統.職位::%player%} to "會長"
- message "{@Title} 創建公會成功。" to player
- set {公會系統.名稱以及總資產::%{_公會名}%} to 0
- set {公會系統.是否允許直接加入::%{_公會名}%} to false
- set {公會系統.每日寶箱::%{_公會名}%} to 10
- stop
- if arg-2 is "QPAdmin":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長":
- set {_新人名} to "不存在"
- if arg-3 is set:
- set {_新人名} to arg-3
- else if arg-4 is set:
- set {_新人名} to arg-4
- if {公會系統::%{_新人名}%} is {公會系統::%player%}:
- if {公會系統.職位::%{_新人名}%} is "副會長":
- delete {公會系統.職位::%{_新人名}%}
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{_新人名}% 已被撤職, 身為 %{公會系統::%player%}% 幹部 是不是有點被會長覺得失職了呢?" to {_87}
- stop
- else if {公會系統.職位::%{_新人名}%} is "會長":
- send "{@Title} WTF MAN?你把自己撤成副會長是在幹三小。"
- stop
- set {_累計公會人數} to 0
- clear {_公會系統.暫存空間::*}
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- add loop-index to {_公會系統.暫存空間::*}
- if {公會系統.職位::%loop-index%} is "副會長":
- add 1 to {_累計公會人數}
- set {_87} to loop-index parsed as offline player
- if {_累計公會人數} is smaller than or equal to 4:
- send "{@Title}會長 %player% 正在分佈新的副會長. . . . . ." to {_87}
- if {_累計公會人數} is smaller than or equal to 4:
- set {公會系統.職位::%{_新人名}%} to "副會長"
- loop {_公會系統.暫存空間::*}:
- set {_87} to loop-value parsed as offline player
- send "{@Title}恭喜 %{_新人名}% 擔任我們 %{公會系統::%player%}% 的副會長。" to {_87}
- stop
- send "{@Title} 副會長人數已超過5位,如果要炒人請用/guild QPAdmin 副會長名"
- stop
- send "{@Title} 該玩家不在您的公會。"
- stop
- send "{@Title} 只有會長可以給副會長。"
- stop
- send "{@Title} 您沒有公會"
- stop
- if arg-2 is "Change":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長":
- set {_新人名} to "不存在"
- if arg-3 is set:
- set {_新人名} to arg-3
- else if arg-4 is set:
- set {_新人名} to arg-4
- if {公會系統::%{_新人名}%} is {公會系統::%player%}:
- if {公會系統.職位::%{_新人名}%} is "副會長":
- set {公會系統.職位::%{_新人名}%} to "會長"
- set {公會系統.職位::%player%} to "副會長"
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} 恭喜 %{_新人名}% 榮升為 %{公會系統::%player%}% 會長, 會長%player%下臺做副會長了。" to {_87}
- stop
- else if {公會系統.職位::%{_新人名}%} is "會長":
- send "{@Title} WTF MAN?你把自己轉讓自己是在轉三小。"
- stop
- set {公會系統.職位::%{_新人名}%} to "會長"
- delete {公會系統.職位::%player%}
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} 恭喜 %{_新人名}% 榮升為 %{公會系統::%player%}% 會長, 會長%player%下臺了,也許想退休了。" to {_87}
- stop
- send "{@Title} 該玩家不在您的公會。"
- stop
- send "{@Title} 只有會長可以給轉讓。"
- stop
- send "{@Title} 您沒有公會"
- stop
- if arg-2 is "QPleave":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長":
- if arg-4 is "deleteguild":
- set {_累計公會人數} to 0
- clear {_公會系統.暫存空間::*}
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- add loop-index to {_公會系統.暫存空間::*}
- add 1 to {_累計公會人數}
- set {_87} to loop-index parsed as offline player
- send "{@Title}會長 %player% 宣布公會解散。" to {_87}
- if "%{_87}'s world%" is "GUILD":
- execute {_87} command "spawn"
- delete {公會系統.職位::%loop-index%}
- if {_累計公會人數} is more than 4:
- if {公會系統.名稱以及總資產::%{公會系統::%player%}%} is more than 12000:
- give 1 of water bucket named "&a&l成就 - &9&l眼淚的水桶" with lore "&a&l一個水桶,隱藏成就。" to player
- broadcast "{@Title} 經歷了可怕的會議後, %player% 放棄了公會 [%floor({公會系統.名稱以及總資產::%{公會系統::%player%}%} / 12000)%] - %{公會系統::%player%}% ,解散了 %{_累計公會人數}% 人公會。"
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- broadcast "{@Title} 會地的面積 %30 + {公會系統.會地.等級::%{公會系統::%player%}%}% &f&lx &f&l%30 + {公會系統.會地.等級::%{公會系統::%player%}%}% &e成為歷史。"
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- set {_會地.loc} to {公會系統.會地::%{公會系統::%player%}%}
- teleport player to block at location of {_會地.loc}
- set {_會地.loc} to location of player
- set {_y} to y-coordinate of {_會地.loc} - 3
- set {_x1} to x-coordinate of {_會地.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x2} to x-coordinate of {_會地.loc} - 15
- set {_z2} to z-coordinate of {_會地.loc} - 15
- set {_z1} to z-coordinate of {_會地.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- loop blocks within location at ({_x1}, 255, {_z1}) to location at ({_x2}, 0, {_z2}):
- if loop-block isn't air:
- set loop-block to air
- loop entities in radius 1 of loop-block:
- if loop-entity isn't player:
- delete loop-entity
- execute player command "spawn"
- delete {公會系統.會地.等級::%{公會系統::%player%}%}
- delete {公會系統.會地::%{公會系統::%player%}%}
- delete {公會系統.會地.傳送點::%{公會系統::%player%}%}
- delete {公會系統.會地.buff.1::%{公會系統::%player%}%}
- delete {公會系統.會地.buff.2::%{公會系統::%player%}%}
- delete {公會系統.會地.buff.3::%{公會系統::%player%}%}
- delete {公會系統.每日寶箱::%{公會系統::%player%}%}
- delete {公會系統.名稱以及總資產::%{公會系統::%player%}%}
- delete {公會系統.是否允許直接加入::%{公會系統::%player%}%}
- delete {公會系統::%player%}
- loop {_公會系統.暫存空間::*}:
- delete {公會系統::%loop-value%}
- stop
- send "{@Title} 會長無法離開公會,如果要解散請使用"
- send "{@Title} /g qpleave deleteguild 來直接解散"
- stop
- else:
- set {_公會會員量} to 0
- if {公會系統::%player%} is set:
- set {_名分} to ""
- if {公會系統.職位::%player%} is "副會長":
- set {_名分} to "副會長"
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{_名分}%%player%離開了公會。" to {_87}
- if "%player's world%" is "GUILD":
- execute player command "spawn"
- delete {公會系統.職位::%player%}
- delete {公會系統::%player%}
- stop
- send "{@Title}你沒有加入任何公會。" to player
- stop
- if arg-2 is "switchopen":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長":
- if {公會系統.是否允許直接加入::%{公會系統::%player%}%} is false:
- set {公會系統.是否允許直接加入::%{公會系統::%player%}%} to true
- send "{@Title} 公會已開放任何人加入。"
- else:
- set {公會系統.是否允許直接加入::%{公會系統::%player%}%} to false
- send "{@Title} 公會已更改為審核制度。"
- if arg-2 is "QPlist":
- if {公會系統::%player%} is set:
- clear {_公會系統.暫存空間::*}
- set {_累計公會人數} to 0
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_player} to loop-index parsed as offline player
- if {_player} is online:
- set {_player} to "&a●&f%loop-index%"
- else:
- set {_player} to "&c●&f%loop-index%"
- if {公會系統.職位::%loop-index%} is set:
- add "%{公會系統.職位::%loop-index%}%%{_player}%" to {_公會系統.暫存空間::*}
- else:
- add "%{_player}%" to {_公會系統.暫存空間::*}
- add 1 to {_累計公會人數}
- if {公會系統.職位::%loop-index%} is "會長":
- set {_會長} to loop-index
- clear {_耐久度::*}
- set {_now} to {公會系統.名稱以及總資產::%{公會系統::%player%}%}
- set {_now} to {_now} - floor({_now}/12000) * 12000
- set {_max} to floor({_now}/12000) * 12000 + 12000
- set {_cge} to {_now} / {_max} * 20
- loop {_cge} times:
- add "&a&l■" to {_耐久度::*}
- set {_cge} to 20 - {_cge}
- loop {_cge} times:
- add "&7&l_" to {_耐久度::*}
- set {_耐久度} to "%{_耐久度::*}%"
- replace all ",", "and" and " " with "" in {_耐久度}
- send "{@Title} &e&l==============================================="
- send "公會會員列表(包括會長與副會):"
- send " &l%{_公會系統.暫存空間::*}%"
- send "{@Title} &e&l==============================================="
- send "{@Title} 公會名: &4&l%{公會系統::%player%}% &f&l公會討伐生物數: &e&l&o%floor({公會系統.名稱以及總資產::%{公會系統::%player%}%})%"
- send "{@Title} 公會進入方式: &6&l%{公會系統.是否允許直接加入::%{公會系統::%player%}%}% &e(true是任何人 / false是申請制)"
- set {_暫無} to "&c未持有"
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- set {_暫無} to "&a已擁有 &b&l(%30 + {公會系統.會地.等級::%{公會系統::%player%}%}% &b&lx &b&l%30 + {公會系統.會地.等級::%{公會系統::%player%}%}%)"
- send "{@Title} &3&l公會等級: &9&l%floor({公會系統.名稱以及總資產::%{公會系統::%player%}%} / 12000)% &e 會地: %{_暫無}%"
- send "{@Title} &2&l公會EXP&7&l: [%{_耐久度}%]"
- send "{@Title} 公會會長: &a%{_會長}% &a&l人數 &f&l%{_累計公會人數}%"
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- send json of "{@Title} &a[點此開啟公會商店列表]" run "/guild shop" to player
- if {公會系統.會地::%{公會系統::%player%}%} isn't set:
- if {公會系統.每日寶箱::%{公會系統::%player%}%} is set:
- send "{@Title} &a&l==============================================="
- set {_會地資產值} to {公會系統.每日寶箱::%{公會系統::%player%}%} - 10
- if {_會地資產值} isn't equal to 10:
- set {_內容} to "&n: %21600 - {_會地資產值}% / 21600"
- else:
- set {_內容} to "&a&l&n待開啟寶箱 &8&l(/g open)"
- send "{@Title} &f&l&o免費寶箱 (公會經驗值) %{_內容}%"
- loop {公會系統.待處理玩家::*}:
- if loop-value is {公會系統::%player%}:
- send "{@Title} &8&l您有待處理的公會申請,"
- send "{@Title} (會長限定)要開放公會請輸入/guild SwitchOpen(/會長限定)"
- send "{@Title} &8&l審核請輸入/guild Check 或/guild Check <玩家名>"
- exit loop
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- set {_會地資產值} to {公會系統.每日寶箱::%{公會系統::%player%}%} - 10
- if {_會地資產值} isn't smaller than or equal to 10:
- set {_內容} to "&n: %21600 - {_會地資產值}% / 21600"
- send "{@Title} &f&l&o皇冠寶箱 (公會經驗值) %{_內容}%"
- else:
- send "{@Title} &a&l==============================================="
- set {_cge} to {公會系統.每日寶箱::%{公會系統::%player%}%}
- send "{@Title} &f&l&o皇冠寶箱 &a&l殺王數量 &f&l(%10 - {_cge}%/10)"
- else:
- send "{@Title} &e&l==============================================="
- if player is a op:
- send "管理員請用debuglist看公會列表"
- stop
- send "{@Title} 目前暫不開放 全公會列表。"
- if player is a op:
- clear {_公會系統.暫存空間::*}
- loop {公會系統.名稱以及總資產::*}:
- add loop-index to {_公會系統.暫存空間::*}
- send "%{_公會系統.暫存空間::*}%"
- stop
- if arg-2 is "open":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- if arg-4 is "許文487":
- if player is a op:
- set {_公會EXP增加} to a random integer between 30 and 2500
- add {_公會EXP增加} to {公會系統.名稱以及總資產::%{公會系統::%player%}%}
- set {_now} to {_公會EXP增加}
- set {_max} to floor({_now}/12000) * 12000 + 12000
- set {_cge} to {_now} / {_max} * 100
- set {_cge} to floor({_cge}) + 1
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%player%}% %player% 正在為 %loop-value% 開箱中。" to {_87}
- wait 16 ticks
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} &a&l公會 &3&l%loop-value% &a&l經驗值 增加了 &f&l%{_cge}%%% &a&l。" to {_87}
- play raw sound "random.levelup" at {_87} with pitch 1.7 volume 0.5
- stop
- if {公會系統.每日寶箱::%{公會系統::%player%}%} is set:
- if {公會系統.會地::%{公會系統::%player%}%} isn't set:
- send "{@Title} &a&l==============================================="
- set {_會地資產值} to {公會系統.每日寶箱::%{公會系統::%player%}%}
- if {_會地資產值} is equal to 10:
- set {公會系統.每日寶箱::%{公會系統::%player%}%} to 21610
- set {_公會EXP增加} to a random integer between 30 and 1250
- add {_公會EXP增加} to {公會系統.名稱以及總資產::%{公會系統::%player%}%}
- set {_cge} to (floor({_公會EXP增加}) + 1) / (12000 * (floor({公會系統.名稱以及總資產::%{公會系統::%player%}%} / 12000) + 1)) * 100
- set {_cge} to floor({_cge}) + 1
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{公會系統.職位::%player%}% %player% 正在為 %loop-value% 開箱中。" to {_87}
- wait 16 ticks
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} &a&l公會 &3&l%loop-value% &a&l經驗值 增加了 &f&l%{_cge}%%% &a&l。" to {_87}
- play raw sound "random.levelup" at {_87} with pitch 1.7 volume 0.
- else:
- execute player command "/g qplist"
- stop
- send "{@Title} 公會已達到無法領取每日寶箱的等級。"
- stop
- send "{@Title} 您不是公會幹部,無法開箱。"
- stop
- send "{@Title} 您還沒加入公會。"
- stop
- if arg-2 is "check":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- set {_新人名} to "不存在"
- if arg-3 is set:
- set {_新人名} to arg-3
- else if arg-4 is set:
- set {_新人名} to arg-4
- if {公會倒計時::%{_新人名}%} is set:
- if {公會系統.待處理玩家::%{_新人名}%} is {公會系統::%player%}:
- delete {公會倒計時::%{_新人名}%}
- set {公會系統::%{_新人名}%} to {公會系統::%player%}
- delete {公會系統.待處理玩家::%{_新人名}%}
- set {_新人名} to {_新人名} parsed as offline player
- send "{@Title} 您的請求已被處理, %{公會系統::%player%}%幹部 %player% 同意您的加入。" to {_新人名}
- loop {公會系統::*}:
- if {公會系統::%{_新人名}%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %{_新人名}% 加入了 %loop-value% 的大家庭。" to {_87}
- stop
- send "{@Title} &c&l系統回傳錯誤,屢次嘗試有可能引爆你媽,因為你媽太胖。"
- stop
- send "{@Title} 待處理清單:"
- clear {_公會系統.暫存空間::*}
- loop {公會系統.待處理玩家::*}:
- if loop-value is {公會系統::%player%}:
- add loop-index to {_公會系統.暫存空間::*}
- send "%{_公會系統.暫存空間::*}%"
- stop
- if arg-2 is "QPinvite" or "invite" or "邀請":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- if {公會系統::%arg-3%} is set:
- send "{@Title} &c&l該玩家已有公會,無法邀請。"
- stop
- if arg-3 is set:
- send "{@Title} 邀請已發送到%arg-3%"
- send "{@Title} %player% 邀請您到 %{公會系統::%player%}% 公會" to arg-3
- send json of "{@Title} &a[點此申請加入%{公會系統::%player%}%公會]" run "/guild %{公會系統::%player%}% QPjoin" to arg-3
- stop
- send "{@Title} 只能邀請在綫玩家。"
- stop
- send "{@Title} 你不是幹部成員, &c無法 邀請。 "
- stop
- stop
- if arg-2 is "QPHome":
- if {公會系統::%player%} is set:
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- if player is a op:
- if arg-4 is "reset":
- if "%player's world%" is "GUILD":
- set {公會系統.會地::%{公會系統::%player%}%} to location of player
- send "{@Title} 會地座標已重置"
- stop
- if arg-4 is "set":
- if "%player's world%" is "GUILD":
- set {_會地p.loc} to block at location of {公會系統.會地::%{公會系統::%player%}%}
- set {_x1.p} to x-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x2.p} to x-coordinate of {_會地p.loc} - 15
- set {_z2.p} to z-coordinate of {_會地p.loc} - 15
- set {_z1.p} to z-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x.p} to x-coordinate of event-location
- set {_z.p} to z-coordinate of event-location
- if {_x.p} is smaller than or equal to {_x1.p}:
- if {_x.p} is more than or equal to {_x2.p}:
- if {_z.p} is smaller than or equal to {_z1.p}:
- if {_z.p} is more than or equal to {_z2.p}:
- set {公會系統.會地.傳送點::%{公會系統::%player%}%} to location of player
- send "{@Title} 會地傳送點已變更。"
- stop
- if player is a op:
- if player's gamemode is creative:
- set {公會系統.會地.傳送點::%{公會系統::%player%}%} to location of player
- send "{@Title} 會地傳送點已變更。"
- stop
- send "{@Title} 座標在會地範圍外。"
- stop
- if {公會系統.會地::%{公會系統::%player%}%} isn't set:
- if {公會系統.名稱以及總資產::%{公會系統::%player%}%} is more than or equal to 24000:
- teleport player to spawn of "GUILD"
- if {公會系統.會地.x} isn't set:
- set {公會系統.會地.x} to x-coordinate of location of player
- set {_會地.loc} to location of player
- set x-coordinate of {_會地.loc} to {公會系統.會地.x} - 500
- set {公會系統.會地.x} to x-coordinate of {_會地.loc}
- teleport player to block at location of {_會地.loc}
- set {_會地.loc} to location of player
- set {公會系統.會地::%{公會系統::%player%}%} to {_會地.loc}
- set {公會系統.會地.傳送點::%{公會系統::%player%}%} to {_會地.loc}
- set {_y} to y-coordinate of {_會地.loc} - 3
- set {_x1} to x-coordinate of {_會地.loc} + 15
- set {_x2} to x-coordinate of {_會地.loc} - 15
- set {_z2} to z-coordinate of {_會地.loc} - 15
- set {_z1} to z-coordinate of {_會地.loc} + 15
- loop blocks within location at ({_x1}, 255, {_z1}) to location at ({_x2}, 0, {_z2}):
- if loop-block isn't air:
- set loop-block to air
- loop entities in radius 1 of loop-block:
- if loop-entity isn't player:
- delete loop-entity
- set {_y} to {_y} + 1
- clear {_公會系統.暫存空間::*}
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x2}, {_y}, {_z2}):
- Chance of 30%:
- set loop-block to beacon
- exit loop
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x2}, {_y}, {_z2}):
- if loop-block is air:
- Chance of 30%:
- set loop-block to melons
- exit loop
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x2}, {_y}, {_z2}):
- if loop-block isn't beacon or melons:
- Chance of 30%:
- set loop-block to pumpkin
- exit loop
- set {_y} to {_y} - 1
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x2}, {_y}, {_z2}):
- set loop-block to grass
- set {_y} to {_y} - 1
- loop 5 times:
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x2}, {_y}, {_z2}):
- set loop-block to dirt
- set {_y} to {_y} - 1
- loop blocks within location at ({_x1}, {_y}, {_z1}) to location at ({_x2}, {_y}, {_z2}):
- set loop-block to bedrock
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %player% 創建了 %loop-value% 的會地!" to {_87}
- stop
- send "{@Title} 公會沒錢啊,我幫你廣播一下給全部人聽。"
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %player% 想創建 %loop-value% 的會地,快加油討伐怪物,還差經驗值 %24000 - floor({公會系統.名稱以及總資產::%{公會系統::%player%}%})%" to {_87}
- stop
- if {公會系統.會地::%{公會系統::%player%}%} is set:
- if {公會系統.會地.傳送點::%{公會系統::%player%}%} isn't set:
- teleport player to block at location of {公會系統.會地::%{公會系統::%player%}%}
- if block below player is air:
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- send "{@Title} &3&l公會傳點好像不太正常,要不要用/g qphome set 換個位置?"
- else:
- teleport player to block at location of {公會系統.會地.傳送點::%{公會系統::%player%}%}
- if block below player is air:
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- send "{@Title} &3&l公會傳點好像不太正常,要不要用/g qphome set 換個位置?"
- send "{@Title} &2&l已傳送到會地。"
- stop
- send "{@Title} 公會會地暫不存在,請叫你家會長建立。"
- stop
- send "{@Title} 您未加入公會。"
- stop
- if arg-2 is set:
- if arg-4 is "申請" or "QPjoin":
- if {公會系統::%player%} isn't set:
- loop {公會系統.是否允許直接加入::*}:
- if loop-index is arg-2:
- if loop-value is false:
- set {公會系統.待處理玩家::%player%} to arg-2
- set {公會倒計時::%player%} to 21600
- send "{@Title} 您的請求已被處理, 請稍等 %loop-index% 的幹部回覆。"
- loop {公會系統::*}:
- if {公會系統.待處理玩家::%player%} is {公會系統::%loop-index-2%}:
- if {公會系統.職位::%loop-index-2%} is "會長" or "副會長":
- set {_87} to loop-index-2 parsed as offline player
- send "{@Title} 新的玩家要申請加入 %loop-index-1% 公會,輸入/g check查看。" to {_87}
- stop
- else:
- set {公會系統::%player%} to loop-index
- send "{@Title} 您已直接加入了此公會!"
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index-2%}:
- set {_87} to loop-index-2 parsed as offline player
- send "{@Title} %player% 加入了 %loop-index-1% 的大家庭。" to {_87}
- stop
- send "{@Title} &a&l/guild QPcreate <公會名> &8&l創建公會。"
- send "{@Title} &3&l/guild QPinvite <玩家名> &8&l 公會邀請。"
- #"(邀請為 會長/副會長 限定)"
- #send "{@Title} &7&l PS. 邀請後若果是審核制度,仍需要 會長/副會長 手動接受。"
- #send "{@Title} &7&l&m(缺憾請多多原諒[技術人員也想偷懶啊~])"
- send "{@Title} &a&l/guild QPHome &8&l創建 / 傳送到公會會地。&f&l(2級公會可以創建)"
- send "{@Title} &a&l/guild QPAdmin &8&l設置 / 解雇 副會長 (不會踢出公會)。"
- send "{@Title} &3&l/guild <公會名> QPjoin &8&l申請加入公會 "
- #"(若是開放式公會,會自動加入。)"
- send "{@Title} &a&l/guild QPremove <玩家名> &8&l踢掉該玩家。(會長/副會長限定)"
- send "{@Title} &c&l/guild QPTp <玩家名> &8&l傳送到該玩家身旁。(VIP限定)"
- send "{@Title} &4&l/guild QPleave &8&l離開 或 解散公會。"
- if {公會系統::%player%} is set:
- execute player command "guild QPlist"
- every 1 seconds:
- loop {公會倒計時::*}:
- remove 1 from {公會倒計時::%loop-index%}
- if {公會倒計時::%loop-index%} is smaller than or equal to 0:
- set {_name} to loop-index parsed as offline player
- send "{@Title} 公會申請已過時" to {_name}
- delete {公會倒計時::%loop-index%}
- delete {公會系統.待處理玩家::%loop-index%}
- on place:
- player's gamemode is creative:
- stop
- if player's tool is beacon:
- cancel event
- send "該物品無法放置"
- stop
- set {_會地p.loc} to block at location of {公會系統.會地::%{公會系統::%player%}%}
- set {_x1.p} to x-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x2.p} to x-coordinate of {_會地p.loc} - 15
- set {_z2.p} to z-coordinate of {_會地p.loc} - 15
- set {_z1.p} to z-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x.p} to x-coordinate of event-location
- set {_z.p} to z-coordinate of event-location
- if {_x.p} is smaller than or equal to {_x1.p}:
- if {_x.p} is more than or equal to {_x2.p}:
- if {_z.p} is smaller than or equal to {_z1.p}:
- if {_z.p} is more than or equal to {_z2.p}:
- stop
- cancel event
- on right click:
- if "%player's world%" isn't "GUILD":
- stop
- player's gamemode is creative:
- stop
- if clicked block is chest or trapped chest:
- set {_會地p.loc} to block at location of {公會系統.會地::%{公會系統::%player%}%}
- set {_x1.p} to x-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x2.p} to x-coordinate of {_會地p.loc} - 15
- set {_z2.p} to z-coordinate of {_會地p.loc} - 15
- set {_z1.p} to z-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x.p} to x-coordinate of location of clicked block
- set {_z.p} to z-coordinate of location of clicked block
- if {_x.p} is smaller than or equal to {_x1.p}:
- if {_x.p} is more than or equal to {_x2.p}:
- if {_z.p} is smaller than or equal to {_z1.p}:
- if {_z.p} is more than or equal to {_z2.p}:
- stop
- cancel event
- on break:
- player's gamemode is creative:
- stop
- set {_會地p.loc} to block at location of {公會系統.會地::%{公會系統::%player%}%}
- set {_x1.p} to x-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x2.p} to x-coordinate of {_會地p.loc} - 15
- set {_z2.p} to z-coordinate of {_會地p.loc} - 15
- set {_z1.p} to z-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%player%}%}
- set {_x.p} to x-coordinate of event-location
- set {_z.p} to z-coordinate of event-location
- if {_x.p} is smaller than or equal to {_x1.p}:
- if {_x.p} is more than or equal to {_x2.p}:
- if {_z.p} is smaller than or equal to {_z1.p}:
- if {_z.p} is more than or equal to {_z2.p}:
- if event-block is dirt or grass:
- Chance of 30%:
- drop 1 of log item
- else:
- Chance of 20%:
- drop 1 of sand
- else:
- Chance of 20%:
- drop 4 of cobblestone
- Chance of 10%:
- drop 1 of iron ingot
- Chance of 4%:
- drop 1 of diamond
- drop 1 of obsidian
- Chance of 1%:
- drop 1 of dirt
- stop
- cancel event
- on damage:
- if damage cause is void:
- if {公會系統.會地::%{公會系統::%victim%}%} is set:
- teleport victim to block at location of {公會系統.會地::%{公會系統::%victim%}%}
- if {公會系統::%attacker%} is {公會系統::%victim%}:
- cancel event
- if {公會系統::%attacker%} is set:
- if "%victim's world%" isn't "GUILD":
- stop
- if victim isn't a player:
- set {_會地p.loc} to block at location of {公會系統.會地::%{公會系統::%attacker%}%}
- set {_x1.p} to x-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%attacker%}%}
- set {_x2.p} to x-coordinate of {_會地p.loc} - 15
- set {_z2.p} to z-coordinate of {_會地p.loc} - 15
- set {_z1.p} to z-coordinate of {_會地p.loc} + 15 + {公會系統.會地.等級::%{公會系統::%attacker%}%}
- set {_x.p} to x-coordinate of location of victim
- set {_z.p} to z-coordinate of location of victim
- if {_x.p} is smaller than or equal to {_x1.p}:
- if {_x.p} is more than or equal to {_x2.p}:
- if {_z.p} is smaller than or equal to {_z1.p}:
- if {_z.p} is more than or equal to {_z2.p}:
- if attacker is sneaking:
- stop
- cancel event
- stop
- on death:
- if {公會系統::%attacker%} is set:
- if {公會系統.名稱以及總資產::%{公會系統::%attacker%}%} is more than or equal to 24000:
- set {_累計公會人數} to 0
- loop {公會系統::*}:
- if {公會系統::%attacker%} is {公會系統::%loop-index%}:
- add 1 to {_累計公會人數}
- if {_累計公會人數} is more than or equal to 15:
- set {_公會等級} to floor({公會系統.名稱以及總資產::%{公會系統::%attacker%}%} / 12000) + 1
- else if {_累計公會人數} is more than or equal to 9:
- set {_公會等級} to floor({公會系統.名稱以及總資產::%{公會系統::%attacker%}%} / 12000) + 3
- set {_累計公會人數} to 5
- else:
- set {_公會等級} to floor({公會系統.名稱以及總資產::%{公會系統::%attacker%}%} / 12000) + 5
- set {_累計公會人數} to 3
- if {公會系統.職位::%attacker%} is "會長" or "副會長":
- add 3 to {_累計公會人數}
- set {_公會等級} to {_公會等級} / 100
- if name of victim contain "boss":
- add 10 to {_累計公會人數}
- if {公會系統.會地::%{公會系統::%attacker%}%} is set:
- if {公會系統.每日寶箱::%{公會系統::%attacker%}%} is set:
- if {公會系統.每日寶箱::%{公會系統::%attacker%}%} is smaller than or equal to 10:
- set {_皇冠寶箱} to a random integer between 1 and 3
- remove {_皇冠寶箱} from {公會系統.每日寶箱::%{公會系統::%attacker%}%}
- if {公會系統.每日寶箱::%{公會系統::%attacker%}%} is smaller than or equal to 0:
- set {公會系統.每日寶箱::%{公會系統::%attacker%}%} to 21610
- set {_次元超越} to 1
- loop {公會系統::*}:
- if {公會系統::%attacker%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} %attacker% 成功完成了任務的最後一擊 , %loop-value% 的箱子正在打開中~" to {_87}
- loop 7 times:
- Chance of 30%:
- add 1 to {_次元超越}
- set {_total} to 0
- loop {_次元超越} times:
- if loop-number isn't 1:
- loop {公會系統::*}:
- if {公會系統::%attacker%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} 突然!!!箱子發光了!!!!!" to {_87}
- play raw sound "note.pling" at {_87} with pitch 1.7 volume 0.5
- play raw sound "game.player.swim" at {_87} with pitch 1 volume 1
- set {_公會EXP增加} to a random integer between 110 and 990
- add {_公會EXP增加} to {公會系統.名稱以及總資產::%{公會系統::%attacker%}%}
- set {_now} to {_公會EXP增加}
- set {_max} to floor({_now}/12000) * 12000 + 12000
- set {_cge} to {_now} / {_max} * 100
- set {_cge} to floor({_cge}) + 1
- set {_total} to {_cge} + {_total}
- wait 16 ticks
- loop {公會系統::*}:
- if {公會系統::%attacker%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} &a&l公會 &3&l%loop-value-2% &a&l經驗值 增加了 &f&l%{_cge}%%% &a&l。" to {_87}
- play raw sound "random.levelup" at {_87} with pitch 1.7 volume 0.5
- if {_次元超越} is more than or equal to 2:
- loop {公會系統::*}:
- if {公會系統::%attacker%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "" to {_87}
- send "{@Title} &a&l公會 &3&l%loop-value% &9&l經驗值 總共增加了 &a&l%{_cge}%%% &9&l。" to {_87}
- play raw sound "game.player.swim" at {_87} with pitch 1.7 volume 0.5
- if name of victim contain "lv":
- if {公會系統.會地::%{公會系統::%attacker%}%} is set:
- if {公會系統.每日寶箱::%{公會系統::%attacker%}%} isn't set:
- set {公會系統.每日寶箱::%{公會系統::%attacker%}%} to 21610
- if {公會系統.每日寶箱::%{公會系統::%attacker%}%} isn't smaller than or equal to 10:
- remove 50 from {公會系統.每日寶箱::%{公會系統::%attacker%}%}
- else:
- if {公會系統.每日寶箱::%{公會系統::%attacker%}%} isn't set:
- set {公會系統.每日寶箱::%{公會系統::%attacker%}%} to 21610
- if {公會系統.每日寶箱::%{公會系統::%attacker%}%} isn't smaller than or equal to 10:
- remove 50 from {公會系統.每日寶箱::%{公會系統::%attacker%}%}
- if {公會系統.名稱以及總資產::%{公會系統::%attacker%}%} is more than or equal to 24000:
- loop {_累計公會人數} times:
- Chance of {_公會等級}:
- add 0.1 to {公會系統.名稱以及總資產::%{公會系統::%attacker%}%}
- if {玩家資料.%attacker%::VIP} is set:
- loop 15 times:
- Chance of {_公會等級}:
- add 0.1 to {公會系統.名稱以及總資產::%{公會系統::%attacker%}%}
- wait 1 tick
- else:
- set {_time} to "%day%"
- set {_特惠} to 3
- if {_time} contain "22":
- set {_特惠} to 3 + 10
- loop {_特惠} times:
- Chance of 42%:
- add 0.6 to {公會系統.名稱以及總資產::%{公會系統::%attacker%}%}
- on join:
- if {公會系統::%player%} is set:
- set {_Name} to "0"
- if {玩家資料.%player%::VIP} is set:
- set {_Name} to "&fVIP"
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- set {_Name} to {公會系統.職位::%player%}
- if {_Name} isn't "0":
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} &a&l公會%{_Name}% %player% 上線了 。" to {_87}
- on quit:
- if {公會系統::%player%} is set:
- set {_Name} to "0"
- if {玩家資料.%player%::VIP} is set:
- set {_Name} to "&fVIP"
- if {公會系統.職位::%player%} is "會長" or "副會長" :
- set {_Name} to {公會系統.職位::%player%}
- if {_Name} isn't "0":
- loop {公會系統::*}:
- if {公會系統::%player%} is {公會系統::%loop-index%}:
- set {_87} to loop-index parsed as offline player
- send "{@Title} &a&l公會%{_Name}% %player% 下線了 。" to {_87}
- On Sign Change:
- if player is a op:
- stop
- if line 2 contain "扭蛋":
- set line 1 to "I"
- set line 2 to "am"
- set line 3 to "Watching"
- set line 4 to "you"
- stop
- loop {扭蛋機列表::*}:
- if line 1 contains "%loop-index%":
- set line 1 to ""
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement