Skip to content

Instantly share code, notes, and snippets.

@Raydor
Last active December 15, 2015 16:39
Show Gist options
  • Save Raydor/5290570 to your computer and use it in GitHub Desktop.
Save Raydor/5290570 to your computer and use it in GitHub Desktop.
Lenguaje universal solamente en una zona o zonas específicas para que se entiendan alis y hordas sola y exclusivamente en esos lugares. Tipo de Core: Mythcore
--- a/src/server/game/Server/Protocol/Handlers/ChatHandler.cpp 2013-03-08 20:08:04.000000000 +0100
+++ b/src/server/game/Server/Protocol/Handlers/ChatHandler.cpp 2013-03-10 19:24:11.966856051 +0100
// Disabled addon channel?
if(!sWorld->getBoolConfig(CONFIG_ADDON_CHANNEL))
return;
}
// LANG_ADDON should not be changed nor be affected by flood control
else
{
+//Custom - LANG_UNIVERSAL in Mountshop.
+if(_player->GetZoneId() == 33 && !sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHAT))
+lang = LANG_UNIVERSAL;
// send in universal language if player in .gmon mode (ignore spell effects)
if(_player->isGameMaster())
lang = LANG_UNIVERSAL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment