Mercury Emulator - Welcome Message
(Fixed when localhost messing around)
GameClient.cs under
Code:
if (userData.user.HasFuse("fuse_mod"))
{
queuedServerMessage.appendResponse(MercuryEnvironment.GetGame().GetModerationTool().SerializeTool());
}
Remove:
Code:
if (!string.IsNullOrWhiteSpace(MercuryEnvironment.GetDBConfig().DBData["welcome_message"]))
{
this.SendBroadcastMessage(MercuryEnvironment.GetDBConfig().DBData["welcome_message"]);
}
Add in its place:
Code:
ServerMessage serverMessageWelcome2 = new ServerMessage(Outgoing.MOTDNotificationMessageComposer);
serverMessageWelcome2.AppendInt32(1);
serverMessageWelcome2.AppendString("Welcome Message here");
queuedServerMessage.appendResponse(serverMessageWelcome2);
Replace "Welcome Message here" with your message.
Re: Mercury Emulator - Welcome Message
It wasn't broken in the first place and what you've done is force people to modify the code and recompile the Emulator each time to change the Welcome Message.
Re: Mercury Emulator - Welcome Message
How about just setting welcome_message in your configuration?
Re: Mercury Emulator - Welcome Message
Creating a topic for one fix, are you serious? If every one gonna do this it would be a mess.. Maybe you can release it in the release thread of Mercury next time?
Re: Mercury Emulator - Welcome Message
Quote:
Originally Posted by
ησвяαιη
It wasn't broken in the first place and what you've done is force people to modify the code and recompile the Emulator each time to change the Welcome Message.
Thats why there is 7 threads all asking for this fix then.
Quote:
Originally Posted by
The General
How about just setting welcome_message in your configuration?
Edit it so it does then, you seem like you know how.
Quote:
Originally Posted by
streamhotel
Creating a topic for one fix, are you serious? If every one gonna do this it would be a mess.. Maybe you can release it in the release thread of Mercury next time?
The original thread is locked.
Re: Mercury Emulator - Welcome Message
Here is a better one, instead of the message in the emu it's in the DB in Server_settings.
PHP Code:
ServerMessage serverMessageWelcome2 = new ServerMessage(Outgoing.MOTDNotificationMessageComposer);
serverMessageWelcome2.AppendInt32(1);
serverMessageWelcome2.AppendString(PlusEnvironment.GetDBConfig().DBData["welcome_message"]);
queuedServerMessage.appendResponse(serverMessageWelcome2);
Re: Mercury Emulator - Welcome Message
Swear there was already a fix for this wayyy back in September...
Re: Mercury Emulator - Welcome Message
Quote:
Originally Posted by
asesinato
Swear there was already a fix for this wayyy back in September...
Think there was but if it's from way back then, this will be easier to find :P
Re: Mercury Emulator - Welcome Message
Quote:
Originally Posted by
YoWesty
Here is a better one, instead of the message in the emu it's in the DB in Server_settings.
PHP Code:
ServerMessage serverMessageWelcome2 = new ServerMessage(Outgoing.MOTDNotificationMessageComposer);
serverMessageWelcome2.AppendInt32(1);
serverMessageWelcome2.AppendString(PlusEnvironment.GetDBConfig().DBData["welcome_message"]);
queuedServerMessage.appendResponse(serverMessageWelcome2);
Wrong... for mercury is "MercuryEnvironment" not plus xD
Re: Mercury Emulator - Welcome Message
Quote:
Originally Posted by
tehDrunk
Wrong... for mercury is "MercuryEnvironment" not plus xD
Change Plus to Mercury, problem solved.
Re: Mercury Emulator - Welcome Message
Correct this error much easier way that...
Re: Mercury Emulator - Welcome Message
Re: Mercury Emulator - Welcome Message
Quote:
Originally Posted by
sant0ro
Code Totally Useless.
Hahaha Santoro u cannot say shit about useless coding. Let me remember you your projects lmao.
And this thread had helped many people.
Re: Mercury Emulator - Welcome Message
Quote:
Originally Posted by
tehDrunk
Hahaha Santoro u cannot say shit about useless coding. Let me remember you your projects lmao.
And this thread had helped many people.
? My projects is a xit? I think Azure isn't a xit. Ah and this code is useless because doesn't work.
Re: Mercury Emulator - Welcome Message
Yes it's true, the code is really useless.