I wrote a script for arcemu but probably works with other emus as well im betting
what it does is after you compile it uses the MainConfig File to allow you to easily edit the message and decide whether you want it turned on or off
[GMMotd.cpp]
Code:
#include "StdAfx.h"
#include "Setup.h"
void GMMotd(Player * pPlayer)
{
if(pPlayer->GetSession()->HasGMPermissions())
{
pPlayer->BroadcastMessage((Config.MainConfig.GetStringDefault("Custom", "GMMotd", "Welcome to [Server Name]").c_str()));
}
};
void SetupGameMasterMotd(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_WORLD, &GMMotd);
}
[Setup.cpp]
Code:
#include "StdAfx.h"
#include "Setup.h"
extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
{
return SCRIPT_TYPE_MISC;
}
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
{
if(Config.MainConfig.GetBoolDefault("Custom", "GMMotdActivated", false))
{
SetupGameMasterMotd(mgr);
}
}
#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
#endif
[Setup.h]
Code:
void SetupGameMasterMotd(ScriptMgr * mgr);
[Add This into your Arcemu-World.conf] or what ever you have
Code:
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Custom Settings
#
# GMMotd
# This is a GM Message of the day works the same
# exact way as a normal Motd - Mager1794
#
# Default: "No Game Master Motd Specified"
#
# GMMotd Activated
# Set to 1 to turn on Game master message of the day
#
# Default: "0"
#
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
<Custom GMMotd="No Game Master Motd Specified" GMMotdActivated="1">
that should be all of it
well feel free to comment how ever you feel like