taktie0304

Untitled

Jun 1st, 2019
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. on rightclick on creeper:
  2. cancel event
  3. open chest with 3 row named "&rショップ" to player
  4. format slot 10 of player with 16 potato named "&aじゃがいも &650コイン" with lore "&eクリックで16個購入します" to close then run "buy potato %player%"
  5. format slot 11 of player with 16 bread named "&aパン &6300コイン" with lore "&eクリックで16個購入します" to close then run "buy bread %player%"
  6. format slot 12 of player with 16 steak named "&aステーキ &61500コイン" with lore "&eクリックで16個購入します" to close then run "buy steak %player%"
  7.  
  8. command /buy [<text>] [<offline player>]:
  9. permission: skript.buy
  10. trigger:
  11. if arg 1 is "potato":
  12. if {coin.%uuid of arg 2%} is more than 49:
  13. remove 50 from {coin.%uuid of arg 2%}
  14. command "give %arg 2% potato 16"
  15. send "&aじゃがいもを購入しました" to arg 2
  16. else:
  17. send "&cお金が足りません" to arg 2
  18. if arg 1 is "bread":
  19. if {coin.%uuid of arg 2%} is more than 299:
  20. remove 300 from {coin.%uuid of arg 2%}
  21. command "give %arg 2% bread 16"
  22. send "&aパンを購入しました" to arg 2
  23. else:
  24. send "&cお金が足りません" to arg 2
  25. if arg 1 is "steak":
  26. if {coin.%uuid of arg 2%} is more than 1499:
  27. remove 1500 from {coin.%uuid of arg 2%}
  28. command "give %arg 2% cooked_beef 16"
  29. send "&aステーキを購入しました" to arg 2
  30. else:
  31. send "&cお金が足りません" to arg 2
Add Comment
Please, Sign In to add comment