Is there a way of announcing when a player logs onto the server.
I have just a tiny server comprised mostly of friends and it would be nice to have the server announce when the logon.
Thanks in advance for any help.
Is there a way of announcing when a player logs onto the server.
I have just a tiny server comprised mostly of friends and it would be nice to have the server announce when the logon.
Thanks in advance for any help.
You edit something in your ascent database. when you log in it says something like Welcome to ascent 2775 or something like this
well you can edit it usally in the Ascent.config or using navicat or a database hangler.
Thanks for the prompt response Tom_2001 but I think you misunderstood what I was looking for.
I'm not looking for something that announces to you, but would announce when player 'x' logs onto the server it announces to players 'y' 'z' that player 'x' has logged on to the server.
Im not sure that is possible... maybe if they add you to friends list :P or you hire a gamemaster to just .ann when someone logs in :P
void PLRCheck (Player *Plr)
{
if(Plr->GetSession()->CanUseCommand('a'))
{
char display_str[255];
sprintf(display_str, "[NOTICE] <GM>|cffCC0000%s|r has logged in!", Plr->GetName());
sWorld.SendWorldText(display_str);
delete display_str;
}else{
char display_str[255];
sprintf(display_str, "[NOTICE] %s has logged in!", Plr->GetName());
sWorld.SendWorldText(display_str);
delete display_str;
}
}
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_WORLD, &PLRCheck);
}
Motd = "No MOTD specified." Look For It in Your Config....
Gastric when will your Epicness end :P
Oh.......lol thats cool Say Name Welcome That'd Be Cool If u need help with complie it let me know![]()
Hehe, yes. Gastric is correct.
Aight well heres the DLL, and the source:
http://filebin.ca/goeau/PlrLogin.rar
Have fun, and post any errors![]()
Fantastic...
Thank you so much Gastric. Needed to compile myself but it loaded properly just testing out now. +Rep
hmm, just tested it out and it doesn't appear to do anything. Loading the server works just fine with the dll loading, but when I or anyone logs on it does not announce. Probably something I did.
When I try to load the dll you provided Gastric I get an error that the dll will not load. Get an error that "This application has failed to start because ascent-world.exe was not found."
I compiled up a test server on rev 3648 and get no popup errors on server load but do get this error in the dll load "version functions not found". (looking back I got this error on my compile too on my live server on rev 3499)
Last edited by vb4evr; 02-05-2008 at 12:50 PM.