
Originally Posted by
pigao
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.