Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #ここで武器の値段を変更します。(数を書かないといけない。)
- ar-15: 13000
- command /weapon:
- trigger:
- open chest with 3 rows named "&8&lショップ選択メニュー" to player
- wait 3 ticks
- format slot 10 of player with 409 named "&6&l>> &7Primary ショップメニュー" to close then run [execute player command "/primaryshop"]
- format slot 12 of player with orange dye named "&6&l>> &7Secondary ショップメニュー" to close then run [execute player command "/secondaryshop"]
- format slot 14 of player with egg named "&6&l>> &7Grenade ショップメニュー" to close then run [execute player command "/grenadeshop"]
- wait 1 tick
- format slot 16 of player with potion named "&6&l>> &7HealItem ショップメニュー" to close then run [execute player command "/healitemshop"]
- command /primaryshop:
- trigger:
- wait 2 ticks
- open chest with 2 rows named "&7&lショップ: Assault" to player
- wait 3 ticks
- format slot 4 of player with wooden door named "&6&l>> &7&l戻る" to close then run [execute player command "/weaponrate"]
- format slot 8 of player with arrow named "&8&l次のページ" to close then run [execute player command "/weaponrate"]
- format slot 9 of player with stone shovel named "&f&lAKM" with lore "&3&l$ 2000||&c<取得済み>||&b||&7装填数:&f30||&7リロード時間:&f40.0ticks||&7威力:&f3||&7ヘッドショット:&f2||&7スニーク:&f0.6||&7スコープ:&f0.4||&7弾速:&f100||&7連射間隔:&f4ticks||&7バースト:&f2||&7精度:&f1.3" to close then run [message "&e既に取得しております。"]
- if {shot.have.ar-15::%player%} is true:
- format slot 10 of player with diamond named "&f&lAR-15" with lore "&3&l$ {@ar-15}||&c<取得済み>||&b||&7装填数:&f30||&7リロード時間:&f40.0ticks||&7威力:&f3||&7ヘッドショット:&f2||&7スニーク:&f0.6||&7スコープ:&f0.4||&7弾速:&f100||&7連射間隔:&f4ticks||&7バースト:&f2||&7精度:&f1.3" to close then run [execute player command "/buygun ar-15"]
- else:
- format slot 10 of player with diamond named "&f&lAR-15" with lore "&3&l$ {@ar-15}||&b||&7装填数:&f30||&7リロード時間:&f40.0ticks||&7威力:&f3||&7ヘッドショット:&f2||&7スニーク:&f0.6||&7スコープ:&f0.4||&7弾速:&f100||&7連射間隔:&f4ticks||&7バースト:&f2||&7精度:&f1.3" to close then run [execute player command "/buygun ar-15"]
- on command:
- if command is "weaponrate":
- wait 3 ticks
- cancel event
- execute player command "/weapon"
- command /money [<text>] [<number>] [<player>]:
- trigger:
- if arg-1 is not set:
- message "&8&l所持金 &7&l%{money::%player%}%"
- if arg-1 is set:
- if player is an op:
- if arg-2 is not set:
- message "&a&b/money add <数> (ユーザー), /money remove <数> (ユーザー)"
- if arg-2 is set:
- if arg-3 is not set:
- if arg-1 is "add":
- add arg-2 to {money::%player%}
- message "&6%arg-2%&a円をチャージしました。"
- if arg-1 is "remove":
- remove arg-2 from {money::%player%}
- message "&6%arg-2%&a円を没収しました。"
- if arg-3 is set:
- if arg-1 is "add":
- add arg-2 to {money::%player%}
- message "&6%arg-2%&a円を%arg-3%にチャージしました。"
- send "&bあなたは運営により、&a%arg-2%&b円を受け取りました。" to arg-3
- if arg-1 is "remove":
- remove arg-2 from {money::%player%}
- message "&6%arg-2%&a円を%arg-3%から没収しました。"
- send "&cあなたは運営により、&a%arg-2%&c円を没収されました。" to arg-3
- else:
- message "&cYou are not operator"
- command /paymoney [<player>] [<number>]:
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- if arg-1 is player:
- message "&c自分には送信できません。"
- else:
- if arg-2 is greater than or equal to {money::%player%}:
- message "&cあなたは&6%{money::%player%}%&c円しか所持していません。"
- else:
- remove arg-2 from {money::%player%}
- add arg-2 to {money::%arg-1%}
- message "&6%arg-2%&b円を&d%arg-1%&bさんに送信しました。"
- send "&bあなたは、&d%player%&bさんから&6%arg-2%&bを支援させていただきました。" to arg-1
- if arg-2 is not set:
- message "&c有効数字を入力してください。"
- if arg-1 is not set:
- message "&8/payout <送信相手> <数>"
- command /buygun [<text>]:
- trigger:
- if arg-1 is set:
- if arg-1 is "AR-15":
- if {shot.have.ar-15::%player%} is true:
- message "&e既に取得しております。"
- else:
- if {money::%player%} is greater than or equal to {@ar-15}:
- set {shot.have.ar-15::%player%} to true
- message "&aAR-15を購入しました。"
- remove {@ar-15} from {money::%player%}
- else:
- message "&a所持金が足りておりません。&e&l${@ar-15}&bが必要となります。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement