ArcEmu: [Guide] How To Insert Color in C++ Files for WoW - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Guide] How To Insert Color in C++ Files for WoW

#1 User is offline   matssa 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 165
  • Joined: 30-January 09
  • Location:Mexico
  • Interests:C++, music, video-games, LUA

Posted 06 May 2009 - 08:06 PM

So i created my NPCInfo and well i was wonrdering how to put some color in all this...

So at first, you must create your C++ NPC, items or whatsoever...

So here is all the color scripts you need to put some color in the C++ script:

#define MSG_COLOR_ALICEBLUE "|cFFF0F8FF"
#define MSG_COLOR_ANTIQUEWHITE "|cFFFAEBD7"
#define MSG_COLOR_AQUA "|cFF00FFFF"
#define MSG_COLOR_AQUAMARINE "|cFF7FFFD4"
#define MSG_COLOR_AZURE "|cFFF0FFFF"
#define MSG_COLOR_BEIGE "|cFFF5F5DC"
#define MSG_COLOR_BISQUE "|cFFFFE4C4"
#define MSG_COLOR_BLACK "|cFF000000"
#define MSG_COLOR_BLANCHEDALMOND "|cFFFFEBCD"
#define MSG_COLOR_BLUE "|cFF0000FF"
#define MSG_COLOR_BLUEVIOLET "|cFF8A2BE2"
#define MSG_COLOR_BROWN "|cFFA52A2A"
#define MSG_COLOR_BURLYWOOD "|cFFDEB887"
#define MSG_COLOR_CADETBLUE "|cFF5F9EA0"
#define MSG_COLOR_CHARTREUSE "|cFF7FFF00"
#define MSG_COLOR_CHOCOLATE "|cFFD2691E"
#define MSG_COLOR_CORAL "|cFFFF7F50"
#define MSG_COLOR_CORNFLOWERBLUE "|cFF6495ED"
#define MSG_COLOR_CORNSILK "|cFFFFF8DC"
#define MSG_COLOR_CRIMSON "|cFFDC143C"
#define MSG_COLOR_CYAN "|cFF00FFFF"
#define MSG_COLOR_DARKBLUE "|cFF00008B"
#define MSG_COLOR_DARKCYAN "|cFF008B8B"
#define MSG_COLOR_DARKGOLDENROD "|cFFB8860B"
#define MSG_COLOR_DARKGRAY "|cFFA9A9A9"
#define MSG_COLOR_DARKGREEN "|cFF006400"
#define MSG_COLOR_DARKKHAKI "|cFFBDB76B"
#define MSG_COLOR_DARKMAGENTA "|cFF8B008B"
#define MSG_COLOR_DARKOLIVEGREEN "|cFF556B2F"
#define MSG_COLOR_DARKORANGE "|cFFFF8C00"
#define MSG_COLOR_DARKORCHID "|cFF9932CC"
#define MSG_COLOR_DARKRED "|cFF8B0000"
#define MSG_COLOR_DARKSALMON "|cFFE9967A"
#define MSG_COLOR_DARKSEAGREEN "|cFF8FBC8B"
#define MSG_COLOR_DARKSLATEBLUE "|cFF483D8B"
#define MSG_COLOR_DARKSLATEGRAY "|cFF2F4F4F"
#define MSG_COLOR_DARKTURQUOISE "|cFF00CED1"
#define MSG_COLOR_DARKVIOLET "|cFF9400D3"
#define MSG_COLOR_DEEPPINK "|cFFFF1493"
#define MSG_COLOR_DEEPSKYBLUE "|cFF00BFFF"
#define MSG_COLOR_DIMGRAY "|cFF696969"
#define MSG_COLOR_DODGERBLUE "|cFF1E90FF"
#define MSG_COLOR_FIREBRICK "|cFFB22222"
#define MSG_COLOR_FLORALWHITE "|cFFFFFAF0"
#define MSG_COLOR_FORESTGREEN "|cFF228B22"
#define MSG_COLOR_FUCHSIA "|cFFFF00FF"
#define MSG_COLOR_GAINSBORO "|cFFDCDCDC"
#define MSG_COLOR_GHOSTWHITE "|cFFF8F8FF"
#define MSG_COLOR_GOLD "|cFFFFD700"
#define MSG_COLOR_GOLDENROD "|cFFDAA520"
#define MSG_COLOR_GRAY "|cFF808080"
#define MSG_COLOR_GREEN "|cFF008000"
#define MSG_COLOR_GREENYELLOW "|cFFADFF2F"
#define MSG_COLOR_HONEYDEW "|cFFF0FFF0"
#define MSG_COLOR_HOTPINK "|cFFFF69B4"
#define MSG_COLOR_INDIANRED "|cFFCD5C5C"
#define MSG_COLOR_INDIGO "|cFF4B0082"
#define MSG_COLOR_IVORY "|cFFFFFFF0"
#define MSG_COLOR_KHAKI "|cFFF0E68C"
#define MSG_COLOR_LAVENDER "|cFFE6E6FA"
#define MSG_COLOR_LAVENDERBLUSH "|cFFFFF0F5"
#define MSG_COLOR_LAWNGREEN "|cFF7CFC00"
#define MSG_COLOR_LEMONCHIFFON "|cFFFFFACD"
#define MSG_COLOR_LIGHTBLUE "|cFFADD8E6"
#define MSG_COLOR_LIGHTCORAL "|cFFF08080"
#define MSG_COLOR_LIGHTCYAN "|cFFE0FFFF"
#define MSG_COLOR_LIGHTGRAY "|cFFD3D3D3"
#define MSG_COLOR_LIGHTGREEN "|cFF90EE90"
#define MSG_COLOR_LIGHTPINK "|cFFFFB6C1"
#define MSG_COLOR_LIGHTRED "|cFFFF6060"
#define MSG_COLOR_LIGHTSALMON "|cFFFFA07A"
#define MSG_COLOR_LIGHTSEAGREEN "|cFF20B2AA"
#define MSG_COLOR_LIGHTSKYBLUE "|cFF87CEFA"
#define MSG_COLOR_LIGHTSLATEGRAY "|cFF778899"
#define MSG_COLOR_LIGHTSTEELBLUE "|cFFB0C4DE"
#define MSG_COLOR_LIGHTYELLOW "|cFFFFFFE0"
#define MSG_COLOR_LIME "|cFF00FF00"
#define MSG_COLOR_LIMEGREEN "|cFF32CD32"
#define MSG_COLOR_LINEN "|cFFFAF0E6"
#define MSG_COLOR_MAGENTA "|cFFFF00FF"
#define MSG_COLOR_MAROON "|cFF800000"
#define MSG_COLOR_MEDIUMAQUAMARINE "|cFF66CDAA"
#define MSG_COLOR_MEDIUMBLUE "|cFF0000CD"
#define MSG_COLOR_MEDIUMORCHID "|cFFBA55D3"
#define MSG_COLOR_MEDIUMPURPLE "|cFF9370DB"
#define MSG_COLOR_MEDIUMSEAGREEN "|cFF3CB371"
#define MSG_COLOR_MEDIUMSLATEBLUE "|cFF7B68EE"
#define MSG_COLOR_MEDIUMSPRINGGREEN "|cFF00FA9A"
#define MSG_COLOR_MEDIUMTURQUOISE "|cFF48D1CC"
#define MSG_COLOR_MEDIUMVIOLETRED "|cFFC71585"
#define MSG_COLOR_MIDNIGHTBLUE "|cFF191970"
#define MSG_COLOR_MINTCREAM "|cFFF5FFFA"
#define MSG_COLOR_MISTYROSE "|cFFFFE4E1"
#define MSG_COLOR_MOCCASIN "|cFFFFE4B5"
#define MSG_COLOR_NAVAJOWHITE "|cFFFFDEAD"
#define MSG_COLOR_NAVY "|cFF000080"
#define MSG_COLOR_OLDLACE "|cFFFDF5E6"
#define MSG_COLOR_OLIVE "|cFF808000"
#define MSG_COLOR_OLIVEDRAB "|cFF6B8E23"
#define MSG_COLOR_ORANGE "|cFFFFA500"
#define MSG_COLOR_ORANGERED "|cFFFF4500"
#define MSG_COLOR_ORCHID "|cFFDA70D6"
#define MSG_COLOR_PALEGOLDENROD "|cFFEEE8AA"
#define MSG_COLOR_PALEGREEN "|cFF98FB98"
#define MSG_COLOR_PALETURQUOISE "|cFFAFEEEE"
#define MSG_COLOR_PALEVIOLETRED "|cFFDB7093"
#define MSG_COLOR_PAPAYAWHIP "|cFFFFEFD5"
#define MSG_COLOR_PEACHPUFF "|cFFFFDAB9"
#define MSG_COLOR_PERU "|cFFCD853F"
#define MSG_COLOR_PINK "|cFFFFC0CB"
#define MSG_COLOR_PLUM "|cFFDDA0DD"
#define MSG_COLOR_POWDERBLUE "|cFFB0E0E6"
#define MSG_COLOR_PURPLE "|cFF800080"
#define MSG_COLOR_RED "|cFFFF0000"
#define MSG_COLOR_ROSYBROWN "|cFFBC8F8F"
#define MSG_COLOR_ROYALBLUE "|cFF4169E1"
#define MSG_COLOR_SADDLEBROWN "|cFF8B4513"
#define MSG_COLOR_SALMON "|cFFFA8072"
#define MSG_COLOR_SANDYBROWN "|cFFF4A460"
#define MSG_COLOR_SEAGREEN "|cFF2E8B57"
#define MSG_COLOR_SEASHELL "|cFFFFF5EE"
#define MSG_COLOR_SIENNA "|cFFA0522D"
#define MSG_COLOR_SILVER "|cFFC0C0C0"
#define MSG_COLOR_SKYBLUE "|cFF87CEEB"
#define MSG_COLOR_SLATEBLUE "|cFF6A5ACD"
#define MSG_COLOR_SLATEGRAY "|cFF708090"
#define MSG_COLOR_SNOW "|cFFFFFAFA"
#define MSG_COLOR_SPRINGGREEN "|cFF00FF7F"
#define MSG_COLOR_STEELBLUE "|cFF4682B4"
#define MSG_COLOR_TAN "|cFFD2B48C"
#define MSG_COLOR_TEAL "|cFF008080"
#define MSG_COLOR_THISTLE "|cFFD8BFD8"
#define MSG_COLOR_TOMATO "|cFFFF6347"
#define MSG_COLOR_TRANSPARENT "|c00FFFFFF"
#define MSG_COLOR_TURQUOISE "|cFF40E0D0"
#define MSG_COLOR_VIOLET "|cFFEE82EE"
#define MSG_COLOR_WHEAT "|cFFF5DEB3"
#define MSG_COLOR_WHITE "|cFFFFFFFF"
#define MSG_COLOR_WHITESMOKE "|cFFF5F5F5"
#define MSG_COLOR_YELLOW "|cFFFFFF00"
#define MSG_COLOR_YELLOWGREEN "|cFF9ACD32"

