Mariox
03-09-2018, 11:40 AM
I am looking for a script that will transfer the ultimate mana potion from depo to the backpacks found on the back .Need it to train magic level this script dont work
Lua Code:
--Moving manas and potions etc, to your manas backpack--
ManaBp = "Purple Backpack"
ManaPotID = Item.GetID("23373") -- Ultimate Mana Potion --
while true do
if (Self.ItemCount(ManaPotID) >= 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) then
MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
wait(500)
break
end
wait(200)
end
end
wait(300)
end
Lua Code:
--Moving manas and potions etc, to your manas backpack--
ManaBp = "Purple Backpack"
ManaPotID = Item.GetID("23373") -- Ultimate Mana Potion --
while true do
if (Self.ItemCount(ManaPotID) >= 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) then
MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
wait(500)
break
end
wait(200)
end
end
wait(300)
end