World of Warcraft Forums - WoW Guru
 
Home Forums Database UI Mods Downloads Profiles  
 
     
 

Go Back   World of Warcraft Forums - WoW Guru > Database Forums > Weekly Columns
User Name
Password


Reply
 
Thread Tools
Old 01-15-2006, 08:57 PM   #1
Guillotine
Peon
 
Join Date: Jan 2006
Posts: 8
Advertisement

Disable Ads
GUI with GUIllotine - Inside an Item Link

[center]Inside an Item Link
Difficulty: 2/5 (Novice Programmer)[/center]

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.

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


How exactly is this put together?

Quote:
|(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, “[Buccaneer’s Tunic of the Eagle]” 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.

[center]Enchantment Links[/center]
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:
Quote:
|cffffffff|Henchant:20034|h[Enchant Weapon – Crusader]|h|r


The template is this:
Quote:
|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:
Quote:
/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.
Guillotine is offline   Reply With Quote
Old 01-25-2006, 10:08 AM   #2
Mausay
Peon
 
Join Date: Jan 2006
Location: Netherlands
Posts: 13
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?

Last edited by Mausay : 01-25-2006 at 07:32 PM.
Mausay is offline   Reply With Quote
Old 01-27-2006, 01:47 PM   #3
zeeg
Guru
 
zeeg's Avatar
 
Join Date: Oct 2004
Posts: 1,573
Send a message via ICQ to zeeg Send a message via AIM to zeeg Send a message via Yahoo to zeeg
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.
__________________
zeeg is offline   Reply With Quote
Old 01-28-2006, 07:14 AM   #4
Mausay
Peon
 
Join Date: Jan 2006
Location: Netherlands
Posts: 13
that didn't work for me, i looked up a AQ dagger from allakhazam but i got a "no item" result back :/
Mausay is offline   Reply With Quote
Old 01-28-2006, 01:39 PM   #5
zeeg
Guru
 
zeeg's Avatar
 
Join Date: Oct 2004
Posts: 1,573
Send a message via ICQ to zeeg Send a message via AIM to zeeg Send a message via Yahoo to zeeg
"This site" would mean WoW Guru, not Allakhazam. I'm not sure how their database works.
__________________
zeeg is offline   Reply With Quote
Old 01-29-2006, 05:29 AM   #6
Mausay
Peon
 
Join Date: Jan 2006
Location: Netherlands
Posts: 13
doesn't really matter but it's almost the same :P
http://www.wowguru.com/db/items/tra...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.
Mausay is offline   Reply With Quote
Old 01-29-2006, 07:35 PM   #7
zeeg
Guru
 
zeeg's Avatar
 
Join Date: Oct 2004
Posts: 1,573
Send a message via ICQ to zeeg Send a message via AIM to zeeg Send a message via Yahoo to zeeg
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.
__________________
zeeg is offline   Reply With Quote
Old 01-29-2006, 08:10 PM   #8
Mausay
Peon
 
Join Date: Jan 2006
Location: Netherlands
Posts: 13
oho? so it's a server-wide issue? not user-specific?
Mausay is offline   Reply With Quote
Old 02-02-2006, 07:08 AM   #9
dafire
Peon
 
Join Date: Feb 2006
Posts: 2
does anybody has a list with all enchantment id's ?
dafire is offline   Reply With Quote
Old 02-03-2006, 08:05 AM   #10
ArienneX
Peon
 
Join Date: Feb 2006
Posts: 1
So I have the info...

Sorry for the noobish question, but
How do you get a modified link to display in game?
ArienneX is offline   Reply With Quote
Old 02-14-2006, 12:10 AM   #11
TheRabidDeer
Peon
 
Join Date: Oct 2005
Posts: 4
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
TheRabidDeer is offline   Reply With Quote
Old 02-14-2006, 10:38 PM   #12
Guillotine
Peon
 
Join Date: Jan 2006
Posts: 8
Quote:
Originally Posted by TheRabidDeer
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.
Guillotine is offline   Reply With Quote
Old 02-14-2006, 10:39 PM   #13
TheRabidDeer
Peon
 
Join Date: Oct 2005
Posts: 4
Quote:
Originally Posted by Guillotine
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?
TheRabidDeer is offline   Reply With Quote
Old 02-14-2006, 10:46 PM   #14
Guillotine
Peon
 
Join Date: Jan 2006
Posts: 8
Quote:
Originally Posted by TheRabidDeer
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.
Guillotine is offline   Reply With Quote
Old 02-15-2006, 02:08 PM   #15
TheRabidDeer
Peon
 
Join Date: Oct 2005
Posts: 4
Quote:
Originally Posted by Guillotine
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. =[
TheRabidDeer is offline   Reply With Quote
Old 02-15-2006, 06:17 PM   #16
Guillotine
Peon
 
Join Date: Jan 2006
Posts: 8
Quote:
Originally Posted by TheRabidDeer
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)
Guillotine is offline   Reply With Quote
Old 04-16-2006, 09:24 PM   #17
Mausay
Peon
 
Join Date: Jan 2006
Location: Netherlands
Posts: 13
what would happen if you /dump an item from a different language? would the properties still be the same?
Mausay is offline   Reply With Quote
Old 04-17-2006, 10:09 PM   #18
Guillotine
Peon
 
Join Date: Jan 2006
Posts: 8
Not quite Mausay, All the item properties will be the same (the id numbers), but the name will be different.
Guillotine is offline   Reply With Quote
Reply


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

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



All times are GMT -4. The time now is 12:33 AM.


Vote on the World of Warcraft Top 200
World of Warcraft Top 200 - WoW Gold, Maps, Quests, Guilds

Powered by: vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All content and images © WoWGuru.com 2001-2009

Forum skin designed by ForumTemplates.com
     
 
World of Warcraft ©2004 Blizzard Entertainment. All rights reserved.