So at first, when you want to put some color in the scipt, you must define it at the begining...

So you have to put something like this:

CODE-BOX
#define MSG_COLOR_INDIGO "|cFF4B0082"
#define MSG_COLOR_SADDLEBROWN "|cFF8B4513"
#define MSG_COLOR_MIDNIGHTBLUE "|cFF191970"
#define MSG_COLOR_AQUA "|cFF00FFFF"
#define MSG_COLOR_LIGHTRED "|cFFFF6060"
#define MSG_COLOR_NAVY "|cFF000080"
#define MSG_COLOR_OLIVE "|cFF808000"
#define MSG_COLOR_PURPLE "|cff2E0854"
#define MSG_COLOR_STEELBLUE "|cFF4682B4"
#define MSG_COLOR_SEAGREEN "|cFF2E8B57"



class SCRIPT_DECL Warper : public GossipScript



then you have to insert the code in the text you want to appear when you click it:

CODE-BOX
Menu->AddItem(0, "|cff2E0854~*^OMGWoW^*~|r");


There you go! now you have to do this everytime you want to insert a color!

My other tutorials:
[Guide] How to edit the core for Flying mounts everywhere!
[Guide] How to create Flying Mounts in items!
How to edit the core for max skills


Credits go to :
ArcEmu staff for creating this wonderfull emulator
Vox for the guide that helped me creat my server
OMGWoW FunServer admin for helping me
And of course Me xD
C++ begginer, already made 5 tutorials and im still up and running! need help? im here...
Posted Image

-"Look! There is something in the bushes!"
-"WHAT? WWWWHHHHEEEERRRREEEE????"
-"Riiiiiggggghhhtttt ......... HERE!!!"
-"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
-"Stop it, it's only a rabbit... 0_o"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users