Right, decided i would release this, anyone with common sense is probably already doing this but hopefully it will help someone.
Code:
public static int GetQuality(int ItemID)
{
return ItemID % 10;
}
Give the function the Static Item ID, and it will return the quality (1-9), this can be addapted to use an enum and return Super, Elite, Unique etc:
Code:
public static ItemQuality GetQuality(uint ItemID)
{
return (ItemQuality)(ItemID % 10);
}
public enum ItemQuality
{
Fixed = 0,
Normal = 5,
Refined = 6,
Unique = 7,
Elite = 8,
Super = 9
}
Thanks are appreciated.