Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G['movePotions'] = Module.New("movePotions", function(module)
- if (Self.ItemCount(268) >= 1 or Self.ItemCount(script.healthPotionName) >= 1) then
- local MainBp = Container.GetFirst()
- local DestinationBp = Container.GetByName("beach backpack")
- for spot = 0, MainBp:ItemCount() do
- local item = MainBp:GetItemData(spot)
- if (item.id == 268 or item.id == 239 or item.id == 7643) then
- MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
- break
- end
- end
- end
- end, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement