Jump to content

[HELP] Need a Patch for whisper


Recommended Posts

Posted

Some tips :

Whisps are handled in ChatHandler.cpp, function HandleMessagechatOpcode. Search for "CHAT_MSG_WHISPER"

Group invites are handled in GroupHandler.cpp, function HandleGroupInviteOpcode

The level of a player is accessed with : player->getLevel()

Posted

in chatHandler.cpp

if (_player->getLevel()< 15)
{
   SendNotification(GetMangosString(LANG_CHAT_DISABLED_FOR_LEVEL));
   break;
}

and in langage.h

LANG_CHAT_DISABLED_FOR_LEVEL        = 5000,

after you need just add a new entry (5000) in mangos_string database table.

Posted
Better is we make Config Option. And a message "You need level XXX for Wisper"

i'm also looking for something like this.

Could anyone give a hint or something how this could be done?

Posted
i'm also looking for something like this.

Could anyone give a hint or something how this could be done?

Look at how configuration data is loaded and use that to add your own here's a starting point: World.cpp line 445

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use