WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Item Quality (https://www.wowinterface.com/forums/showthread.php?t=2707)

Meddik 12-22-05 12:36 AM

Item Quality
 
Hey guys, I'm pretty new to UI creation, and have a ton of questions... but I'll just start with one that's been bugging me for a while.

I'm making a DKP style point system for my guild, and UIs to go with it. The one I'm currently working on creates a point value based on the stats of the item... but it does it for items of all qualities. I was wondering how I could limit it to uncommon items and above. Most of the current code I'm using has come from various other UIs, and I'm just trying to learn by what others have done... but now I'm stuck.

Thanks for the help ahead of time.
Cheers.

Dridzt 12-22-05 02:19 AM

I'm not lua savvy (by a long way) but GetItemInfo seems to cater to your needs (specifically the itemRarity return (0=poor -> 5=legendary)

Meddik 12-22-05 02:09 PM

Thanks man.


All times are GMT -6. The time now is 11:06 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI