70sOn7

Sell (MagicFarms)

Feb 16th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. every 5 ticks in "ASkyBlock":
  2. loop all players:
  3. if {autos.%loop-player%} is true:
  4. loop 64 times:
  5. if loop-player's inventory contains 1 coal:
  6. remove 1 coal from loop-player's inventory
  7. add 5 to loop-player's balance
  8. set action bar of loop-player to "&8(&aAutoSell&8) &7Sold Coal! $5"
  9. wait 1 second
  10. set action bar of loop-player to ""
  11. if loop-player's inventory contains 1 cobble stone:
  12. remove 1 cobble stone from loop-player's inventory
  13. add 3 to loop-player's balance
  14. set action bar of loop-player to "&8(&aAutoSell&8) &7Sold Cobble Stone! $3"
  15. wait 1 second
  16. set action bar of loop-player to ""
  17.  
  18. command /sell:
  19. trigger:
  20. if id of player's tool is 263:
  21. loop 2304 times:
  22. if player's inventory contains 1 coal:
  23. remove 1 coal from player's inventory
  24. add 5 to player's balance
  25. add 1 to {_crem}
  26. set {_cmny} to {_crem} * 5
  27. send "&a• &7You sold &a%{_crem}%x &7Coal for &a$%{_cmny}%"
  28. if id of player's tool is 4:
  29. loop 2304 times:
  30. if player's inventory contains 1 cobble stone:
  31. remove 1 cobble stone from player's inventory
  32. add 3 to player's balance
  33. add 1 to {_csrem}
  34. set {_csmny} to {_csrem} * 3
  35. send "&a• &7You sold &a%{_csrem}%x &7Cobble Stone for &a$%{_csmny}%"
  36.  
  37. command /autosell:
  38. trigger:
  39. if {autos.%player%} is not set:
  40. set {autos.%player%} to true
  41. send "&a• &7Turned Auto Sell &aOn&7!"
  42. set {_asm} to a random integer between 1 and 5:
  43. if {_asm} is 2:
  44. send " &a• &7Made By: 70sOn7"
  45. stop
  46. if {autos.%player%} is true:
  47. delete {autos.%player%}
  48. send "&a• &7Turned Auto Sell &cOff&7!"
  49. set {_asm} to a random integer between 1 and 5:
  50. if {_asm} is 2:
  51. send " &a• &7Made By: 70sOn7"
  52. stop
Advertisement
Add Comment
Please, Sign In to add comment