Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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