taktie0304

Untitled

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