View Single Post
01-01-18, 12:30 PM   #6
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by Marsgames View Post
Lua Code:
  1. local itemString = select(3, strfind(aze, "|H(.+)|h"))
  2. print(itemString)
There are two occurences of |h in an item link. The first one comes immediately after the item string portion, and the second comes after the link text portion. By using + in your pattern, the result will include the link text. You should use - instead to get only the item string. I don't know if that helps, but I think you should be able to pass proper item strings to GetItemInfo.
__________________
Grab your sword and fight the Horde!
  Reply With Quote