Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mi <integer>:
- trigger:
- if arg is more than player's money:
- message "&cこの金額はアイテム化出来ません。所持金以下にしてください。(所持金:%player's money%)"
- else:
- set {%player%.amount} to arg
- remove {%player%.amount} from player's money
- while {%player%.amount} is more than 9999:
- give a paper named "&2&l10000和洋" with lore "&b発行元:&l採掘さば中央銀行", "", and "&aサーバー通貨" to the player
- remove 10000 from {%player%.amount}
- while {%player%.amount} is more than 999:
- give a paper named "&2&l1000和洋" with lore "&b発行元:&l採掘さば中央銀行", "", and "&aサーバー通貨" to the player
- remove 1000 from {%player%.amount}
- while {%player%.amount} is more than 99:
- give a paper named "&2&l100和洋" with lore "&b発行元:&l採掘さば中央銀行", "", and "&aサーバー通貨" to the player
- remove 100 from {%player%.amount}
- while {%player%.amount} is more than 9:
- give a paper named "&2&l10和洋" with lore "&b発行元:&l採掘さば中央銀行", "", and "&aサーバー通貨" to the player
- remove 10 from {%player%.amount}
- give {%player%.amount} of papers named "&2&l1和洋" with lore "&b発行元:&l採掘さば中央銀行", "", and "&aサーバー通貨" to the player
- message "&a通貨のアイテム化に成功しました。"
- on rightclick:
- if player's tool's name is "&2&l10000和洋":
- add 10000 to player's money
- remove 1 of player's tool from player's inventory
- if player's tool's name is "&2&l1000和洋":
- add 1000 to player's money
- remove 1 of player's tool from player's inventory
- if player's tool's name is "&2&l100和洋":
- add 100 to player's money
- remove 1 of player's tool from player's inventory
- if player's tool's name is "&2&l10和洋":
- add 10 to player's money
- remove 1 of player's tool from player's inventory
- if player's tool's name is "&2&l1和洋":
- add 1 to player's money
- remove 1 of player's tool from player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement