View Single Post
02-10-13, 03:31 PM   #4
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by zachwlewis View Post
Interesting. That returns something different than IsUsableItem(item); however, it will still return true if the recipe is already known.

Any suggestions there?
That is what the UI uses to deterrmine whether to color items red in the vendor frame. I was going to quote just before you editted your post (not that it matters, I guess), but I don't think there's another solution than scanning the tooltip. You can only get a generic "Learning" spell from GetItemSpell, unfortunately. You could try to parse the created item from the recipe name/tooltip and compare to your trade skills, but that's not really reliable.
__________________
Grab your sword and fight the Horde!
  Reply With Quote