Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. command /buykeys:
  2. # NO PERMS NEEDED!!
  3. trigger:
  4. open chest with 1 rows named "&6&lPurchase Keys" to player
  5. wait 4 ticks
  6.  
  7. format slot 1 of player with tripwire hook named "&7&lBASIC CRATE &b&lKEY" with lore "&cCosts: $5,000" to close then run [make console execute command "basiccrate %player%"]
  8. format slot 3 of player with tripwire hook named "&a&lRARE CRATE &b&lKEY" with lore "&cCosts: 20,000" to close then run [make console execute command "rarecrate %player%"]
  9. format slot 5 of player with tripwire hook named "&e&lMONEY CRATE &b&lKEY" with lore "&cCosts: 5,000" to close then run [make console execute command "moneycrate %player%"]
  10.  
  11. command /basiccrate [<player>]:
  12. permission: console.givekeys.command.console
  13. permission message: &cNo permission!
  14. trigger:
  15. if arg-1's balance is less than 5000:
  16. send "&cNot enough money!" to arg-1
  17. stop
  18. if arg-1's balance is greater than 999:
  19. remove 1000 from player's balance
  20. execute console command "cc give virtual Basic 1 %arg-1%"
  21. send "&aSuccessfully bought 1 &7&lCOMMON CRATE &b&lKEY&a!" to arg-1
  22.  
  23. command /rarecrate [<player>]:
  24. permission: console.givekeys.command.console
  25. permission message: &cNo permission!
  26. trigger:
  27. if arg-1's balance is less than 20000:
  28. send "&cNot enough money!" to arg-1
  29. stop
  30. if arg-1's balance is greater than 19999:
  31. remove 20000 from player's balance
  32. execute console command "cc give virtual Rare 1 %arg-1%"
  33. send "&aSuccessfully bought 1 &a&lRARE CRATE &b&lKEY&a!" to arg-1
  34.  
  35. command /moneycrate [<player>]:
  36. permission: console.givekeys.command.console
  37. permission message: &cNo permission!
  38. trigger:
  39. if arg-1's balance is less than 5000:
  40. send "&cNot enough money" to arg-1
  41. stop
  42. if arg-1's balance is greater than 4999:
  43. remove 5000 from player's balance
  44. execute console command "cc give virtual Money 1 %arg-1%"
  45. send "&aSuccessfully bought 1 &e&lMONEY CRATE &b&lKEY&a!" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement