Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. Module.New("change coins", function()
  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 == 3606 or item.id == 3035) then  
  7.                 if (item.count >= 1) then
  8.                     cont:UseItem(spot)
  9.                 end
  10.             end  
  11.         end  
  12.         cont = cont:GetNext()  
  13.     end  
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement