• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[small tut] Color clan teg chat

Junior Spellweaver
Joined
Oct 25, 2017
Messages
158
Reaction score
17
This code is only ready for 45% if you know how to complete it write about it here
Search: sMsg = applyProfanityFilter(sMsg.c_str()); and past below

Code:
//////////////////////CLAN TEG//////////////////////////
wiCharDataFull& slot = gUserProfile.ProfileData.ArmorySlots[gUserProfile.SelectedCharID];
int Colorid = slot.ClanTagColor;
const char* tagColor = "#000000";
switch (Colorid)
{
	case 1:
		tagColor = "#FF0000";
		break;
	case 2:
		tagColor = "#FFB300";
		break;
	case 3:
		tagColor = "#00FFF5";
		break;
	case 4:
		tagColor = "#15FF00";
		break;
	case 5:
		tagColor = "#006BFF";
		break;
	case 6:
		tagColor = "#E700FF";
		break;
	case 7:
		tagColor = "#6E6E6E";
		break;
	case 8:
		tagColor = "#D1D1D1";
		break;
	default:
		break;
}

if (slot.ClanID != 0)
	sprintf(tmpMsg
	, "<font color=\"%s\">[%s]</font> <font color=\"%s\">[%s]</font> <font color=\"%s\">%s%s:</font> <font color=\"%s\">%s</font>"
	, tabNamesColor[tabIndex]
	, tabNames[tabIndex]
	, tagColor
	, slot.ClanTag
	, userColor
	, namePrefix
	, sUser.c_str()
	, textColor
	, sMsg.c_str());
else
///////////////////////////////////////////////////////////////////////////////////////////////////
 
Last edited by a moderator:
Back
Top