Thread Tools Display Modes
07-07-13, 10:33 PM   #1
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Printing itemLink

Tried on the PTR to print some itemlinks with
Code:
/run print(([Thinking Cap]):gsub('\124','\124\124'))
-- or
/dump ([Thinking Cap]):gsub('\124','\124\124')
Both fail at the gsub with error "unexpected symbol near |"
[Thinking Cap] is just a place holder here for an actual itemlink shift-clicked from the inspect window in-game.

Anyone knows what might be the problem?
I'm just trying to break the escape sequences so I get the full itemlink string to print instead of a hyperlink.
  Reply With Quote
07-08-13, 01:40 AM   #2
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
Originally Posted by Dridzt View Post
Tried on the PTR to print some itemlinks with
Code:
/run print(([Thinking Cap]):gsub('\124','\124\124'))
-- or
/dump ([Thinking Cap]):gsub('\124','\124\124')
Both fail at the gsub with error "unexpected symbol near |"
[Thinking Cap] is just a place holder here for an actual itemlink shift-clicked from the inspect window in-game.

Anyone knows what might be the problem?
I'm just trying to break the escape sequences so I get the full itemlink string to print instead of a hyperlink.
You need to put quotes around the item link:
Code:
/dump ("[Thinking Cap]"):gsub('\124','\124\124')
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote
07-08-13, 02:07 AM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Oh boy

Thanks.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Printing itemLink


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