Facebook
From gp, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 243
  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
  24.  
  25.