taktie0304

Untitled

Jun 3rd, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. command /buy [<text>] [<offline player>]:
  2. permission: skript.buy
  3. trigger:
  4. if arg 1 is "potato":
  5. if {coin.%uuid of arg 2%} is more than 49:
  6. remove 50 from {coin.%uuid of arg 2%}
  7. command "give %arg 2% potato 16"
  8. send "&aじゃがいもを購入しました" to arg 2
  9. else:
  10. send "&cお金が足りません" to arg 2
  11. if arg 1 is "bread":
  12. if {coin.%uuid of arg 2%} is more than 299:
  13. remove 300 from {coin.%uuid of arg 2%}
  14. command "give %arg 2% bread 16"
  15. send "&aパンを購入しました" to arg 2
  16. else:
  17. send "&cお金が足りません" to arg 2
  18. if arg 1 is "steak":
  19. if {coin.%uuid of arg 2%} is more than 1499:
  20. remove 1500 from {coin.%uuid of arg 2%}
  21. command "give %arg 2% cooked_beef 16"
  22. send "&aステーキを購入しました" to arg 2
  23. else:
  24. send "&cお金が足りません" to arg 2
  25. if arg 1 is "book":
  26. if {coin.%uuid of arg 2%} is more than 799:
  27. remove 800 from {coin.%uuid of arg 2%}
  28. command "give %arg 2% book 1"
  29. send "&a本を購入しました" to arg 2
  30. else:
  31. send "&cお金が足りません" to arg 2
  32. if arg 1 is "arrow":
  33. if {coin.%uuid of arg 2%} is more than 299:
  34. remove 300 from {coin.%uuid of arg 2%}
  35. command "give %arg 2% arrow 16"
  36. send "&a矢を購入しました" to arg 2
  37. else:
  38. send "&cお金が足りません" to arg 2
  39. if arg 1 is "experience":
  40. if {coin.%uuid of arg 2%} is more than 999:
  41. remove 1000 from {coin.%uuid of arg 2%}
  42. command "give %arg 2% experience_bottle 16"
  43. send "&a経験値瓶を購入しました" to arg 2
  44. else:
  45. send "&cお金が足りません" to arg 2
Add Comment
Please, Sign In to add comment