Likes: 0
Results 1 to 1 of 1
Thread: World Chat /o For Arcemu
-
28-09-11, 05:03 PM #1
World Chat /o For Arcemu
Register to remove this adJust insert this in to your compiled version and change as u please
CODECode:Index: Chat.h =================================================================== --- Chat.h (revision 4140) +++ Chat.h (working copy) @@ -134,6 +134,7 @@ #define MSG_COLOR_***PINK "|cffC67171" #define MSG_COLOR_***BLUE "|cff00E5EE" #define MSG_COLOR_***HOTPINK "|cffFF6EB4" +#define MSG_COLOR_ORANGE "|cffFFA500" #define CHECKSESSION if(m_session == NULL) return NULL; \ if(m_session->GetPlayer() == NULL) return NULL; Index: ChatHandler.cpp =================================================================== --- ChatHandler.cpp (revision 4140) +++ ChatHandler.cpp (working copy) @@ -322,18 +322,14 @@ } break; case CHAT_MSG_OFFICER: { - if (sChatHandler.ParseCommands(msg.c_str(), this) > 0) - break; + char player[1024]; + Player * Plr = GetPlayer(); + if( Plr->GetTeam() == 1) + snprintf(player, 1024, "%s|cff00ff00[World]:|r [%s%s|r]: %s|r", MSG_COLOR_GREY, MSG_COLOR_ORANGE, GetPlayer()->GetName(), msg.c_str()); + else + snprintf(player, 1024, "%s|cffff0000[World]:|r [%s%s|r]: %s|r", MSG_COLOR_GREY, MSG_COLOR_ORANGE, GetPlayer()->GetName(), msg.c_str()); + sWorld.SendWorldText(player); - if(g_chatFilter->Parse(msg) == true) - { - SystemMessage("Your chat message was blocked by a server-side filter."); - return; - } - - if(_player->m_playerInfo->guild) - _player->m_playerInfo->guild->OfficerChat(msg.c_str(), this, lang); - } break; case CHAT_MSG_YELL: {
› See More: World Chat /o For Arcemu