SVN 395: Autosell with check for durability and stats

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: SVN 395: Autosell with check for durability and stats

#41 Post by raff » Wed Jan 13, 2010 6:24 pm

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

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#42 Post by Administrator » Thu Jan 14, 2010 4:21 am

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

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: SVN 395: Autosell with check for durability and stats

#43 Post by raff » Thu Jan 14, 2010 9:44 pm

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests