Please remember to add code into [ code] tags for easier reading.
It looks like the slot numbering is wrong. As the comments say "1 = bag 1 slot 1". The rest of the comment you added is wrong. Let me explain. The slots in the inventory go like this
But the option for autosell can only sell from the bags so they go from 1 to 180. It was never changed when we changed the slot numbering for the inventory.
So if I am understanding you correctly for the autosell functions bag1 slot 1 is still 1 not 61 therefore if I want to sell bags 3, 4 and 5 only it would look like this
When are you running it? What slot numbers are you going through? Are you sure you assigned the correct value to 'item'? Are you playing on an English client?
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
setwindow("gold")
ToPancer = 1
StopAtBoss = 3
-- 0 = white / 1 = green / 2 = blue / 3 = purple / 4 = orange / 5 = gold
changeProfileOption("INV_AUTOSELL_ENABLE",true)
function CleanBagKS()
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("Runes") then
item:delete()
end
if ( item:isType("Weapons") or item:isType("Armor") ) and (400 > item.Worth and 3 > item.Quality)then
item:delete()
end
if item.Name == "Link Rune" then
item:delete()
end
if item:isType("Potions") and (45 > item.RequiredLvl and item.RequiredLvl > 10) then
item:delete()
end
end
end
end
</onLoad>
function CleanBagDOD()
for i, item in pairs(inventory.BagSlot) do
if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 30 and
settings.profile.options.INV_AUTOSELL_TOSLOT + 30 >= item.SlotNumber then
if item:isType("Runes") then
item:delete()
end
if ( item:isType("Weapons") or item:isType("Armor") ) and (1000 > item.Worth and 4 > item.Quality)then
item:delete()
end
if item:isType("Equipment Enhancement") then
item:delete()
end
if 1000 > item.Worth and 4 > item.Quality then
item:delete()
end
if item.Name == "Wild Boar Meat" then
item:delete()
end
if item:isType("Potions") and (70 > item.RequiredLvl and item.RequiredLvl > 10) then
item:delete()
end
end
end
end
function CleanBagDOD()
for i, item in pairs(inventory.BagSlot) do
if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 30 and
settings.profile.options.INV_AUTOSELL_TOSLOT + 30 >= item.SlotNumber then
if item:isType("Materials") then
item:delete()
end
if item:isType("Arrows") then
item:delete()
end
if item:isType("Projectiles") then
item:delete()
end
if ( item:isType("Weapons") or item:isType("Armor") ) and (1000 > item.Worth and 5 > item.Quality)then
item:delete()
end
if item:isType("Equipment Enhancement") then
item:delete()
end
if 1000 > item.Worth and 5 > item.Quality then
item:delete()
end
if item.Name == "Wild Boar Meat" then
item:delete()
end
if item:isType("Potion") then
item:delete()
end
end
end
end
You can only sell from your bags so INV_AUTOSELL_FROMSLOT and INV_AUTOSELL_TOSLOT count 1 as being the first bag slot. The first bag slot for the inventory is 61 so you'll need to do something like this,
if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 60 and
settings.profile.options.INV_AUTOSELL_TOSLOT + 60 >= item.SlotNumber then
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
function CleanBagDOD()
for i, item in pairs(inventory.BagSlot) do
if item.SlotNumber - 60 >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 30 and
settings.profile.options.INV_AUTOSELL_TOSLOT + 30 >= item.SlotNumber - 60 then
if item:isType("Materials") then
item:delete()
end
if item:isType("Arrows") then
item:delete()
end
if item:isType("Projectiles") then
item:delete()
end
if ( item:isType("Weapons") or item:isType("Armor") ) and (1000 > item.Worth and 5 > item.Quality)then
item:delete()
end
if item:isType("Equipment Enhancement") then
item:delete()
end
if 1000 > item.Worth and 5 > item.Quality then
item:delete()
end
if item.Name == "Wild Boar Meat" then
item:delete()
end
if item:isType("Potion") then
item:delete()
end
end
end
end
I told you it doesn't look right? Or did you miss that edit?
Example: If you have INV_AUTOSELL_FROMSLOT = 1 and INV_AUTOSELL_TOSLOT = 30 because you only want to sell from the first bag then the code you have would drop from the second bag which doesn't make sense. The second code I wrote would sell from the first bag.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.