Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

itemString API TYPE (String)

Item strings are used in World of Warcrafts chat interface to pass item information in item hyperlinks between clients and to pass item information from the client to the user interface. The main purpose of an item string appears to be to designate display information of item tooltips via item hyperlinks (itemLinks).


Item String Formatting

Item strings consist of 4 numerical values in a common format. The four numerical values define an item's name and base stats (ItemId), any enchants that are applied to the item (EnchantId), any extra item stats ("of" type items)(SuffixId), and finally a unique identifier for the item for created items or quest rewards (UniqueId).

item:itemId:enchantId:suffixId:uniqueId

You can extract these identifiers from a given itemString with the following LUA-code:

local found, _, itemId, enchantId, suffixId, uniqueId = string.find(itemString, "^item:(%d+):(%d+):(%d+):(%d+)")

Enchant Ids and Suffix Ids

Adding of enchant and bonus stat information to the tooltip appear to be handled on the client side with out any kind of validation. By altering the item string in an item hyperlink you can add any enchant or any bonus stats to any item and still pass it to clients via chat, or display a tooltip for it.

Unique Ids

UniqueIds don't appear to hold any information in and of themselves, and are not consistant in any way across servers like enchantIds and secondaryIds. This number appears to only be a link to data held on the server or client that returns information about who the item was created by or for. In the case of items recieved from quests, these seem to be considered made for the player who receives them, and thus gets a uniqueId even though no extra tooltip information is displayed. It also seems that uniqueIds are somewhat pointless to include in the item string passed to the client as uniqueId information can only be seen on items that are actually on a person where item strings aren't used to set the tooltip; for item hyperlinks, uniqueId information is ignored.


Example Item Strings

"item:6948:0:0:0"

The first number is the ItemID for a Hearthstone. The other 3 values are 0, which tells the client it has no enchants, extra stats, and wasn't made by anyone.


"item:18832:2564:0:0"

The first number is the ItemID for Brutality Blade. The second number (enchantId) in this case denotes that it is enchanted with +15 agility.


"item:10242:0:614:0"

The first number is the ItemID for Heavy Lamellar Gauntlets. The third number (suffixId) adds to this item's name " of the Monkey" and adds +11 Agility and +11 Stamina.


"item:4388:0:0:210677200"

The first number is the ItemID for Discombobulator Ray. The fourth number adds the information that this particular item only has 4 uses left and was made by Kirov.


Note: The fourth number does not always stand for who made an item; it usually appears on quest items too, and sometimes on dropped items. It's possible that the value is a reference to a database entry which can hold extra data, such as who made an item, which quest it came from, when the quest was delivered, who sold the item on the Auction House, etc. etc. GMs would then be able to track an item should a petition about one be made.