Last active
December 15, 2015 16:39
-
-
Save Raydor/5290620 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/server/game/Handlers/ChatHandler.cpp 2013-03-08 20:08:04.000000000 +0100 | |
+++ b/src/server/game/Handlers/ChatHandler.cpp 2013-03-10 19:24:11.966856051 +0100 | |
sLog->outError(LOG_FILTER_NETWORKIO, "Player %s (GUID: %u) sent a chatmessage with an invalid language/message type combination", | |
GetPlayer()->GetName().c_str(), GetPlayer()->GetGUIDLow()); | |
recvData.rfinish(); | |
return; | |
} | |
} | |
// LANG_ADDON should not be changed nor be affected by flood control | |
else | |
{ | |
+//Custom - LANG_UNIVERSAL in Mountshop. | |
+if(sender->GetZoneId() == 33 && !HasPermission(RBAC_PERM_TWO_SIDE_INTERACTION_CHAT)) | |
+lang = LANG_UNIVERSAL; | |
// send in universal language if player in .gmon mode (ignore spell effects) | |
if (sender->isGameMaster()) | |
lang = LANG_UNIVERSAL; | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment