11-13-2017, 08:29 PM
Since I usually stop botting when the bags are full (except if there is a "working" vendor close to the path), I hate all the grey items taking up bagspace so I added this to my scripts.
-- Check: Delete grey items from our bags
if (IsInCombat() == 0 and IsDead(localObj) == 0) then
for bag = 0, 4 do
for slot = 1, GetContainerNumSlots(bag) do
local name = GetContainerItemLink(bag,slot)
if name and string.find(name,"ff9d9d9d") then
PickupContainerItem(bag,slot);
DeleteCursorItem();
end
end
end
end
-- Check: Delete grey items from our bags
if (IsInCombat() == 0 and IsDead(localObj) == 0) then
for bag = 0, 4 do
for slot = 1, GetContainerNumSlots(bag) do
local name = GetContainerItemLink(bag,slot)
if name and string.find(name,"ff9d9d9d") then
PickupContainerItem(bag,slot);
DeleteCursorItem();
end
end
end
end