Magebot
Drop used flasks - Printable Version

+- Magebot (http://tibiadb.com/upload)
+-- Forum: Magebot (http://tibiadb.com/upload/forumdisplay.php?fid=1)
+--- Forum: Questions/Help (http://tibiadb.com/upload/forumdisplay.php?fid=9)
+--- Thread: Drop used flasks (/showthread.php?tid=6489)



Drop used flasks - tubaraosan - 03-05-2018

Greetings,

How to automatically drop empty flasks after use. (Mana potions for example)

Tks


RE: Drop used flasks - raphlmiranda - 03-06-2018

Use this script.

Quote:function dropVial()

local quantity = 10
local idVial = {283, 284, 285}

for i=1, #idVial do
local fVial = FindItem(idVial[i])
if fVial ~= nil and fVial.quantity >= quantity then
ThrowItemCtoG(fVial.num,fVial.slot,self.x,self.y,idVial[i],fVial.quantity)
end
end

end

SetTimerCallback("dropVial")