Guest User

Untitled

a guest
Jan 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function useCoins(id)
  2. local cont = Container.GetFirst()
  3. while (cont:isOpen()) do
  4. for spot = 0, cont:ItemCount() do
  5. local item = cont:GetItemData(spot)
  6. if (item.id == id) then
  7. if (item.count == 100) then
  8. cont:UseItem(spot, True)
  9. sleep(500)
  10. return true
  11. end
  12. end
  13. end
  14. cont = cont:GetNext()
  15. end
  16. return false
  17. end
  18. while (true) do
  19. useCoins(3031)--gold
  20. sleep(500)
  21. useCoins(3035)--platinum
  22. sleep(500)
  23. end
Add Comment
Please, Sign In to add comment