Advertisement
Guest User

Untitled

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