Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:<ind>
- wait 2 second<ind>
- if {%player%::aucitem} is set:<ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&6オークション中にログアウトしたため %{%player%::aucmel}%メルを支払いました"<ind>
- remove {%player%::aucmel} from {%player%::mel}<ind>
- send "&6‡&7====================================================================&6‡"<ind>
- send "&6オークション中にログアウトしたためアイテムを戻しました。"<ind>
- loop 36 times: <ind>
- if slot (loop-number - 1) of player's inventory is air: <ind>
- give {%player%::aucitem} to player<ind>
- delete {%player%::aucitem}<ind>
- send "&6‡&7====================================================================&6‡" <ind>
- stop <ind>
- drop {aucsys::itembase} at location of {aucsys::buyr}<ind>
- send "&6‡インベントリに空きが無かった為足元にアイテムをドロップしました"<ind>
- send "&6‡&7====================================================================&6‡"<ind>
- delete {%player%::aucitem}<ind>
- delete {%player%::aucmel}<ind>
- <ind>
- command /deleteauc [<text>]:<ind>
- permission: sk.admin<ind>
- trigger:<ind>
- if arg-1 is not set:<ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c今行っているAuction関係をすべて消去します!!!"<ind>
- send "&cそれでもいいなら/deleteauc confirm"<ind>
- send "&6‡&7====================================================================&6‡" <ind>
- if arg-1 is not "confirm":<ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c今行っているAuction関係をすべて消去します!!!"<ind>
- send "&cそれでもいいなら/deleteauc confirm"<ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else if arg-1 is "confirm":<ind>
- delete {aucsys::*}<ind>
- <ind>
- command /auchelp: <ind>
- aliases: /auctionhelp <ind>
- trigger: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c/auction <開始金額> [<即決金額(任意)>]&4: &6手に持っているアイテムをオークションに出します" <ind>
- send "&c/auctionstop &4: &6自分が開催しているオークションを中止します" <ind>
- send "&c/auctionbuy <金額>&4: &6開催しているオークションに入札します" <ind>
- send "&c/auctiondisplay &4: &6出品された品を確認します" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- <ind>
- command /auc <integer> [<integer>]: <ind>
- aliases: /auction <ind>
- usage: /auction <開始金額> [<即決金額(任意)>] <ind>
- permission: auction.start <ind>
- trigger: <ind>
- if {aucsys::cond} is 1: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c今は他の誰かがオークションをしています" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- if player's tool is air: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c無は出品できません" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- if arg 1 is less than 1: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c開始金額は1メル以上にしてください" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- if arg 2 is set: <ind>
- if arg 2 is less than arg 1: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c即決金額は開始金額より高くしてください" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- set {aucsys::selr} to player <ind>
- set {aucsys::cond} to 1 <ind>
- set {aucsys::valu} to arg 1 <ind>
- set {aucsys::itembase} to player's tool<ind>
- set {aucsys::time} to 120<ind>
- set {aucsys::dire} to arg 2 <ind>
- delete player's tool <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f&l%player%&6さんがオークションを始めました" <ind>
- broadcast "&6開始金額は&c%arg 1%メル" <ind>
- broadcast "&6即決金額は&4%arg 2%メル&6です" <ind>
- broadcast "&a/aucd&6で出品された品を確認できます" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- while {aucsys::time} is more than 0: <ind>
- if {aucsys::selr} is offline:<ind>
- set {%{aucsys::selr}%::aucitem} to {aucsys::itembase}<ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&c売っている人がオフラインになったのでオークションを終了します..."<ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- delete {aucsys::*}<ind>
- stop<ind>
- else if {aucsys::stop} is 1: <ind>
- delete {aucsys::*} <ind>
- stop <ind>
- else: <ind>
- remove 1 from {aucsys::time} <ind>
- if {aucsys::time} is 5, 10, 30, 60 or 120: <ind>
- broadcast "&7[&6Auction&7] &6%player%さんのオークションはあと%{aucsys::time}%秒で終わります" <ind>
- if {aucsys::time} is 0: <ind>
- if {aucsys::buyr} is set: <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f%player%&6さんのオークションが終了しました" <ind>
- broadcast "&f&l%{aucsys::buyr}%&6さんが&6&l%{aucsys::valu}%メル&6で落札しました" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- send "&6‡&6%{aucsys::valu}%メルを%{aucsys::selr}%に送りました" to {aucsys::buyr} <ind>
- send "&6‡&6%{aucsys::valu}%メルを%{aucsys::buyr}%から受け取りました" <ind>
- send "&6‡&7====================================================================&6‡" to {aucsys::buyr} <ind>
- send "&6‡&7====================================================================&6‡" to {aucsys::selr} <ind>
- aucend() <ind>
- stop <ind>
- else: <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f%player%&6さんのオークションが終了しました" <ind>
- broadcast "&6入札者は誰も居ませんでした" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- aucdead() <ind>
- wait 1 second <ind>
- else: <ind>
- set {aucsys::selr} to player <ind>
- set {aucsys::cond} to 1 <ind>
- set {aucsys::itembase} to player's tool<ind>
- set {aucsys::time} to 120 <ind>
- set {aucsys::valu} to arg 1 <ind>
- delete player's tool <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f&l%player%&6さんがオークションを始めました" <ind>
- broadcast "&6開始金額は&c%arg 1%メル&6です" <ind>
- broadcast "&a/aucd&6で出品された品を確認できます" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- while {aucsys::time} is more than 0: <ind>
- if {aucsys::selr} is offline:<ind>
- set {%{aucsys::selr}%::aucitem} to {aucsys::itembase}<ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡"<ind>
- broadcast "&c売っている人がオフラインになったのでオークションを終了します..."<ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- delete {aucsys::*}<ind>
- stop<ind>
- else if {aucsys::stop} is 1: <ind>
- delete {aucsys::*} <ind>
- stop <ind>
- else: <ind>
- remove 1 from {aucsys::time} <ind>
- if {aucsys::time} is 5, 10, 20, 30, 60 or 120: <ind>
- broadcast "&7[&6Auction&7] &6%player%さんのオークションはあと%{aucsys::time}%秒で終わります" <ind>
- if {aucsys::time} is 0: <ind>
- if {aucsys::buyr} is set: <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f%player%&6さんのオークションが終了しました" <ind>
- broadcast "&f&l%{aucsys::buyr}%&6さんが&6&l%{aucsys::valu}%メル&6で落札しました" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- <ind>
- <ind>
- send "&6‡&6%{aucsys::valu}%メルを%{aucsys::selr}%に送りました" to {aucsys::buyr} <ind>
- send "&6‡&6%{aucsys::valu}%メルを%{aucsys::buyr}%から受け取りました" <ind>
- send "&6‡&7====================================================================&6‡" to {aucsys::buyr} <ind>
- send "&6‡&7====================================================================&6‡"<ind>
- aucend() <ind>
- stop <ind>
- else: <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f%player%&6さんのオークションが終了しました" <ind>
- broadcast "&6入札者は誰も居ませんでした" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- aucdead() <ind>
- stop <ind>
- wait 1 second <ind>
- <ind>
- command /auctionstop: <ind>
- aliases: /aucs <ind>
- permission: auction.start <ind>
- trigger: <ind>
- if {aucsys::cond} is 1: <ind>
- if {aucsys::selr} is player: <ind>
- set {aucsys::stop} to 1 <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f%player%&6さんのオークションが中止されました" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- aucdead() <ind>
- else if player has the permission "sk.admin": <ind>
- set {aucsys::stop} to 1 <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f%{aucsys::selr}%&6さんのオークションは管理者によって中止されました" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- aucdead() <ind>
- else: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&cオークションの出品者以外は中止できません" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c今は誰もオークションをしていません" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- <ind>
- command /auctionbuy <integer>: <ind>
- aliases: /aucb<ind>
- permission: auction.bid <ind>
- usage: /auctionbuy <入札額(整数)> <ind>
- trigger: <ind>
- if player is not {aucsys::selr}: <ind>
- if {aucsys::cond} is not 1: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c今は誰もオークションをしていません" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- if arg is less than or equal to {aucsys::valu}: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c最高入札額より高く設定してください" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- if {%player%::mel} is less than arg: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c所持金が足りません" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- if {aucsys::dire} is set: <ind>
- if arg is more than or equal to {aucsys::dire}: <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&f%{aucsys::selr}%&6さんのオークションが終了しました" <ind>
- broadcast "&f&l%player%&6さんが&6&l%{aucsys::dire}%メル&6即決で落札しました" <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- set {aucsys::buyr} to player <ind>
- set {aucsys::stop} to 1 <ind>
- set {aucsys::valu} to {aucsys::dire}<ind>
- <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&6‡&6%{aucsys::valu}%メルを%{aucsys::selr}%に送りました"<ind>
- send "&6‡&6%{aucsys::valu}%メルを%{aucsys::buyr}%から受け取りました" to {aucsys::selr}<ind>
- send "&6‡&7====================================================================&6‡"<ind>
- send "&6‡&7====================================================================&6‡" to {aucsys::selr} <ind>
- aucend() <ind>
- stop <ind>
- else: <ind>
- set {aucsys::valu} to arg <ind>
- set {aucsys::buyr} to player <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&7[&6Auction&7] &6%player%さんが%arg%メルで入札" <ind>
- if {aucsys::time} is less than 10: <ind>
- broadcast "&7残り時間が10秒延長されます"<ind>
- add 10 to {aucsys::time} <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- set {aucsys::valu} to arg <ind>
- set {aucsys::buyr} to player <ind>
- broadcast "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- broadcast "&7[&6Auction&7] &6%player%さんが%arg%メルで入札" <ind>
- if {aucsys::time} is less than 10: <ind>
- broadcast "&7残り時間が10秒延長されます"<ind>
- add 10 to {aucsys::time} <ind>
- broadcast "&6‡&7====================================================================&6‡" <ind>
- else: <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&4&l!!!出品者は入札できません!!!" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- <ind>
- function aucend(): <ind>
- if {aucsys::buyr} is online:<ind>
- add {aucsys::valu} to {%{aucsys::selr}%::mel}<ind>
- loop 36 times: <ind>
- if slot (loop-number - 1) of {aucsys::buyr}'s inventory is air: <ind>
- give {aucsys::itembase} to {aucsys::buyr}<ind>
- remove {aucsys::valu} from {%{aucsys::buyr}%::mel}<ind>
- delete {aucsys::*} <ind>
- stop <ind>
- drop {aucsys::itembase} at location of {aucsys::buyr}<ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" to {aucsys::buyr}<ind>
- send "&6‡インベントリに空きが無かった為足元にアイテムをドロップしました" to {aucsys::buyr}<ind>
- send "&6‡&7====================================================================&6‡" to {aucsys::buyr}<ind>
- else:<ind>
- add {aucsys::valu} to {%{aucsys::selr}%::mel}<ind>
- set {%{aucsys::buyr}%::aucitem} to {aucsys::itembase}<ind>
- set {%{aucsys::buyr}%::aucmel} to {aucsys::valu}<ind>
- delete {aucsys::*} <ind>
- <ind>
- function aucdead(): <ind>
- loop 36 times: <ind>
- if slot (loop-number - 1) of {aucsys::selr}'s inventory is air: <ind>
- give {aucsys::itembase} to {aucsys::selr}<ind>
- delete {aucsys::*} <ind>
- stop <ind>
- drop {aucsys::itembase} at location of {aucsys::selr} <ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" to {aucsys::selr}<ind>
- send "&6‡インベントリに空きが無かった為足元にアイテムをドロップしました" to {aucsys::selr}<ind>
- send "&6‡&7====================================================================&6‡" to {aucsys::selr}<ind>
- delete {aucsys::*} <ind>
- <ind>
- command /aucd: <ind>
- aliases: /auctiondisplay<ind>
- trigger: <ind>
- if {aucsys::cond} is 1: <ind>
- open chest with 1 row named "&6Auction Display" to player <ind>
- wait 1 tick <ind>
- set {_q} to iron bars named "&b値札" <ind>
- if {aucsys::dire} is set: <ind>
- set line 1 of lore of {_q} to "&a現在&8: &6%{aucsys::valu}%メル" <ind>
- set line 2 of lore of {_q} to "&c即決&8: &6%{aucsys::dire}%メル" <ind>
- set line 3 of lore of {_q} to "&b最高入札者&8: &6%{aucsys::buyr}%" <ind>
- else: <ind>
- set line 1 of lore of {_q} to "&a現在&8: &6%{aucsys::valu}%メル" <ind>
- set line 2 of lore of {_q} to "&c即決&8: &6未設定" <ind>
- set line 3 of lore of {_q} to "&b最高入札者&8: &6%{aucsys::buyr}%" <ind>
- loop 9 times: <ind>
- set {_a} to loop-number - 1 <ind>
- set slot {_a} of player's current inventory to {_q} <ind>
- delete slot 4 of player's current inventory <ind>
- wait 1 tick <ind>
- set slot 4 of player's current inventory to {aucsys::itembase} <ind>
- else:<ind>
- send "&6‡&7==============================&6&lAuction&7==============================&6‡" <ind>
- send "&c今は誰もオークションをしていません" <ind>
- send "&6‡&7====================================================================&6‡" <ind>
- <ind>
- on inventory click: <ind>
- name of player's current inventory is "&6Auction Display" <ind>
- cancel event <ind>
- close player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement