Advertisement
taktie0304

Untitled

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