get weapontype and armortype?
I've been looking for a function or global that maps the research line and craft to a type, such as bow (or woodworking, 1) for an arbitrary item.
It's easy enough to differentiate between weapons and armor, but how do you tell what specific type of weapon something is?
Something like craft, line = GetReasearchLine(bag,slot), or GetWeaponType(bag,slot)
Any ideas? I couldn't find anything in the api that looked right.
|