Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1.  
  2. options:
  3. currency: &a$
  4.  
  5.  
  6.  
  7.  
  8. command /sell [<text>]:
  9. description: Sell Your Items
  10. permission: lot.sell
  11. usage: &d/sell [all]
  12. permission message: {@noperm}
  13. trigger:
  14. if arg 1 is not set:
  15. set {_sellamount} to amount of tool of player
  16. set {_sell} to tool of player
  17. set tool of player to 1 of tool of player
  18. if tool of player is air:
  19. send "&d(!) &7You cannot sell air."
  20. stop
  21. if {worth.%tool of player%} is not set:
  22. send "&d(!) &7A(n) %tool of player% is worth nothing."
  23. set tool of player to {_sell}
  24. clear {_sell}
  25. stop
  26. if {worth::%tool of player%} is 0:
  27. send "&d(!) &7A(n) %tool of player% is worth nothing."
  28. set tool of player to {_sell}
  29. clear {_sell}
  30. stop
  31. else:
  32. loop {_sellamount} times:
  33. set tool of player to 1 of tool of player
  34. add {worth::%tool of player%} to {balance::%uuid of player%}
  35. send "&d(!) &a%{_sellamount}% &7%tool of player% has been sold for &a$%{worth::%tool of player%} * {_sellamount}% {@currency}."
  36. set the tool of player to air
  37. clear {_sell}
  38. clear {_sellamount}
  39. stop
  40. if arg 1 is set:
  41. send "(!) &7Selling all items is coming soon!"
  42. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement