PDA

View Full Version : GUI with GUIllotine - Inside an Item Link


Guillotine
01-15-2006, 08:57 PM
Inside an Item Link
Difficulty: 2/5 (Novice Programmer)

Welcome to the world of the item link. As I’m sure you all know, an item link is a method in WoW used to send stats of an item to someone else. You can do it by opening a chat input box, and shift-clicking on an item or another item link. This week, GUI with GUIllotine will tell you about the underlying workings of the item link.

First, we should probably go through what is required to get the most out of this article:

1. A copy of WoW (obviously)
2. An item (you better have this)
3. The add-on “Iriel’s Devtools” (obtainable at http://www.wowguru.com/ui/74/devtools/ )
4. Basic knowledge of scripting in WoW


Now some of you may be asking yourselves what the point is of knowing this. Ya, it’s neat, but why would I want to spend the time to use this? The answer is rather simple. Many add-ons, including some extremely popular ones, use a very inefficient method of getting info about items called ‘tool tip-scanning’. While in some instances, this is needed, in others, simply analyzing the item link will be sufficient.

Item Links
Here is an example of an item link (I will be explaining it later):
|cff1eff00|Hitem:1465:803:0:0|h[Tigerbane]|h|r

How exactly is this put together?

|(hex code for item color)|Hitem:(item ID code):(enchant code):(added stats code):0|h[(item name)]|h|r

Hex code for item color: This is rather self-explanatory. It is the hex code for either grey, white, green, blue, purple, or orange (until something more than legendary comes along).

Item ID code: Each item has a unique Item ID code. The one for [Tigerbane] happens to be 1465. All items “of so-and-so” have the same code. For example, “” has the same item code as “[Buccaneer’s Tunic of the Owl]”. These are different, however, from “[Buccaneer’s Bracers of the Bear]” (as they are totally different items).

Enchant code: This is the code for a permanent enchant. Different enchantments have different codes. 803 is the code for Fiery Enchantment (ok, call me a twinker. It’s what you have to do now to survive in BGs. Not as bad as dual lifestealing on a level 19 though…) It seems that enchantments on different items, but with the same modifier have the same code. For example, +1 agility to cloak will have the same code as +1 agility to bracers.

Added stats code: This is the code for added stats (also known as “of the” modifiers). For example, “of the Gorilla” for +17 strength and intellect is code 1002. Because Tigerbane has no modifier, this part is left at 0.

Item name: This is (you guessed it….) the item name. It is a localized string, and the name of the item as we all know it.

[b]Enchantment Links
A new type of link has appeared with the release of patch 1.9. Let’s talk about the inner workings of this as well.

Here is an example of an enchant link:
|cffffffff|Henchant:20034|h[Enchant Weapon – Crusader]|h|r

The template is this:
|cffffffff|Henchant:(enchant id)|h[(enchant name)]|h|r

This one is pretty self-explanatory:
cfffffffff: the enchant link is always white

Enchant id: a unique id for each enchantment. 20034 is Crusader. Please note that this is not the same id as the one once it is put on an item.

Enchant name: If you can’t figure this out, you shouldn’t be reading this column.

So how do I use this?
There are many ways to use this. One example is Lootlink. Rather than indexing each individual link, it only indexes it by the name. This prevents different enchant id’s from being stored as totally separate items. But how do YOU use this? Enter Iriel’s devtools. Simply open up a chat box and type in:
/dump “[ItemLink]” to get the full item/enchant link. From there, you can do whatever you need to do.

Once you understand the inner-workings of an item-link, the possibilities are endless. You are limited only by your ingenuity.

Thank you for reading the first edition of GUI with GUIllotine and please check back next week for more.

Mausay
01-25-2006, 10:08 AM
hehe that's pretty funny shit, tried playing around with the linkID of ItemSynch and made a Traveler's Backpack of the monkey ^^
i hope this isn't illegal in any way. though i do wonder, is there a list somewhere of which numbers represent which specific enchant or "...of the..." ?

also, it seems i can only try this with items i have seen. is there any way to get a specific item linked by entering it's id?

zeeg
01-27-2006, 01:47 PM
You can only link items which have been seen on the server. you can though, get item ID's from this site just lookup the item and the ID is in the URL.

Mausay
01-28-2006, 07:14 AM
that didn't work for me, i looked up a AQ dagger from allakhazam but i got a "no item" result back :/

zeeg
01-28-2006, 01:39 PM
"This site" would mean WoW Guru, not Allakhazam. I'm not sure how their database works.

Mausay
01-29-2006, 05:29 AM
doesn't really matter but it's almost the same :P
http://www.wowguru.com/db/items/travelers-backpack-id4500
http://wow.allakhazam.com/db/item.html?witem=4500
/dump "traveler's backpack"
>> 4500 etc <<

if i use itemSync's itemID and enter 4500:0:0 i get [Traveler's Backpack]
but if i enter things i generaly never have seen yet, like an AQ dagger, if i enter that value i get that error.
could be the value known on wowguru and allak are originated from PTR maybe.

zeeg
01-29-2006, 07:35 PM
If it's not seen on the server yet it won't show it to you. Alla doesn't do PTR data as far as I know.

Mausay
01-29-2006, 08:10 PM
oho? so it's a server-wide issue? not user-specific?

dafire
02-02-2006, 07:08 AM
does anybody has a list with all enchantment id's ?

ArienneX
02-03-2006, 08:05 AM
Sorry for the noobish question, but
How do you get a modified link to display in game? :Confused:

TheRabidDeer
02-14-2006, 12:10 AM
How do you get anything to link at all? Idownloaded the addon and installed it then tried it and I just get an error message when I type in: /dump |cff1eff00|Hitem:1465:803:0:0|h[Tigerbane]|h|r

Guillotine
02-14-2006, 10:38 PM
How do you get anything to link at all? Idownloaded the addon and installed it then tried it and I just get an error message when I type in: /dump |cff1eff00|Hitem:1465:803:0:0|h[Tigerbane]|h|r

You are supposed to copy the actualy LINK there. This means shift clicking on the link. And be sure to put it in quotes.

TheRabidDeer
02-14-2006, 10:39 PM
You are supposed to copy the actualy LINK there. This means shift clicking on the link. And be sure to put it in quotes.
Ah, I see. So there is no way to paste an item code either directly into chat or into the /dump to get a working link?

Guillotine
02-14-2006, 10:46 PM
Ah, I see. So there is no way to paste an item code either directly into chat or into the /dump to get a working link?

No there is not ;)

The point of this is not to spoof links, but to take them apart and analyze them.

TheRabidDeer
02-15-2006, 02:08 PM
No there is not ;)

The point of this is not to spoof links, but to take them apart and analyze them.
Oh I didnt want to spoof links, I just wanted to have a way to link items without having a massive database load each time I start up the game. =[

Guillotine
02-15-2006, 06:17 PM
Oh I didnt want to spoof links, I just wanted to have a way to link items without having a massive database load each time I start up the game. =[

Check out GetLink by Kremonte (not sure if its available on WoWGuru. If not, check WoWI. I know its there)

Mausay
04-16-2006, 09:24 PM
what would happen if you /dump an item from a different language? would the properties still be the same?

Guillotine
04-17-2006, 10:09 PM
Not quite Mausay, All the item properties will be the same (the id numbers), but the name will be different.