View Single Post
09/28/14, 07:42 PM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by skobyjay View Post
awesome thanks. is there an similar function for an Item LInk? I can't seem to find in the API.
Function zo_strformat works for item links the same way as for regular strings.

Example:
lua Code:
  1. local itemLink = "|H1:item:16424:1:50:0:0:0:0:0:0:0:0:0:0:0:0:7:0:0:0:0|h|h"
  2. d(zo_strformat("ItemLink: <<t:1>>", itemLink))
Prints:
ItemLink: [Racial Motifs 1: The High Elves]

Last edited by Garkin : 09/28/14 at 07:47 PM.
  Reply With Quote