Just follow MMUG_ADMIN or something, and see where it does the coloring...
hello I step Unmasking Coloring: get123 Tutorial? not how
ZCombatInterface.cpp
if(pCharacter->IsAdminName()) {
sprintf(pItem->szLevel,"%d%s",pCharacter->GetProperty()->nLevel, ZMsg(MSG_CHARINFO_LEVELMARKER));
pItem->SetColor(ZCOLOR_ADMIN_NAME);
}
else{
sprintf(pItem->szLevel,"%d%s",pCharacter->GetProperty()->nLevel, ZMsg(MSG_CHARINFO_LEVELMARKER));
}
if(pCharacter->IsDeveloperName()) {
sprintf(pItem->szLevel,"%d%s",pCharacter->GetProperty()->nLevel, ZMsg(MSG_CHARINFO_LEVELMARKER));
pItem->SetColor(ZCOLOR_Developer_NAME);
}
else{
sprintf(pItem->szLevel,"%d%s",pCharacter->GetProperty()->nLevel, ZMsg(MSG_CHARINFO_LEVELMARKER));
}
if(pCharacter->IsEventMasterName()) {
sprintf(pItem->szLevel,"%d%s",pCharacter->GetProperty()->nLevel, ZMsg(MSG_CHARINFO_LEVELMARKER));
pItem->SetColor(ZCOLOR_EventMaster_NAME);
}
else{
sprintf(pItem->szLevel,"%d%s",pCharacter->GetProperty()->nLevel, ZMsg(MSG_CHARINFO_LEVELMARKER));
}if(pCharacter->IsAdminName())
m_pTargetLabel->SetTextColor(ZCOLOR_ADMIN_NAME);
if(pCharacter->IsDeveloperName())
m_pTargetLabel->SetTextColor(ZCOLOR_Developer_NAME);
if(pCharacter->IsEventMasterName())
m_pTargetLabel->SetTextColor(ZCOLOR_EventMaster_NAME);if(pCharacter->IsAdminName()) {
pFont = MFontManager::Get("FONTa12_O1Org");
pDC->SetColor(MCOLOR(ZCOLOR_ADMIN_NAME));
}
else {
pFont = MFontManager::Get("FONTa12_O1Blr");
pDC->SetColor(MCOLOR(0xFF00FF00));
}
if(pCharacter->IsDeveloperName()) {
pFont = MFontManager::Get("FONTa12_O1Org");
pDC->SetColor(MCOLOR(ZCOLOR_Developer_NAME));
}
else {
pFont = MFontManager::Get("FONTa12_O1Blr");
pDC->SetColor(MCOLOR(0xFF00FF00));
}
if(pCharacter->IsEventMasterName()) {
pFont = MFontManager::Get("FONTa12_O1Org");
pDC->SetColor(MCOLOR(ZCOLOR_EventMaster_NAME));
}
else {
pFont = MFontManager::Get("FONTa12_O1Blr");
pDC->SetColor(MCOLOR(0xFF00FF00));
}
oh.my.god. someone gotta learn the usage of "else if".
Solution ---> http://forum.ragezone.com/f497/tut-q...1/#post6887259
-
Last edited by ZeidForce; 08-03-12 at 10:57 PM.