Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function useCoins(id)
- local cont = Container.GetFirst()
- while (cont:isOpen()) do
- for spot = 0, cont:ItemCount() do
- local item = cont:GetItemData(spot)
- if (item.id == id) then
- if (item.count == 1) then
- cont:UseItem(spot, True)
- sleep(500)
- return true
- end
- end
- end
- cont = cont:GetNext()
- end
- return false
- end
- while (true) do
- useCoins(6572)--gold
- sleep(500)
- useCoins(6578)--platinum
- sleep(500)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement