Page 1 of 1

equpiment item stat attributes question

Posted: Sat Nov 17, 2012 3:58 pm
by Cindy
Working on a new function to throw out trash.

I am currently at the part where I want to check the color of the stats on a piece of gear (i don't want to throw away yellow 1's)

I can get item = inventory.BagSlot

and be able to print

item.Stats[x].Name

but can't find any of the other attribues for a Stat, for example Quality doesn't work. Can anyone tell me how to determine whether the stat is yellow ?

Thanks

Re: equpiment item stat attributes question

Posted: Sat Nov 17, 2012 6:38 pm
by lisa
currently only ID and Name of the stats available.

Code: Select all

self.Stats[i] = {Id = tmpid, Name = tmpname}
So you "could" make up a table of all stats you want to keep, can't remember but there is only like 10-15 yellow I stats, then just compare the name or ID to that of the stat on the item.

Re: equpiment item stat attributes question

Posted: Sat Nov 17, 2012 10:27 pm
by Cindy
I actually realized that yellow 1's come off blue gear, and as of now, i only chuck whites/greens so got by that easy :)

Next up though, I want to look at blue gear, and its level and throw away things I can't use for T4s... is there a item.Level attribute?

Re: equpiment item stat attributes question

Posted: Mon Nov 19, 2012 8:54 am
by Jandrana
Cindy wrote:is there a item.Level attribute?
Yes, it's called

Code: Select all

item.RequiredLvl