Log in

View Full Version : Move mana potions and uhp to supplies backpack



headkevin
02-23-2016, 08:42 PM
Hello, i need script to move my mana potions and uhp from main bp to my supply backpack 'blue backpack'

have anyone?

wuuuduu
02-23-2016, 09:32 PM
go buy licence first

headkevin
02-23-2016, 10:59 PM
stfu idiot say something usefull

dean015
02-23-2016, 11:32 PM
headkevin


local SuppliesBP = "Jewelled backpack"




Module.New('Shove-pots', function(mod)
local DROP_ITEMS = {"mana potion", "great health potion", "ultimate health potion"}

for i = 0, #Container.GetAll() do -- let's find bps
search = Container.New(i)
cont = Container.New(SuppliesBP)
for spot = 0, cont:ItemCount() do
local item = search:GetItemData(spot)
if cont:isOpen() and search:Name() ~= cont:Name() then
if table.find(DROP_ITEMS, Item.GetName(item.id)) and not cont:isFull() then
search:MoveItemToContainer(spot, cont:Index(), 0, 100) -- just shove to selected bp
end
end
end
end
end)


just edit it to move whatever you want to move

but if you open a dp box with these items it will move them all to the bp

Elvang
02-24-2016, 02:19 AM
go buy licence first

Registered in February.. trial.

wuuuduu
02-24-2016, 11:21 AM
he is using crack, he made new acc, he ain't stupid xd

Tirell
02-24-2016, 01:12 PM
headkevin


local SuppliesBP = "Jewelled backpack"




Module.New('Shove-pots', function(mod)
local DROP_ITEMS = {"mana potion", "great health potion", "ultimate health potion"}

for i = 0, #Container.GetAll() do -- let's find bps
search = Container.New(i)
cont = Container.New(SuppliesBP)
for spot = 0, cont:ItemCount() do
local item = search:GetItemData(spot)
if cont:isOpen() and search:Name() ~= cont:Name() then
if table.find(DROP_ITEMS, Item.GetName(item.id)) and not cont:isFull() then
search:MoveItemToContainer(spot, cont:Index(), 0, 100) -- just shove to selected bp
end
end
end
end
end)


just edit it to move whatever you want to move

but if you open a dp box with these items it will move them all to the bp

ur code move suppiles when buying manas or when bot finished talk with npc?

dean015
02-24-2016, 02:49 PM
ur code move suppiles when buying manas or when bot finished talk with npc?

constantly moving stuff it finds