Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ManaBp = "jewelled backpack"
- ManaPotID = Item.GetID("Mana potion")
- SMPID = Item.GetID("Strong Mana Potion")
- GMPID = Item.GetID("Great Mana Potion")
- SHPID = Item.GetID("Strong Health Potion")
- GHPID = Item.GetID("Great Health Potion")
- UHPID = Item.GetID("ultimate spirit Potion")
- GSPID = Item.GetID("Great Spirit Potion")
- SDID = Item.GetID("Great Fireball Rune")
- Module.New("MoveManas", function(module)
- if (Self.ItemCount(ManaPotID) >= 1) or (Self.ItemCount(SMPID) >=1) or (Self.ItemCount(GMPID) >=1) or (Self.ItemCount(SHPID) >=1) or (Self.ItemCount(GHPID) >=1) or (Self.ItemCount(UHPID) >=1) or (Self.ItemCount(GSPID) >=1) or (Self.ItemCount(SDID) >=1) then
- local MainBp = Container.GetFirst()
- local DestinationBp = Container.GetByName(ManaBp)
- for spot = 0, MainBp:ItemCount() do
- local item = MainBp:GetItemData(spot)
- if (item.id == ManaPotID) or (item.id == SMPID) or (item.id == GMPID) or (item.id == SHPID) or (item.id == GHPID) or (item.id == UHPID) or (item.id == GSPID) or (item.id == SDID) then
- MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
- module:Delay(500)
- break
- end
- module:Delay(200)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement