Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function moveManas()
- function move()
- q = Self.ItemCount("mana potion","Jewelled Backpack")
- if q>100 then
- q = 100
- mainContainer = Container.GetByName("Jewelled Backpack")
- destContainer = Container.GetByName("Moon Backpack")
- local slot = findSlot(Item.GetID("mana potion"),mainContainer)
- mainContainer:MoveItemToContainer(slot, destContainer:Index(), 1, q)
- end
- n = 0
- repeat
- n = n + 1
- move()
- until Self.ItemCount("mana potion", "Jewelled Backpack") == 0 or n > 20
- end
Advertisement
Add Comment
Please, Sign In to add comment