Advertisement
Blue_Tec

Untitled

Apr 7th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. options:
  2. #ここで武器の値段を変更します。(数を書かないといけない。)
  3. ar-15: 13000
  4.  
  5. command /weapon:
  6. trigger:
  7. open chest with 3 rows named "&8&lショップ選択メニュー" to player
  8. wait 3 ticks
  9. format slot 10 of player with 409 named "&6&l>> &7Primary ショップメニュー" to close then run [execute player command "/primaryshop"]
  10. format slot 12 of player with orange dye named "&6&l>> &7Secondary ショップメニュー" to close then run [execute player command "/secondaryshop"]
  11. format slot 14 of player with egg named "&6&l>> &7Grenade ショップメニュー" to close then run [execute player command "/grenadeshop"]
  12. wait 1 tick
  13. format slot 16 of player with potion named "&6&l>> &7HealItem ショップメニュー" to close then run [execute player command "/healitemshop"]
  14.  
  15. command /primaryshop:
  16. trigger:
  17. wait 2 ticks
  18. open chest with 2 rows named "&7&lショップ: Assault" to player
  19. wait 3 ticks
  20. format slot 4 of player with wooden door named "&6&l>> &7&l戻る" to close then run [execute player command "/weaponrate"]
  21. format slot 8 of player with arrow named "&8&l次のページ" to close then run [execute player command "/weaponrate"]
  22. 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既に取得しております。"]
  23. if {shot.have.ar-15::%player%} is true:
  24. 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"]
  25. else:
  26. 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"]
  27.  
  28. on command:
  29. if command is "weaponrate":
  30. wait 3 ticks
  31. cancel event
  32. execute player command "/weapon"
  33.  
  34. command /money [<text>] [<number>] [<player>]:
  35. trigger:
  36. if arg-1 is not set:
  37. message "&8&l所持金 &7&l%{money::%player%}%"
  38. if arg-1 is set:
  39. if player is an op:
  40. if arg-2 is not set:
  41. message "&a&b/money add <数> (ユーザー), /money remove <数> (ユーザー)"
  42. if arg-2 is set:
  43. if arg-3 is not set:
  44. if arg-1 is "add":
  45. add arg-2 to {money::%player%}
  46. message "&6%arg-2%&a円をチャージしました。"
  47. if arg-1 is "remove":
  48. remove arg-2 from {money::%player%}
  49. message "&6%arg-2%&a円を没収しました。"
  50. if arg-3 is set:
  51. if arg-1 is "add":
  52. add arg-2 to {money::%player%}
  53. message "&6%arg-2%&a円を%arg-3%にチャージしました。"
  54. send "&bあなたは運営により、&a%arg-2%&b円を受け取りました。" to arg-3
  55. if arg-1 is "remove":
  56. remove arg-2 from {money::%player%}
  57. message "&6%arg-2%&a円を%arg-3%から没収しました。"
  58. send "&cあなたは運営により、&a%arg-2%&c円を没収されました。" to arg-3
  59. else:
  60. message "&cYou are not operator"
  61.  
  62. command /paymoney [<player>] [<number>]:
  63. trigger:
  64. if arg-1 is set:
  65. if arg-2 is set:
  66. if arg-1 is player:
  67. message "&c自分には送信できません。"
  68. else:
  69. if arg-2 is greater than or equal to {money::%player%}:
  70. message "&cあなたは&6%{money::%player%}%&c円しか所持していません。"
  71. else:
  72. remove arg-2 from {money::%player%}
  73. add arg-2 to {money::%arg-1%}
  74. message "&6%arg-2%&b円を&d%arg-1%&bさんに送信しました。"
  75. send "&bあなたは、&d%player%&bさんから&6%arg-2%&bを支援させていただきました。" to arg-1
  76. if arg-2 is not set:
  77. message "&c有効数字を入力してください。"
  78. if arg-1 is not set:
  79. message "&8/payout <送信相手> <数>"
  80.  
  81. command /buygun [<text>]:
  82. trigger:
  83. if arg-1 is set:
  84. if arg-1 is "AR-15":
  85. if {shot.have.ar-15::%player%} is true:
  86. message "&e既に取得しております。"
  87. else:
  88. if {money::%player%} is greater than or equal to {@ar-15}:
  89. set {shot.have.ar-15::%player%} to true
  90. message "&aAR-15を購入しました。"
  91. remove {@ar-15} from {money::%player%}
  92. else:
  93. message "&a所持金が足りておりません。&e&l${@ar-15}&bが必要となります。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement