PDA

View Full Version : [Release] Login Announcer Script


kadava
03-12-2009, 06:29 PM
Hey, ive made this for anyone who wants a there server to Announce when new players join your server! all you need to do is compile it and your done.

#using "StdAfx.h"

void LoginAnnounce(Player* plr)
{
char announce[512];
snprintf(announce, 512, "%s, Logged in.", plr->GetName());
sWorld.SendWorldText(announce);
}

void SetupAnnounces(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_WORLD, &LoginAnnounce);
}

amanh
03-12-2009, 07:06 PM
Seems like a good idea. Only problem is it would get annoying on a popular server.

$hadow
03-12-2009, 08:01 PM
dude I thin this was in the old cores of ascent :P dam I loved That
does look like this ?
"Account Hakashis has logged inwith character: $HaDoW"
??? :D

X-StatiK
03-13-2009, 02:16 AM
in which file to add this script?

ProphetX
03-13-2009, 02:41 AM
The idea is good, but the code you have written will get annoying. It's better to have an option in config to set the privilege level that it sends the message to, e.g. "1" sends it to everybody, "0" sends it to nobody, and then "a"..."z" sends it to different levels of GM.

maxelocked
04-10-2009, 03:03 PM
Hey, ive made this for anyone who wants a there server to Announce when new players join your server! all you need to do is compile it and your done.

can you compile the scrip to give us?

sorry i am noob

Gnome
04-10-2009, 03:17 PM
Dude it's easy to compile your own. :D

maxelocked
04-10-2009, 03:19 PM
Dude it's easy to compile your own. :D

yes.. thanks but if you know . can you explain me??

fast_elf
04-11-2009, 03:10 AM
should have it on first login on that char, so when they login again on that char it won't announce it.