function KSCheckForFullInventory()
if ((not KS_check_bag) or (getZoneId() == 6)) then return; end;
CleanBag(KS_loot_discard_value,KS_loot_discard_quality);
yrest(500);
local spacesLeft = inventory:itemTotalCountForSlots(0,settings.profile.options.INV_AUTOSELL_FROMSLOT+60,settings.profile.options.INV_AUTOSELL_TOSLOT+60) + (KS_item_queue_size - ItemQueueCount());
ksLog("Cleared bags: "..tostring(spacesLeft).." spaces free", LOGLEVEL_DEBUG);
if (0 >= spacesLeft) then
KSResetInstance();
end
end
this is the script, do I need to change something in there or in my profile orsomething.
I'm sorry that was my waypoint script, I didn't do anything with my cleanbag yet, do I need to add that line in there? or like Lisa in my waypoint file?
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
[color=#FF0000] if item:isType("Runes") or item:isType("Monster Cards") then
item:delete()[/color]
end