Guest User

Untitled

a guest
Jun 21st, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. function moveManas()
  2.         function move()
  3.         q = Self.ItemCount("mana potion","Jewelled Backpack")
  4.                     if q>100 then
  5.                     q = 100
  6.                 mainContainer = Container.GetByName("Jewelled Backpack")
  7.                 destContainer = Container.GetByName("Moon Backpack")
  8.                 local slot = findSlot(Item.GetID("mana potion"),mainContainer)
  9.                 mainContainer:MoveItemToContainer(slot, destContainer:Index(), 1, q)
  10.         end
  11.         n = 0
  12.         repeat
  13.                 n = n + 1
  14.                 move()
  15.         until Self.ItemCount("mana potion", "Jewelled Backpack") == 0 or n > 20
  16.  
  17. end
Advertisement
Add Comment
Please, Sign In to add comment