Paulinka123
12-14-2015, 05:48 PM
its posible to change this script for faster move potions ammo to bp? i need for my lua config . sorry for my english plx help
-- Move Supply to backpack
Module.New("ManaToBp", function(module)
if (Self.ItemCount(ManaID) >= 1) then
local MainBp = Container.GetFirst()
local DestinationBp = Container.GetByName(PotionBP)
for spot = 0, MainBp:ItemCount() do
local item = MainBp:GetItemData(spot)
if (item.id == ManaID)then
MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 1)
module:Delay(500)
break
end
module:Delay(200)
end
end
end)
-- Move Supply to backpack
Module.New("ManaToBp", function(module)
if (Self.ItemCount(ManaID) >= 1) then
local MainBp = Container.GetFirst()
local DestinationBp = Container.GetByName(PotionBP)
for spot = 0, MainBp:ItemCount() do
local item = MainBp:GetItemData(spot)
if (item.id == ManaID)then
MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 1)
module:Delay(500)
break
end
module:Delay(200)
end
end
end)