Page 1 of 1
Certain Loot Pickup
Posted: Wed Jul 17, 2013 2:18 pm
by BeyondNames
What is the easiest way to pick up only 1 item from mobs loot and nothing else.
If thats not possible could i make the bot pick up everything and then delete the other items it picked up except the 1 I want to keep?
Re: Certain Loot Pickup
Posted: Wed Jul 17, 2013 2:30 pm
by rock5
Re: Certain Loot Pickup
Posted: Wed Jul 17, 2013 4:56 pm
by kuripot
Code: Select all
function CleanBag()
for i, item in pairs(inventory.BagSlot) do
if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 60 and
settings.profile.options.INV_AUTOSELL_TOSLOT + 60 >= item.SlotNumber then
if ( item:isType("Weapons") or item:isType("Armor") ) and 1 > item.Quality then
item:delete()
end
if item:isType("Production Runes") then
item:delete()
end
if item:isType("Runes") then
item:delete()
end
if item:isType("Arrows") then
item:delete()
end
if item:isType("Projectiles") then
item:delete()
end
if item.Name == "Regeneration Mixture" then
item:delete()
end
end
end
end
delete by category or by individual item