Go Back   WowAce Forums > Addon Chat > AddOn HELP!
AddOn HELP! Requests for assistance and misc bug reports go here.

Reply
 
Thread Tools
Old 3 Weeks Ago   #1
Farmbuyer
Senior Member
 
Join Date: Feb 2005
Posts: 494
Default Fastest way of detecting heroic-mode item

Are we really stuck with generating a (presumably hidden) item tooltip, scraping the second line of text, and comparing it against ITEM_HEROIC? That seems woefully inefficient. Am I missing something obvious?


(Apropos of nothing, can anyone tell me what the ITEM_HEROIC_EPIC global ("Heroic Epic") is used for? I don't recall seeing that label anywhere.)
Farmbuyer is offline   Reply With Quote
Old 3 Weeks Ago   #2
cremor
Hero Member
 
Join Date: Feb 2007
Posts: 600
Default Re: Fastest way of detecting heroic-mode item

Quote:
Originally Posted by Farmbuyer View Post
(Apropos of nothing, can anyone tell me what the ITEM_HEROIC_EPIC global ("Heroic Epic") is used for? I don't recall seeing that label anywhere.)
Haven't checked it, but maybe in color-blind mode?
cremor is offline   Reply With Quote
Old 2 Weeks Ago   #3
kliegs
Newbie
 
Join Date: May 2007
Posts: 4
Default Re: Fastest way of detecting heroic-mode item

I played with this for awhile and that's what I came up with. Create a tooltip, check the second line.

To flip this around - has anyone figured out a way to call GetItemInfo and get the heroic version back instead of normal? Or to be able to specify which you want without using an ItemID/Itemlink?
kliegs is offline   Reply With Quote
Old 2 Weeks Ago   #4
Arrowmaster
Hero Member
 
Join Date: Apr 2006
Posts: 764
Default Re: Fastest way of detecting heroic-mode item

You should always be using ItemID/Itemlink's with GetItemInfo().
Arrowmaster is offline   Reply With Quote
Old 2 Weeks Ago   #5
kliegs
Newbie
 
Join Date: May 2007
Posts: 4
Default Re: Fastest way of detecting heroic-mode item

Quote:
Originally Posted by Arrowmaster View Post
You should always be using ItemID/Itemlink's with GetItemInfo().
I've got a mod I wrote for our guild where users can specify an item and it does a lookup. If they give a link I use it, but sometimes they'll type in the name of the item and I want to look it up and return the information as a link instead of text.
kliegs is offline   Reply With Quote
Old 2 Weeks Ago   #6
Farmbuyer
Senior Member
 
Join Date: Feb 2005
Posts: 494
Default Re: Fastest way of detecting heroic-mode item

Quote:
Originally Posted by kliegs View Post
To flip this around - has anyone figured out a way to call GetItemInfo and get the heroic version back instead of normal? Or to be able to specify which you want without using an ItemID/Itemlink?
Quote:
Originally Posted by Arrowmaster View Post
You should always be using ItemID/Itemlink's with GetItemInfo().
I think you guys may be talking past each other. Yes, GetItemInfo() can only be fed itemIDs/itemlinks (and under a reduced set of circumstances, plain item names). There's also no way to additionally tell it to only return items marked as heroic. The "heroic-ness" of an item is built into the itemID, unfortunately.
Farmbuyer is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:08 AM.