Page 3 of 3
Re: SVN 395: Autosell with check for durability and stats
Posted: Wed Jan 13, 2010 6:24 pm
by raff
Administrator wrote:Try changing line 474 of inventory.lua to this:
Code: Select all
if( slotitem and tonumber(slotitem.Id) > 0 ) then
That should fix it.
Thanks, but it didnt fixed it :/. I just got this error again
Code: Select all
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
D:/bot/rom/scripts/classes/inventory.lua:474: attempt to compare number
with nil
Re: SVN 395: Autosell with check for durability and stats
Posted: Thu Jan 14, 2010 4:21 am
by Administrator
raff wrote:
Thanks, but it didnt fixed it :/. I just got this error again
Try:
Code: Select all
if( slotitem and (slotitem.Id or 0) > 0 ) then
Re: SVN 395: Autosell with check for durability and stats
Posted: Thu Jan 14, 2010 9:44 pm
by raff
Administrator wrote:raff wrote:
Thanks, but it didnt fixed it :/. I just got this error again
Try:
Code: Select all
if( slotitem and (slotitem.Id or 0) > 0 ) then
This seems to work. No errors today

, thanks!