Go Back   WowAce Forums > General > Lua Code Discussion
Lua Code Discussion You scared? Terrified. Mortified. Petrified. Stupefied... by [coding].

Thread Tools
Old 04-21-2011   #1
Junior Member
Join Date: Feb 2008
Posts: 57
Default color codes?

/script print("|cff00ff00green")

this should print in green? it just shows the code? thanks
rakkarage is offline   Reply With Quote
Old 04-21-2011   #2
Amazing Member
Farmbuyer's Avatar
Join Date: Feb 2005
Posts: 1,170
Default Re: color codes?

The input routines double the '|' character, so it's "pre-escaped". Use \124 instead, if you're typing them from a /script line:

/script print("\124cff00ff00green\124r")
Farmbuyer is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:41 AM.