Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with clock:
- if name of event-item is "&c&lメニュー":
- play sound "BLOCK_CHEST_OPEN" with volume 0.8 and pitch 1 to the player
- open chest inventory with 1 row named "&c&lメニュー" to player
- set slot 0 of player's current inventory to ender pearl named "&b&lテレポート" with lore "&e&l各施設などにテレポートできる" and "&e&l戦場に出撃中は使用できない" and "&4(*未実装)"
- set slot 1 of player's current inventory to book named "&b&lスキル変更" with lore "&e&l解放済みのスキルに変更できる" and "&e&l戦場に出撃中は使用できない"
- set slot 2 of player's current inventory to enchanted book named "&b&lアビリティ変更" with lore "&e&l解放済みのスキルに変更できる" and "&e&l戦場に出撃中は使用できない"
- set slot 3 of player's current inventory to crafting table named "&b&lTIPS" with lore "&e&lサーバーの仕様などを確認できる" and "&e&l分からないことがあったらこれを見よう!"
- set slot 4 of player's current inventory to iron ingot named "&b&lギルドメニュー" with lore "&e&lギルドの情報を表示、または操作できる"
- set slot 7 of player's current inventory to paper named "&b&lキルランキング" with lore "&e&lプレイヤーのキルやキルレートなどの" and "&e&lランキングを表示する"
- set slot 8 of player's current inventory to lime dye named "&b&l設定" with lore "&e&l連続出撃、キルログ非表示など" and "&e&l便利な設定などが行える"
- on inventory click:
- if name of clicked inventory is "&c&lメニュー":
- cancel event
- if event-item is ender pearl named "&b&lテレポート" with lore "&e&l各施設などにテレポートできる" and "&e&l戦場に出撃中は使用できない" and "&d(未実装)":
- else if event-item is crafting table named "&b&lTIPS" with lore "&e&lサーバーの仕様などを確認できる" and "&e&l分からないことがあったらこれを見よう!":
- open chest inventory with 6 row named "&a&lTIPS" to player
- set slot 0 of player's current inventory to red glass named "&d↓銃・PVPについて↓"
- set slot 9 of player's current inventory to iron horse armour named "&d銃の性能" with lore "&eこのサーバーでは、メイン武器はホットバーに一つ" and "&eサブ武器も一つ装備した状態でしか使えません" and "&a(ホットバーにメインまたはサブ武器は二つ以上持てません)"
- set slot 18 of player's current inventory to iron horse armour named "&d銃の性能②" with lore "&eまた、基本的に銃の弾は真っすぐ飛びます" and "&a(グレネードランチャーなど例外はあります)" and "&e弾速は少し遅めですが、弾道がしっかり見えるようになっています"
- set slot 27 of player's current inventory to iron horse armour named "&d銃の性能③" with lore "&eヘッドショットは現在AR,SRに設定されています" and "&eまた、スニーク状態で精度は上がりません" and "&a(皆さんの意見により、この辺りは調整されていきます)"
- set slot 36 of player's current inventory to diamond sword named "&d↓PVPについて↓" with lore "&eプレイヤーをキルすることで、10ペル" and "&eキルアシストで5ペル入手できます" and "&e敵を倒した人はHPが即座に全回復します" and "&aまた、ギルドに入会してると、ギルドのメンバーがキルした際" and "&aそのギルドに入会している人全員にペルが配られます"
- set slot 45 of player's current inventory to beacon named "&d拠点制圧" with lore "&eマップの中央にあるビーコンの色が赤い時" and "&eその上を踏むことで、拠点が制圧できます" and "&e100ペルを入手でき、&aイベント開催中は" and "&a特殊なアイテムを入手できる場合があります" and "&eまた、制圧した拠点は45秒で復活します"
- else if event-item is book named "&b&lスキル変更" with lore "&e&l解放済みのスキルに変更できる" and "&e&l戦場に出撃中は使用できない":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- {fieldmenu.%player%} is not set
- open chest inventory with 2 row named "&a&lスキル変更" to player
- set {_num} to 0
- set {_num1} to 1
- loop {SkillNumber} times:
- set slot {_num} of player's current inventory to {hel%{_num1}%}
- add 1 to {_num}
- add 1 to {_num1}
- loop {SkillNumber} times:
- if {skill%player%} is loop-number:
- set slot loop-number - 1 of player's current inventory to purple wool named "&d&l選択中"
- loop {SkillNumber} times:
- if {skillunlock::%player%::%loop-number%} is false:
- set slot loop-number - 1 of player's current inventory to red wool named "&d&l未開放"
- if {skillunlock::%player%::%loop-number%} is not set:
- set slot loop-number - 1 of player's current inventory to red wool named "&d&l未開放"
- else if event-item is enchanted book named "&b&lアビリティ変更" with lore "&e&l解放済みのスキルに変更できる" and "&e&l戦場に出撃中は使用できない":
- {fieldmenu.%player%} is not set
- open chest inventory with 2 row named "&a&lアビリティ変更" to player
- set {_num} to 0
- set {_num1} to 1
- loop {AbilityNumber} times:
- set slot {_num} of player's current inventory to {abi.%{_num1}%}
- add 1 to {_num}
- add 1 to {_num1}
- loop {AbilityNumber} times:
- if {abi.%player%} is loop-number:
- set slot loop-number - 1 of player's current inventory to diamond block named "&d&l選択中"
- loop {AbilityNumber} times:
- if {abi.unlock.%player%::%loop-number%} is not set:
- set slot loop-number - 1 of player's current inventory to tnt named "&d&l未開放"
- else if event-item is iron ingot named "&b&lギルドメニュー" with lore "&e&lギルドの情報を表示、または操作できる":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- open chest inventory with 1 row named "&a&lギルドメニュー" to player
- set slot 0 of player's current inventory to name tag named "&c&lギルド一覧" with lore "&e現在のギルドの一覧を表示する"
- set slot 1 of player's current inventory to ender pearl named "&c&l自分のギルドを見る" with lore "&e自分のギルドの情報を表示する" and "&a(ギルドのオーナーは管理画面を表示します)"
- set slot 7 of player's current inventory to red wool named "&c&lギルドを脱会する" with lore "&e入会しているギルドから脱会する"
- set slot 8 of player's current inventory to gold block named "&c&lギルド作成" with lore "&e自分のギルドを作成する" and "&e費用:&b1000ペル"
- else if event-item is paper named "&b&lキルランキング" with lore "&e&lプレイヤーのキルやキルレートなどの" and "&e&lランキングを表示する":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- open chest inventory with 1 row named "&a&lランキング一覧" to player
- set {_high} to 0
- set {_count} to 7
- set {_killrankitem} to diamond sword named "&aキルランキング"
- loop {kill::*}:
- set {_killrank::%loop-index%} to loop-value
- loop {_count} times:
- loop {_killrank::*}:
- loop-value-2 > {_high}
- set {_high} to loop-value-2
- set {_highplayer} to loop-index
- set line loop-number of lore of {_killrankitem} to "&a%loop-number%位.&b%{_highplayer}%: &c%{_high}%Kill"
- set {_high} to 0
- delete {_killrank::%{_highplayer}%}
- set {_high} to 0
- set {_count} to 7
- set {_moneyrankitem} to gold block named "&a所持金ランキング"
- loop {money::*}:
- set {_moneyrank::%loop-index%} to loop-value
- loop {_count} times:
- loop {_moneyrank::*}:
- loop-value-2 > {_high}
- set {_high} to loop-value-2
- set {_highplayer} to loop-index
- set line loop-number of lore of {_moneyrankitem} to "&a%loop-number%位.&b%{_highplayer}%: &c%{_high}%ペル"
- set {_high} to 0
- delete {_moneyrank::%{_highplayer}%}
- set slot 0 of player's current inventory to {_killrankitem}
- set slot 1 of player's current inventory to {_moneyrankitem}
- else if event-item is lime dye named "&b&l設定" with lore "&e&l連続出撃、キルログ非表示など" and "&e&l便利な設定などが行える":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- open chest inventory with 1 row named "&a&l設定" to player
- if {setting.killlog::%player%} is set:
- set slot 0 of player's current inventory to lime dye named "キルログ表示" with lore "&e現在&dON" and "&aON:キルログを表示" and "&bOFF:キルログを非表示"
- else:
- set slot 0 of player's current inventory to grey dye named "キルログ表示" with lore "&e現在&dOFF" and "&aON:キルログを表示" and "&bOFF:キルログを非表示"
- else if name of clicked inventory is "&a&lTIPS":
- cancel event
- else if name of clicked inventory is "&a&lギルドメニュー":
- cancel event
- if event-item is name tag named "&c&lギルド一覧" with lore "&e現在のギルドの一覧を表示する":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- open chest inventory with 6 row named "&a&lギルド一覧" to player
- set {_a} to 0
- loop {guild::*}:
- set {_c} to 6
- set {_b} to gold ingot
- #set the name of the {_b} to "&e%{guild.name.%loop-index%}%"
- set line 1 of lore of {_b} to "&dレベル:&c%{guild.level.%loop-index%}%"
- set line 2 of lore of {_b} to "&dメンバー数:&c%size of {guild.%loop-index%.member::*}%/%{guild.membercap.%loop-index%}%"
- set line 3 of lore of {_b} to "&d次のアップグレードまで:&c%{guild.moneybal.%loop-index%}%/%{guild.needmoney.%loop-index%}%"
- set line 4 of lore of {_b} to "&dギルドの総キル数:&c%{guild.kill::%loop-index%}%"
- set line 5 of lore of {_b} to "&b--Member--"
- loop {guild.%loop-index%.member::*}:
- set line {_c} of lore of {_b} to "&a%loop-index-2%"
- add 1 to {_c}
- set slot {_a} of player's current inventory to {_b} named "&e%{guild.name.%loop-index%}%"
- add 1 to {_a}
- else if event-item is red wool named "&c&lギルドを脱会する" with lore "&e入会しているギルドから脱会する":
- if {guild.%{guild.membername.%player%}%.member::%player%} is not set:
- close player's inventory
- send "&d[GuildSystem]&e貴方はギルドに入会していません!"
- stop
- if {guild::%player%} is true:
- close player's inventory
- send "&d[GuildSystem]&e貴方はギルド主なので、脱会はできません!(ギルドを削除することはできます)"
- stop
- open chest inventory with 1 row named "&c&l本当にギルドを脱会しますか?" to player
- set slot 2 of player's current inventory to lime dye named "&eもちろん!"
- set slot 6 of player's current inventory to grey dye named "&cやっぱりヤダ!"
- else if event-item is gold block named "&c&lギルド作成" with lore "&e自分のギルドを作成する" and "&e費用:&b1000ペル":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- if {guild::%player%} is set:
- send "&d[GuildSystem]&e既に貴方はギルドを作成しています" to player
- close player's inventory
- play sound "ENTITY_VILLAGER_AMBIENT" with volume 2 and pitch 1 to the player
- stop
- if {money::%player%} >= 1000:
- open chest inventory with 1 row named "&c&l本当にギルドを作成しますか?" to player
- set slot 2 of player's current inventory to lime dye named "&eもちろん!"
- set slot 6 of player's current inventory to grey dye named "&cやっぱりヤダ!"
- else:
- close player's inventory
- play sound "ENTITY_VILLAGER_AMBIENT" with volume 0.8 and pitch 1 to the player
- send "&d[GuildSystem]&eギルド作成費用(1000ペル)が足りません!" to player
- else if event-item is ender pearl named "&c&l自分のギルドを見る" with lore "&e自分のギルドの情報を表示する" and "&a(ギルドのオーナーは管理画面を表示します)":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- if {guild::%player%} is true:
- open chest inventory with 1 row named "&a&lギルド管理メニュー" to player
- set slot 0 of player's current inventory to book named "&dギルドの状態を確認する" with lore "&e名前:&c%{guild.name.%player%}%" and "&eレベル:&c%{guild.level.%player%}%" and "&eメンバーの数:&c%size of {guild::%player%.member::*}%/%{guild.membercap.%player%}%" and "&eアップグレードまで:&c%{guild.moneybal.%player%}%/%{guild.needmoney.%player%}%"
- set slot 1 of player's current inventory to anvil named "&aギルドの名前を変更する" with lore "&e金床に名前を入力し、完成欄の金床をクリックしてください"
- set slot 2 of player's current inventory to diamond sword named "&cギルドのメンバーの管理" with lore "&eメンバーの状態の確認、脱会などが出来ます"
- set slot 3 of player's current inventory to enchanted book named "&eギルドスキルの変更" with lore "&c未実装"
- set slot 4 of player's current inventory to golden carrot named "&dギルドにプレイヤーを招待する" with lore "&eクリックした後、チャットに" and "&e招待したい人の名前を入力してください!" and "&e相手が承認すると、入会します"
- set slot 5 of player's current inventory to bed named "&eギルドのホーム地点を決める" with lore "&c未実装"
- set slot 8 of player's current inventory to redstone block named "&cギルドを削除する" with lore "&e自分の保有しているギルドを削除します"
- else if {guild.membername.%player%} is set:
- open chest inventory with 1 row named "&a&lギルドの情報" to player
- set slot 4 of player's current inventory to book named "&dギルドの状態を確認する" with lore "&eレベル:&c%{guild.level.%{guild.membername.%player%}%}%" and "&eメンバーの数:&c%size of {guild::%{guild.membername.%player%}%.member::*}%/%{guild.membercap.%{guild.membername.%player%}%}%" and "&eアップグレードまで:&c%{guild.moneybal.%{guild.membername.%player%}%}%/%{guild.needmoney.%{guild.membername.%player%}%}%"
- else:
- close player's inventory
- send "&d[GuildSystem]&e貴方はまだギルドに加入していません!"
- else if name of clicked inventory is "&a&lギルドの情報":
- cancel event
- else if name of clicked inventory is "&c&l本当にギルドを脱会しますか?":
- if event-item is lime dye named "&eもちろん!":
- delete {guild.%{guild.membername.%player%}%.member::%player%}
- delete {guild.membername.%player%}
- delete {guild.playerkill.%player%}
- close player's inventory
- play sound "BLOCK_NOTE_PLING" with volume 0.8 and pitch 1 to the player
- send "&d[GuildSystem]&eギルドを脱会しました!"
- else if event-item is grey dye named "&cやっぱりヤダ!":
- close player's inventory
- play sound "ENTITY_VILLAGER_AMBIENT" with volume 0.8 and pitch 1 to the player
- else if name of clicked inventory is "&a&lギルド管理メニュー":
- cancel event
- if event-item is anvil named "&aギルドの名前を変更する" with lore "&e金床に名前を入力し、完成欄の金床をクリックしてください":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- set {anvil.%player%} to true
- open anvil gui named "ギルドの名前の変更" with icon anvil text "ここに名前を入力してね!" to player
- else if event-item is redstone block named "&cギルドを削除する" with lore "&e自分の保有しているギルドを削除します":
- open chest inventory with 1 row named "&c&l本当にギルドを削除しますか?" to player
- set slot 2 of player's current inventory to lime dye named "&eもちろん!" with lore "&c削除した場合、ギルドに関するデーターをすべて消去します"
- set slot 6 of player's current inventory to grey dye named "&cやっぱりヤダ!"
- else if event-item is golden carrot named "&dギルドにプレイヤーを招待する" with lore "&eクリックした後、チャットに" and "&e招待したい人の名前を入力してください!" and "&e相手が承認すると、入会します":
- set {_b} to size of {guild.%player%.member::*}
- if {guild.membercap.%player%} <= {_b}:
- send "&d[GuildSystem]&eプレイヤー数が上限に達しています!(アップグレードで上限を増やすことができます!)"
- stop
- set {invite.%player%} to true
- close player's inventory
- send "&d[GuildSystem]&e招待する人の名前を入力してください!(オンライン状態じゃないと招待できません!)"
- else if event-item is diamond sword named "&cギルドのメンバーの管理" with lore "&eメンバーの状態の確認、脱会などが出来ます":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- open chest inventory with 6 row named "&a&lメンバー一覧" to player
- set {_a} to 0
- loop {guild.%player%.member::*}:
- set slot {_a} of player's current inventory to gold ingot named "&e%loop-index%"
- add 1 to {_a}
- else if event-item is enchanted book named "&eギルドスキルの変更":
- play sound "BLOCK_NOTE_XYLOPHONE" with volume 0.8 and pitch 1 to the player
- set {_a} to 0
- open chest inventory with 1 row named "&a&lギルドスキル一覧" to player
- loop 9 times:
- set slot {_a} of player's current inventory to gray wool named "&c未開放です・・・" with lore "&eギルドのレベルアップで解放されます!" with lore "&d必要レベル:&b%{_a}+1%"
- add 1 to {_a}
- else if name of clicked inventory is "&c&l本当にギルドを削除しますか?":
- cancel event
- if event-item is lime dye named "&eもちろん!" with lore "&c削除した場合、ギルドに関するデーターをすべて消去します":
- set {deleteguild.%player%} to true
- send "&d[GuildSystem]&e[最終確認]本当にギルドを削除しますか?yかnで答えてください(y=はい,n=いいえ)"
- close player's inventory
- else if event-item is gray dye named "&cやっぱりヤダ!":
- play sound "ENTITY_VILLAGER_AMBIENT" with volume 0.8 and pitch 1 to the player
- close player's inventory
- else if name of clicked inventory is "&a&lギルド一覧":
- cancel event
- else if name of clicked inventory is "&c&l本当にギルドを作成しますか?":
- cancel event
- if event-item is lime dye named "&eもちろん!":
- loop all players:
- play sound "ENTITY_WITHER_AMBIENT" with volume 0.8 and pitch 1 to the loop-player
- remove 1000 from {money::%player%}
- set {guild::%player%} to true
- set {guild.name.%player%} to "%player%のギルド"
- set {guild.%player%.admin::%player%} to player
- set {guild.%player%.member::%player%} to player
- set {guild.gilname.%player%} to player
- set {guild.membername.%player%} to player
- set {guild.level.%player%} to 1
- set {guild.moneybal.%player%} to 0
- set {guild.needmoney.%player%} to 5000
- set {guild.membercap.%player%} to 3
- set {guild.kill::%player%} to 0
- set {guild.death.%player%} to 0
- set {guild.getmoney.%player%} to 1
- close player's inventory
- broadcast "&d[GuildSystem]&e%player%さんがギルドを作成しました!"
- else if event-item is gray dye named "&cやっぱりヤダ!":
- play sound "ENTITY_VILLAGER_AMBIENT" with volume 0.8 and pitch 1 to the player
- close player's inventory
- else if name of clicked inventory is "&a&l設定":
- cancel event
- if event-item is lime dye named "キルログ表示" with lore "&e現在&dON" and "&aON:キルログを表示" and "&bOFF:キルログを非表示":
- clear {setting.killlog::%player%}
- send "&a[Setting]&eキルログ表示を&dオフ&aにしました!"
- play sound "BLOCK_NOTE_PLING" with volume 0.8 and pitch 1 to the player
- close player's inventory
- else if event-item is grey dye named "キルログ表示" with lore "&e現在&dOFF" and "&aON:キルログを表示" and "&bOFF:キルログを非表示":
- set {setting.killlog::%player%} to player
- send "&a[Setting]&eキルログ表示を&bオン&aにしました!"
- play sound "BLOCK_NOTE_PLING" with volume 0.8 and pitch 2 to the player
- close player's inventory
- else if name of clicked inventory is "&a&lランキング一覧":
- cancel event
- else if name of clicked inventory is "&a&lスキル変更":
- cancel event
- if event-item is not air:
- play sound "BLOCK_NOTE_PLING" with volume 0.8 and pitch 1 to the player
- if event-item is {hel1}:
- set {skill%player%} to 1
- send "&5[システム]&c&lスキルを&e新兵&c&lに変更しました"
- set the player's walk speed to 0.25
- set the max health of the player to 20
- set player's helmet to unbreakable {hel1}
- close player's inventory
- else if event-item is {hel2}:
- set {skill%player%} to 2
- send "&5[システム]&c&lスキルを&e鉄壁&c&lに変更しました"
- set the max health of the player to 24
- heal the player
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel2}
- close player's inventory
- else if event-item is {hel3}:
- set {skill%player%} to 3
- send "&5[システム]&c&lスキルを&e忍者&c&lに変更しました"
- set the max health of the player to 20
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel3}
- close player's inventory
- else if event-item is {hel4}:
- set {skill%player%} to 4
- send "&5[システム]&c&lスキルを&e職業軍人&c&lに変更しました"
- set the max health of the player to 20
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel4}
- close player's inventory
- else if event-item is {hel5}:
- set {skill%player%} to 5
- send "&5[システム]&c&lスキルを&e衛生兵&c&lに変更しました"
- set the max health of the player to 20
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel5}
- close player's inventory
- else if event-item is {hel6}:
- set {skill%player%} to 6
- send "&5[システム]&c&lスキルを&e狩人&c&lに変更しました"
- set the max health of the player to 20
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel6}
- close player's inventory
- else if event-item is {hel7}:
- set {skill%player%} to 7
- send "&5[システム]&c&lスキルを&e豆腐&c&lに変更しました"
- set the max health of the player to 15
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel7}
- close player's inventory
- else if event-item is {hel8}:
- set {skill%player%} to 8
- send "&5[システム]&c&lスキルを&e範馬勇次郎&c&lに変更しました"
- set the max health of the player to 17
- set the player's walk speed to 0.17
- set player's helmet to unbreakable {hel8}
- close player's inventory
- else if event-item is {hel9}:
- set {skill%player%} to 9
- send "&5[システム]&c&lスキルを&e賞金首&c&lに変更しました"
- set the max health of the player to 20
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel9}
- loop all players:
- add 1 to {_a}
- if {_a} is 1:
- send "&a[賞金首システム]&eプレイヤーが他に存在しません!他にプレイヤーがいる時に再度このスキルを選択してください!"
- loop all players:
- loop-player is not event-player
- {fieldmenu.%loop-player%} is true
- set {_bounty::%loop-player%} to loop-player
- set {_boun} to a random element out of {_bounty::*}
- set {bounty.%player%::%{_boun}%} to {_boun}
- set {bounty::%player%} to {_boun}
- set {bounty.player.%player%} to player
- close player's inventory
- else if event-item is {hel10}:
- set {skill%player%} to 10
- send "&5[システム]&c&lスキルを&e高速兵&c&lに変更しました"
- set the max health of the player to 14
- set the player's walk speed to 0.29
- set player's helmet to unbreakable {hel10}
- close player's inventory
- else if event-item is {hel11}:
- set {skill%player%} to 11
- send "&5[システム]&c&lスキルを&eギャンブラー&c&lに変更しました"
- set the max health of the player to 20
- set the player's walk speed to 0.20
- set player's helmet to unbreakable {hel11}
- close player's inventory
- heal the player
- if {skill%player%} is not 9:
- delete {bounty::%player%}
- delete {bounty.player.%player%}
- else if name of clicked inventory is "&a&lアビリティ変更":
- cancel event
- if event-item is not air:
- play sound "entity.player.levelup" with volume 0.8 and pitch 1 to the player
- loop {AbilityNumber} time:
- if event-item is {abi.%loop-number%}:
- set {abi.%player%} to loop-number
- send "&5[システム]&c&lアビリティを&e%{abilityname.%loop-number%}%&c&lに変更しました"
- close player's inventory
- set {abi.ct.%player%} to true
- on chat:
- if {invite.%player%} is true:
- set {_p} to message parsed as player
- cancel event
- if {recieve.%message%} is true or false:
- send "&d[GuildSystem]&e既に招待が送られている、または他の人から招待を受けています。時間をおいて再度お試しください。"
- delete {invite.%player%}
- stop
- if {guild.membername.%message%} is set:
- send "&d[GuildSystem]&e指定したプレイヤーはすでにギルドに加入しています!"
- delete {invite.%player%}
- stop
- set {_player} to true
- loop all players:
- if message is loop-player:
- set {_player} to false
- if {_player} is false:
- play sound "entity.cow.ambient" with volume 1 and pitch 1 to {_p}
- set {invitename.%{_p}%} to player
- send "&d[GuildSystem]&e%{_p}%に招待を送りました!"
- send "&d[GuildSystem]%{guild.name.%player%}%&bから招待が送られました!yかnを選択してください!y=承認,n=拒否" to {_p}
- play sound "entity.cow.ambient" with volume 1 and pitch 1 to {_p}
- delete {invite.%player%}
- set {recieve.%{_p}%} to true
- wait 12 second
- if {recieve.%{_p}%} is true:
- send "&d[GuildSystem]&e相手からの承認が得られませんでした(12秒以上経過)"
- send "&e12秒経過したので、招待を拒否しました・・・" to {_p}
- delete {recieve.%{_p}%}
- else:
- set {_once} to false
- send "&d[GuildSystem]&eプレイヤーが存在しません!名前をご確認ください・・・"
- delete {invite.%player%}
- else if {recieve.%player%} is true:
- if message is "y" or "yes":
- send "&d[GuildSystem]&e招待を承認しました!"
- play sound "entity.firework.twinkle" with volume 1 and pitch 1 to the player
- set {guild.%{invitename.%player%}%.member::%player%} to player
- set {guild.membername.%player%} to {invitename.%player%}
- send "&d[GuildSystem]&e%player%さんが承認しました!" to {invitename.%player%}
- delete {invitename.%{_p}%}
- delete {recieve.%player%}
- else if message is "n" or "no":
- send "&d[GuildSystem]&e招待を拒否しました・・・"
- delete {recieve.%player%}
- send "&d[GuildSystem]&e%player%さんが招待を拒否しました・・・" to {invitename.%player%}
- play sound "entity.cow.ambient" with volume 1 and pitch 1 to the player
- else:
- send "&d[GuildSystem]&eyかnでの入力をお願いします!(y=承認,n=拒否)"
- play sound "item.flintandsteel.use" with volume 1 and pitch 1 to the player
- delete {invitename.%player%}
- cancel event
- else if {deleteguild.%player%} is true:
- if message is "y" or "yes":
- delete {guild::%player%}
- delete {guild.owner.%player%}
- loop {guild.%player%.member::*}:
- delete {guild.%player%.member::%loop-index%}
- delete {guild.membername.%loop-index%}
- delete {guild.playerkill.%loop-index%}
- loop {guild.%player%.admin::*}:
- delete {guild.%player%.admin::%loop-index%}
- delete {guild.level.%player%}
- delete {guild.moneybal.%player%}
- delete {guild.needmoney.%player%}
- delete {guild.membercap.%player%}
- delete {guild.kill::%player%}
- delete {guild.death.%player%}
- delete {guild.getmoney.%player%}
- send "&d[GuildSystem]&eギルドの削除が完了しました!"
- play sound "entity.firework.twinkle" with volume 1 and pitch 1 to the player
- delete {deleteguild.%player%}
- cancel event
- else if message is "n" or "no":
- send "&d[GuildSystem]&eギルドの削除をやめました・・・"
- play sound "entity.cow.ambient" with volume 1 and pitch 1 to the player
- delete {deleteguild.%player%}
- cancel event
- else:
- send "&d[GuildSystem]&eyかnでの入力をお願いします!(y=はい,n=いいえ)"
- play sound "item.flintandsteel.use" with volume 1 and pitch 1 to the player
- on anvil gui done:
- {anvil.%player%} is true
- loop {guild::*}:
- if event-string == {guild.name.%loop-index%}:
- send "&d[GuildSystem]&eギルドの名前は既にほかのギルドに使われています!"
- delete {anvil.%player%}
- stop
- if length of event-string > 3:
- if length of event-string < 12:
- set {guild.name.%player%} to "%event-string%"
- send "&d[GuildSystem]&eギルドの名前を&b%event-string%&eに変更しました!"
- play sound "BLOCK_NOTE_PLING" with volume 0.8 and pitch 1 to the player
- else:
- send "&d[GuildSystem]&e12文字より短くしてください!"
- play sound "ENTITY_VILLAGER_AMBIENT" with volume 0.8 and pitch 1 to the player
- else:
- send "&d[GuildSystem]&e3文字より多くしてください!"
- play sound "ENTITY_VILLAGER_AMBIENT" with volume 0.8 and pitch 1 to the player
- delete {anvil.%player%}
- on damage:
- wait 0 tick
- damage was caused by poison
- set victim's no damage tick to 0
- every tick:
- loop {bounty::*}:
- make loop-value glow for {bounty.player.%loop-index%}
Add Comment
Please, Sign In to add comment