Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. _G['movePotions'] = Module.New("movePotions", function(module)
  2.     if (Self.ItemCount(268) >= 1 or Self.ItemCount(script.healthPotionName) >= 1) then
  3.         local MainBp = Container.GetFirst()
  4.         local DestinationBp = Container.GetByName("beach backpack")
  5.         for spot = 0, MainBp:ItemCount() do
  6.             local item = MainBp:GetItemData(spot)
  7.             if (item.id == 268 or item.id == 239 or item.id == 7643) then
  8.                 MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
  9.                 break
  10.             end
  11.         end
  12.     end
  13. end, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement