Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-11-06, 07:12 PM   #4
ayradyss
A Theradrim Guardian
 
ayradyss's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 68
Clarification :)

GetItemInfo(itemid) returns the item name and link, among various and sundry other data - meaning that for any item in local cache I need only the item ID to generate a link or the name.

Unfortunately, this doesn't work for enchant:## id's. GetItemInfo() returns nil regardless of whether I've seen the enchant link itself.

I'm working on database efficiency for RecipeBook here, and trying to avoid storing the full name and link of the items.

For example: I can store 2582 - and when needed, assuming local cache, generate both the name "Green Woolen Vest" and the link "|cffffffff|Hitem:2582:0:0:0:0:0:0:0|h[Green Woolen Vest]|h|r" using GetItemInfo(2582).
I cannot store 7857 and generate "|cffffffff|Henchant:7857|h[Enchant Chest - Health]|h|r" even if I've seen/possess/can do the enchantment. Even if I generate a tooltip from "enchant:7857" I have to parse the tooltip and create my own name and link for the item rather than being able to use a Blizzard function.

I want to be able to store 7857 and do the same for enchantments that I am for items.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » GetItemInfo()


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