Advertisement
taktie0304

Untitled

Jul 24th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.76 KB | None | 0 0
  1. command /shop [<text>]:
  2. trigger:
  3. if arg 1 is "yieayiulaevnfe":
  4. add 1000 to {coin.%uuid of player%}
  5. if arg 1 is "byikfweuibvfew":
  6. add 5000 to {coin.%uuid of player%}
  7. if arg 1 is "hnfewfbbfwygbb":
  8. open chest with 4 row named "武器購入" to player
  9. set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
  10. 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個購入"
  11. if {ak47use.%uuid of player%} is not set:
  12. set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
  13. else:
  14. set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
  15. 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個購入"
  16. if {m4a4use.%uuid of player%} is not set:
  17. set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
  18. else:
  19. set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
  20. 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個購入"
  21. if {awpuse.%uuid of player%} is not set:
  22. set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
  23. else:
  24. set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
  25.  
  26. command /coin:
  27. trigger:
  28. send "&6%{coin.%uuid of player%}%&eコイン"
  29.  
  30. on any movement:
  31. if {ak47.%uuid of player%} is not set:
  32. set {ak47.%uuid of player%} to 0
  33. if {m4a4.%uuid of player%} is not set:
  34. set {m4a4.%uuid of player%} to 0
  35. if {awp.%uuid of player%} is not set:
  36. set {awp.%uuid of player%} to 0
  37. if {coin.%uuid of player%} is not set:
  38. set {coin.%uuid of player%} to 0
  39.  
  40. on rightclick on villager:
  41. cancel event
  42. open chest with 4 row named "武器購入" to player
  43. set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
  44. 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個購入"
  45. if {ak47use.%uuid of player%} is not set:
  46. set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
  47. else:
  48. set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
  49. 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個購入"
  50. if {m4a4use.%uuid of player%} is not set:
  51. set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
  52. else:
  53. set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
  54. 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個購入"
  55. if {awpuse.%uuid of player%} is not set:
  56. set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
  57. else:
  58. set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
  59.  
  60. on inventory click:
  61. if name of player's current inventory contains "武器購入":
  62. cancel event
  63. if clicked slot is 10:
  64. if {coin.%uuid of player%} >= 2700:
  65. remove 2700 from {coin.%uuid of player%}
  66. add 10 to {ak47.%uuid of player%}
  67. send "&aAK-47を10個分購入しました" to player
  68. make player execute command "/shop hnfewfbbfwygbb"
  69. else:
  70. send "&cコインが足りません" to player
  71. if clicked slot is 11:
  72. if {coin.%uuid of player%} >= 3100:
  73. remove 3100 from {coin.%uuid of player%}
  74. add 10 to {m4a4.%uuid of player%}
  75. send "&aM4A4を10個分購入しました" to player
  76. make player execute command "/shop hnfewfbbfwygbb"
  77. else:
  78. send "&cコインが足りません" to player
  79. if clicked slot is 12:
  80. if {coin.%uuid of player%} >= 4750:
  81. remove 4750 from {coin.%uuid of player%}
  82. add 10 to {awp.%uuid of player%}
  83. send "&aAWPを10個分購入しました" to player
  84. make player execute command "/shop hnfewfbbfwygbb"
  85. else:
  86. send "&cコインが足りません" to player
  87. if clicked slot is 19:
  88. if {ak47use.%uuid of player%} is not set:
  89. set {ak47use.%uuid of player%} to true
  90. else:
  91. delete {ak47use.%uuid of player%}
  92. make player execute command "/shop hnfewfbbfwygbb"
  93. if clicked slot is 20:
  94. if {m4a4use.%uuid of player%} is not set:
  95. set {m4a4use.%uuid of player%} to true
  96. else:
  97. delete {m4a4use.%uuid of player%}
  98. make player execute command "/shop hnfewfbbfwygbb"
  99. if clicked slot is 21:
  100. if {awpuse.%uuid of player%} is not set:
  101. set {awpuse.%uuid of player%} to true
  102. else:
  103. delete {awpuse.%uuid of player%}
  104. make player execute command "/shop hnfewfbbfwygbb"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement