Visit Room Link

Results 1 to 5 of 5
  1. #1
    Newbie pigao is offline
    MemberRank
    Sep 2014 Join Date
    11Posts

    Visit Room Link

    Just wondering what does it take to make a room load in the client. For example when I go to hotel.com/room/id/1 the client would load room 1.


  2. #2
    R.I.P Millercent FatalLulz is offline
    Grand MasterRank
    Nov 2012 Join Date
    AustraliaLocation
    2,240Posts

    Re: Visit Room Link

    Your emulator needs to have a room forwarding MUS command coded like Phoenix does. If you don't have one I recommend looking at Neto's source and then into the MUS.cs file for it.

    If you use phoenix then it's params are 'senduser [userid] [roomid]'

  3. #3
    Newbie pigao is offline
    MemberRank
    Sep 2014 Join Date
    11Posts

    Re: Visit Room Link

    Does Mercury have MUS built in? Is this what you mean:
    1. Have a room.php script that takes in an id like room.php?id=1 (web.config to make it look like /room/id) that sends a MUS command to the emu
    2. The emu will then load the room

    Thanks.

  4. #4
    Member Abidas is offline
    MemberRank
    Mar 2014 Join Date
    DenmarkLocation
    51Posts

    Re: Visit Room Link

    Quote Originally Posted by pigao View Post
    Does Mercury have MUS built in?
    Yes, but as far as I know, it doesn't have a :senduser mus command.

  5. #5
    R.I.P Millercent FatalLulz is offline
    Grand MasterRank
    Nov 2012 Join Date
    AustraliaLocation
    2,240Posts

    Re: Visit Room Link

    Quote Originally Posted by pigao View Post
    Does Mercury have MUS built in? Is this what you mean:
    1. Have a room.php script that takes in an id like room.php?id=1 (web.config to make it look like /room/id) that sends a MUS command to the emu
    2. The emu will then load the room

    Thanks.
    Yes like that I'm pretty sure. Uber2 had this coded into it, if I get the time I'll get the code for that for you.

    For mercury use this as the MUS command;
    Code:
    case "senduser":
                        {
                            uint UserId = Convert.ToUInt32(Params[0]);
                            int RoomId = Convert.ToInt32(Params[1]);
    
                            Client = MercuryEnvironment.GetGame().GetClientManager().GetClientByUserID(UserId);
                            if (Client != null)
                            {
                                ServerMessage SendUser = new ServerMessage(Outgoing.RoomForwardMessageComposer);
                                SendUser.AppendInt32(RoomId);
                                Client.SendMessage(SendUser);
                            }
                        }
    You might need to change the way your MUS works how ever.



Advertisement