Thread Tools Display Modes
12-03-06, 12:27 AM   #1
VgerAN
A Cyclonian
 
VgerAN's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 40
API to get stats from a given item

This seems like it would be a frequently requested feature, but I didn't see it with a search... I'd love APIs for easily getting stat information from a given item. For example, given Drillborer Disk, I'd like to know its stamina value, armor value, block value, etc. without having to actually parse the tooltip text to get it. So many different equipment-related mods would be able to take advantage of functionality like this, without having to build, maintain, and localize a library of regular expressions for parsing a tooltip.
  Reply With Quote
12-03-06, 08:31 AM   #2
Tekkub
A Molten Giant
 
Tekkub's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 960
The only option is to parse I'm afraid. There is a lib out there that'll do it (ItemStatLib was it?), but I don't know if it's actively maintained. There's also my GratuityLib to make parsing the tooltip easy, but you still have to localize your parse strings.
  Reply With Quote

WoWInterface » Developer Discussions » Wish List » API to get stats from a given item


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off