WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Printing itemLink (https://www.wowinterface.com/forums/showthread.php?t=46789)

Dridzt 07-07-13 10:33 PM

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.

humfras 07-08-13 01:40 AM

Quote:

Originally Posted by Dridzt (Post 280927)
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')

Dridzt 07-08-13 02:07 AM

Oh boy :o

Thanks. :)


All times are GMT -6. The time now is 10:45 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI