Advertisement
MrTrala

Untitled

Aug 9th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 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 == 100) then
  9.                         cont:UseItem(spot, True)
  10.                         sleep(100)
  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(3031)--gold
  24.         sleep(500)
  25.         useCoins(3035)--platinum
  26.         sleep(500)
  27.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement