Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ah [<text>] [<number>]:
- trigger:
- if arg-1 is not set:
- if arg-2 is not set:
- open chest with 6 rows named "&3&l1ページ目" to player
- wait a tick
- set {uno1} to 1
- set {uno2} to 1
- if {ahs1} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 1"]
- add 1 to {uno1}
- add 1 to {uno2}
- if {ahs2} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 2"]
- add 1 to {uno1}
- add 1 to {uno2}
- if {ahs3} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 3"]
- add 1 to {uno1}
- add 1 to {uno2}
- if {ahs4} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 4"]
- add 1 to {uno1}
- add 1 to {uno2}
- if {ahs5} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 5"]
- add 1 to {uno1}
- add 1 to {uno2}
- if {ahs6} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 6"]
- add 1 to {uno1}
- add 1 to {uno2}
- if {ahs7} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 7"]
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 10
- loop 7 times:
- if {ahs%{uno2}%} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 19
- loop 7 times:
- if {ahs%{uno2}%} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 28
- loop 7 times:
- if {ahs%{uno2}%} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 37
- loop 7 times:
- if {ahs%{uno2}%} is true:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
- add 1 to {uno1}
- add 1 to {uno2}
- wait 1 tick
- format slot 45 of player with gray wool named "&7&l閉じる" to run [close inventory to player]
- format slot 53 of player with light green wool named "&a&l次ページへ" to run [make player execute command "ah2"]
- if arg-1 is "sell":
- if arg-2 is set:
- if {ahs1} is false:
- set {ah%{ser1}%} to tool of player
- set {ahs1} to true
- set {ahno%{ser1}%} to player
- set {ahnumber} to 1
- set {ahnedan%{ser1}%} to arg-2
- loop 64 times:
- set {_item} to held item of player
- remove 1 of {_item} from player
- if {_item} is air:
- stop loop
- message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
- stop
- if {ahs1} is true:
- set {one12} to 101
- loop 101 times:
- remove 1 from {ser%{one12}%}
- remove 1 from {one12}
- set {ahno%{ser1}%} to player
- add 1 to {ahnumber}
- set {ahs%{ahnumber}%} to true
- set {ah%{ser1}%} to tool of player
- set {ahnedan%{ser1}%} to arg-2
- loop 64 times:
- set {_item} to held item of player
- remove 1 of {_item} from player
- if {_item} is air:
- stop loop
- message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
- stop
- command /asup:
- permission: sk.admin
- trigger:
- set {ahnumber} to 0
- set {asu} to 1
- loop 101 times:
- set {ahs%{asu}%} to false
- add 1 to {asu}
- set {one12} to 1
- set {one13} to 101
- loop 101 times:
- set {ser%{one12}%} to {one13}
- add 1 to {one12}
- add 1 to {one13}
- set {_ponpon} to 1
- loop 101 times:
- set {ah%{_ponpon}%} to none
- set {ahnedan%{_ponpon}%} to none
- add 1 to {_ponpon}
- command /ah2:
- trigger:
- open chest with 6 rows named "&3&l2ページ目" to player
- set {uno1} to 1
- wait 1 tick
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 10
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 19
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 28
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 37
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- wait 1 tick
- format slot 45 of player with red wool named "&4&l前ページへ" to run [make player execute command "ah"]
- format slot 53 of player with light green wool named "&a&l次ページへ" to run [make player execute command "ah3"]
- command /ah3:
- trigger:
- open chest with 6 rows named "&3&l3ページ目" to player
- set {uno1} to 1
- wait 1 tick
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 10
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 19
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 28
- loop 7 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- set {uno1} to 37
- loop 2 times:
- format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
- add 1 to {uno1}
- add 1 to {uno2}
- format slot 45 of player with red wool named "&4&l前ページへ" to run [make player execute command "ah2"]
- format slot 53 of player with gray wool named "&7&l閉じる" to run [close inventory to player]
- command /cah <number>:
- trigger:
- if {ahs%arg-1%} is true:
- if {%player%.motikane} < {ahnedan%{ser%arg-1%}%}:
- message "&c所持金が不足しています"
- stop
- open chest with 1 rows named "&3&l購入画面" to player
- wait a tick
- format slot 1 of player with red wool named "&c&lキャンセル" to run [close inventory to player]
- format slot 4 of player with {ah%{ser%arg-1%}%} to be unstealable
- format slot 7 of player with light green wool named "&3&l%{ahnedan%{ser%arg-1%}%}%円で購入" to run [make player execute command "cah2 %arg-1%"]
- command /cah2 <number>:
- trigger:
- set {%player%.ahcon} to false
- close inventory to player
- give player {ah%{ser%arg-1%}%}
- add {ahnedan%{ser%arg-1%}%} to {%{ahno%{ser%arg-1%}%}%.motikane}
- set {_v} to 64
- remove {ahnedan%{ser%arg-1%}%} from {%player%.motikane}
- set {one20} to {ser%arg-1%} + 1
- set {one21} to {ser%arg-1%}
- loop 101 times:
- set {ah%{one21}%} to {ah%{one20}%}
- add 1 to {one21}
- add 1 to {one20}
- set {ahs%{ahnumber}%} to false
- remove 1 from {ahnumber}
- message "&b&lSystem &7&l≫ &a&l購入が正常に完了しました。"
- command /uru:
- trigger:
- open chest with 1 rows named "&9&kttt&r&3&lメニュー&9&kttt" to player
- wait a tick
- format slot 0 of player with gray glass pane to be unstealable
- format slot 1 of player with gray glass pane to be unstealable
- format slot 2 of player with gray glass pane to be unstealable
- format slot 4 of player with gray glass pane to be unstealable
- format slot 3 of player with orange wool named "&6&l購入メニュー" to run [make player execute command "ah"]
- format slot 5 of player with cyan wool named "&6&l出品メニュー" to run [make player execute command "anata"]
- format slot 6 of player with gray glass pane to be unstealable
- format slot 7 of player with gray glass pane to be unstealable
- format slot 8 of player with gray glass pane to be unstealable
- command /anata:
- trigger:
- set {piro} to 0
- loop 9 times:
- set {pine%{piro}%} to slot {piro} of player
- add 1 to {piro}
- set {piro} to 0
- open chest with 1 rows named "&9&kttt&r&3&l出品するアイテムの指定&9&kttt" to player
- wait a tick
- format slot {piro} of player with {pine0} to run [make player execute command "anah 0"]
- add 1 to {piro}
- format slot {piro} of player with {pine1} to run [execute player command "anah 1"]
- add 1 to {piro}
- format slot {piro} of player with {pine2} to run [execute player command "anah 2"]
- add 1 to {piro}
- format slot {piro} of player with {pine3} to run [execute player command "anah 3"]
- add 1 to {piro}
- format slot {piro} of player with {pine4} to run [execute player command "anah 4"]
- add 1 to {piro}
- format slot {piro} of player with {pine5} to run [execute player command "anah 5"]
- add 1 to {piro}
- format slot {piro} of player with {pine6} to run [execute player command "anah 6"]
- add 1 to {piro}
- format slot {piro} of player with {pine7} to run [execute player command "anah 7"]
- add 1 to {piro}
- format slot {piro} of player with {pine8} to run [execute player command "anah 8"]
- command /anah <number>:
- trigger:
- close inventory to player
- message "&b&lSystem &7&l≫ &a&l/sell <値段>で指定したアイテムの"
- message "&b&lSystem &7&l≫ &a&l値段を確定してください。"
- set {chatan.%player%} to true
- set {wana.%player%} to arg-1
- command /sell <number>:
- trigger:
- if {chatan.%player%} is true:
- set {_neko} to arg-1
- wait 1 tick
- if {_neko} is between 0 and 999999999:
- set {kingaku} to {_neko}
- make player execute command "/anahn"
- set {chatan.%player%} to false
- stop
- message "&b&lSystem &7&l≫ &c正常な値を入力してください。"
- set {chatan.%player%} to false
- stop
- message "&b&lSystem &7&l≫ &cメニューよりアイテムの指定を行ってください"
- command /anahn:
- trigger:
- if {ahs1} is false:
- set {ah%{ser1}%} to slot {wana.%player%} of player
- set {ahs1} to true
- set {ahno%{ser1}%} to player
- set {ahnumber} to 1
- set {ahnedan%{ser1}%} to {kingaku}
- set slot {wana.%player%} of player to air
- message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
- stop
- if {ahs1} is true:
- set {one12} to 101
- loop 101 times:
- remove 1 from {ser%{one12}%}
- remove 1 from {one12}
- set {ahno%{ser1}%} to player
- add 1 to {ahnumber}
- set {ahs%{ahnumber}%} to true
- set {ah%{ser1}%} to slot {wana.%player%} of player
- set {ahnedan%{ser1}%} to {kingaku}
- set slot {wana.%player%} of player to air
- message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
- stop
Advertisement
Add Comment
Please, Sign In to add comment