Hello, I saw on a private server earlier that they had a system that annouced when a player logs in, example my char is named ''Xilas''
Then the server annouce
'' Player Xilas just logged in!''
Any ideas how to install that to your system?
Hello, I saw on a private server earlier that they had a system that annouced when a player logs in, example my char is named ''Xilas''
Then the server annouce
'' Player Xilas just logged in!''
Any ideas how to install that to your system?
Yep. There is a script for it (C++ or Lua). I can't remember were I saw it. I think on the old OpenAscent archives.
Alright, + rep to the one who finds me a script and help me get it working![]()
I'll make one instead:
Code:#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); }
Thanks! + rep, LUA script?
How to install it?
This is a C++ script, you can't register server hooks like this in Lua,
You need to compile it into an DLL file, search around. Bounch of guides to do it![]()
Didnt work, I putted the DLL file in Scripts_bin folder in ArcEmu folder.
When I start the server this comes up,
Program or DLL file C:/arcEmu/ArcEmu/Script_Bin/Playerloginannounce.dll is not a valdiate windows- memorybla bla. Control this aiganst the installationsdisk
Help!
something wrong with Compilation..
Can you make a new one? (a)
Did you just save the File as a .DLL lol?
yes, how come?
I saved is as a DLL file then putted the file in to scripts_bin folder
Lololol. You need to learn how to compile a server, and then how to COMPILE (Keyword) a DLL.
Renaming doesn't work like that :P
I live in a shoe
Look trough the forum after compile guides, you can't compile a DLL by renaming the file extension. A DLL is encrypted code. (DYNAMIC LINK LIBRARY)