Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /shop [<text>]:
- trigger:
- if arg 1 is "yieayiulaevnfe":
- add 1000 to {coin.%uuid of player%}
- if arg 1 is "byikfweuibvfew":
- add 5000 to {coin.%uuid of player%}
- if arg 1 is "hnfewfbbfwygbb":
- open chest with 4 row named "武器購入" to player
- set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
- set slot 10 of player's current inventory to gold horse armor named "&a&lAK-47" with lore "&62700コイン必要" and "&c赤チーム専用" and "&7現在%{ak47.%uuid of player%}%個所持" and " " and "&eクリックで10個購入"
- if {ak47use.%uuid of player%} is not set:
- set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
- else:
- set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
- set slot 11 of player's current inventory to gold horse armor named "&a&lM4A4" with lore "&63100コイン必要" and "&9青チーム専用" and "&7現在%{m4a4.%uuid of player%}%個所持" and " " and "&eクリックで10個購入"
- if {m4a4use.%uuid of player%} is not set:
- set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
- else:
- set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
- set slot 12 of player's current inventory to gold horse armor named "&5&lAWP" with lore "&64750コイン必要" and "&7全チーム兼用" and "&7現在%{awp.%uuid of player%}%個所持" and " " and "&eクリックで10個購入"
- if {awpuse.%uuid of player%} is not set:
- set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
- else:
- set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
- command /coin:
- trigger:
- send "&6%{coin.%uuid of player%}%&eコイン"
- on any movement:
- if {ak47.%uuid of player%} is not set:
- set {ak47.%uuid of player%} to 0
- if {m4a4.%uuid of player%} is not set:
- set {m4a4.%uuid of player%} to 0
- if {awp.%uuid of player%} is not set:
- set {awp.%uuid of player%} to 0
- if {coin.%uuid of player%} is not set:
- set {coin.%uuid of player%} to 0
- on rightclick on villager:
- cancel event
- open chest with 4 row named "武器購入" to player
- set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
- set slot 10 of player's current inventory to gold horse armor named "&a&lAK-47" with lore "&62700コイン必要" and "&c赤チーム専用" and "&7現在%{ak47.%uuid of player%}%個所持" and " " and "&eクリックで10個購入"
- if {ak47use.%uuid of player%} is not set:
- set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
- else:
- set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
- set slot 11 of player's current inventory to gold horse armor named "&a&lM4A4" with lore "&63100コイン必要" and "&9青チーム専用" and "&7現在%{m4a4.%uuid of player%}%個所持" and " " and "&eクリックで10個購入"
- if {m4a4use.%uuid of player%} is not set:
- set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
- else:
- set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
- set slot 12 of player's current inventory to gold horse armor named "&5&lAWP" with lore "&64750コイン必要" and "&7全チーム兼用" and "&7現在%{awp.%uuid of player%}%個所持" and " " and "&eクリックで10個購入"
- if {awpuse.%uuid of player%} is not set:
- set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
- else:
- set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
- on inventory click:
- if name of player's current inventory contains "武器購入":
- cancel event
- if clicked slot is 10:
- if {coin.%uuid of player%} >= 2700:
- remove 2700 from {coin.%uuid of player%}
- add 10 to {ak47.%uuid of player%}
- send "&aAK-47を10個分購入しました" to player
- make player execute command "/shop hnfewfbbfwygbb"
- else:
- send "&cコインが足りません" to player
- if clicked slot is 11:
- if {coin.%uuid of player%} >= 3100:
- remove 3100 from {coin.%uuid of player%}
- add 10 to {m4a4.%uuid of player%}
- send "&aM4A4を10個分購入しました" to player
- make player execute command "/shop hnfewfbbfwygbb"
- else:
- send "&cコインが足りません" to player
- if clicked slot is 12:
- if {coin.%uuid of player%} >= 4750:
- remove 4750 from {coin.%uuid of player%}
- add 10 to {awp.%uuid of player%}
- send "&aAWPを10個分購入しました" to player
- make player execute command "/shop hnfewfbbfwygbb"
- else:
- send "&cコインが足りません" to player
- if clicked slot is 19:
- if {ak47use.%uuid of player%} is not set:
- set {ak47use.%uuid of player%} to true
- else:
- delete {ak47use.%uuid of player%}
- make player execute command "/shop hnfewfbbfwygbb"
- if clicked slot is 20:
- if {m4a4use.%uuid of player%} is not set:
- set {m4a4use.%uuid of player%} to true
- else:
- delete {m4a4use.%uuid of player%}
- make player execute command "/shop hnfewfbbfwygbb"
- if clicked slot is 21:
- if {awpuse.%uuid of player%} is not set:
- set {awpuse.%uuid of player%} to true
- else:
- delete {awpuse.%uuid of player%}
- make player execute command "/shop hnfewfbbfwygbb"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement