Mercury Emulator - Welcome Message

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Novice Bean is offline
    MemberRank
    Mar 2015 Join Date
    3Posts

    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.


  2. #2
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    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.

  3. #3
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: Mercury Emulator - Welcome Message

    How about just setting welcome_message in your configuration?

  4. #4
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    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?

  5. #5
    Novice Bean is offline
    MemberRank
    Mar 2015 Join Date
    3Posts

    Re: Mercury Emulator - Welcome Message

    Quote Originally Posted by ησвяαιη View Post
    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 View Post
    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 View Post
    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.

  6. #6
    Account Upgraded | Title Enabled! YoWesty is offline
    MemberRank
    Oct 2012 Join Date
    285Posts

    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); 

  7. #7
    Account Upgraded | Title Enabled! asesinato is offline
    MemberRank
    Aug 2014 Join Date
    601Posts

    Re: Mercury Emulator - Welcome Message

    Swear there was already a fix for this wayyy back in September...

  8. #8
    Account Upgraded | Title Enabled! YoWesty is offline
    MemberRank
    Oct 2012 Join Date
    285Posts

    Re: Mercury Emulator - Welcome Message

    Quote Originally Posted by asesinato View Post
    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

  9. #9
    Gladius tehDrunk is offline
    MemberRank
    Mar 2013 Join Date
    216Posts

    Re: Mercury Emulator - Welcome Message

    Quote Originally Posted by YoWesty View Post
    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

  10. #10
    Account Upgraded | Title Enabled! YoWesty is offline
    MemberRank
    Oct 2012 Join Date
    285Posts

    Re: Mercury Emulator - Welcome Message

    Quote Originally Posted by tehDrunk View Post
    Wrong... for mercury is "MercuryEnvironment" not plus xD
    Change Plus to Mercury, problem solved.

  11. #11
    Apprentice Bet4 is offline
    MemberRank
    Nov 2013 Join Date
    18Posts

    Re: Mercury Emulator - Welcome Message

    Correct this error much easier way that...
    Last edited by Bet4; 19-03-15 at 05:26 PM.

  12. #12
    git bisect -m ovflowd is offline
    MemberRank
    Sep 2011 Join Date
    2,191Posts

    Re: Mercury Emulator - Welcome Message

    Code Totally Useless.

  13. #13
    Gladius tehDrunk is offline
    MemberRank
    Mar 2013 Join Date
    216Posts

    Re: Mercury Emulator - Welcome Message

    Quote Originally Posted by sant0ro View Post
    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.

  14. #14
    git bisect -m ovflowd is offline
    MemberRank
    Sep 2011 Join Date
    2,191Posts

    Re: Mercury Emulator - Welcome Message

    Quote Originally Posted by tehDrunk View Post
    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.

  15. #15
    Apprentice Bet4 is offline
    MemberRank
    Nov 2013 Join Date
    18Posts

    Re: Mercury Emulator - Welcome Message

    Yes it's true, the code is really useless.



Page 1 of 2 12 LastLast

Advertisement