Advertisement
taktie0304

Untitled

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