Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

• Mercury Emulator 2.3 Help/fixes thread •

Experienced Elementalist
Joined
Jul 1, 2012
Messages
232
Reaction score
37
Hey, as the Habbo Releases category isn't made for helping and fixing. I just made a new thread in the Habbo Help category. I'm quite new to RZ so tell me if this is the wrong section or idk. But here are my fixes yet:

Faceless command
Code:
                    case "faceless":
                    case "geengezicht":
                    case "gezichtloos":
                        {
                            if (Session.GetHabbo().GotCommand("faceless"))
                            {
                                string[] figureParts;
                                string[] headParts;


                                figureParts = Session.GetHabbo().Look.Split('.');
                                foreach (string Part in figureParts)
                                {
                                    if (Part.StartsWith("hd"))
                                    {
                                        headParts = Part.Split('-');


                                        if (!headParts[1].Equals("99999"))
                                            headParts[1] = "99999";
                                        else
                                            break;


                                        string NewHead = "hd-" + headParts[1] + "-" + headParts[2];


                                        Session.GetHabbo().Look = Session.GetHabbo().Look.Replace(Part, NewHead);
                                        break;
                                    }
                                }


                                using (IQueryAdapter dbClient = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
                                {
                                    dbClient.setQuery("UPDATE users SET look =    [USER=1333417016]Look[/USER] WHERE username =    [USER=411303]username[/USER]");
                                    dbClient.addParameter("look", Session.GetHabbo().Look);
                                    dbClient.addParameter("username", Session.GetHabbo().Username);
                                    dbClient.runQuery();
                                }


                                Room Room = Session.GetHabbo().CurrentRoom;


                                if (Room == null)
                                    return true;


                                RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);


                                if (User == null)
                                    return true;

                                Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserDataMessageComposer);
                                Session.GetMessageHandler().GetResponse().AppendInt32(-1);
                                Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Look);
                                Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Gender.ToLower());
                                Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Motto);
                                Session.GetMessageHandler().GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints);
                                Session.GetMessageHandler().SendResponse();


                                ServerMessage RoomUpdate = new ServerMessage(Outgoing.UpdateUserDataMessageComposer);
                                RoomUpdate.AppendInt32(User.VirtualId);
                                RoomUpdate.AppendString(Session.GetHabbo().Look);
                                RoomUpdate.AppendString(Session.GetHabbo().Gender.ToLower());
                                RoomUpdate.AppendString(Session.GetHabbo().Motto);
                                RoomUpdate.AppendInt32(Session.GetHabbo().AchievementPoints);
                                Room.SendMessage(RoomUpdate);

                            }
                            return true;
                        }

Override command
Code:
                    case "override":
                        {
                            if (Session.GetHabbo().GotCommand("override"))
                            {
                                Room currentRoom = Session.GetHabbo().CurrentRoom;
                                RoomUser roomUserByHabbo = null;
                                currentRoom = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); // got the original command from Remco. Fixed small bug, so its compatible for Mercury. by weed aka askethz
                                if (currentRoom != null)
                                {
                                    roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                                    if (roomUserByHabbo != null)
                                    {
                                        if (roomUserByHabbo.AllowOverride)
                                        {
                                            roomUserByHabbo.AllowOverride = false;
                                            SendChatMessage(Session, "Override staat uit!");
                                        }
                                        else
                                        {
                                            roomUserByHabbo.AllowOverride = true;
                                            SendChatMessage(Session, "Override staat aan!"); 
                                        }
                                        currentRoom.GetGameMap().GenerateMaps(true);
                                    }
                                }

                            }
                            return true;
                        }

Unban command
Code:
                    case "unban":
                        if (this.Session.GetHabbo().GotCommand("unban"))
                        {
                            Habbo user = MercuryEnvironment.getHabboForName(Params[1]);

                            if (user != null)
                            {
                                if (user.Rank >= this.Session.GetHabbo().Rank)
                                {
                                    this.Session.SendNotif("You are not allowed to unban that user.");
                                    return true;
                                }
                                using (IQueryAdapter adapter = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
                                {
                                    adapter.setQuery("DELETE FROM bans WHERE value = '" + user.Username + "'");
                                    adapter.runQuery();
                                    MercuryEnvironment.GetGame().GetModerationTool().LogStaffEntry(this.Session.GetHabbo().Username, user.Username, "Unban", "Je hebt zojuist de volgende value unbanned: [" + Params[2] + "]"); //fixed by askethZ aka Weed
                                }
                            }
                            this.Session.SendNotif("Speler kan niet gevonden worden.");
                            return true;
                        }
                        return true;

This are my fixes yet, if you have any yourself, please reply them. This helps a lot of new people.


---
Edit, if your ipban, mip nor machineban aren't working. No problem, check your fuse_cmds, there probably not in it. Add them yourself or for the lazy-asses between us:
Code:
(86, 'machineban', 6, 'speler reden', 'Zorg dat iemand nooit meer op Line kan.'),
(87, 'ipban', 6, 'speler reden', 'Geef een IP ban.'),
(88, 'mip', 6, 'speler reden', 'Geef machine EN IP-ban.');
 
Last edited:
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
Hello.
I use Mercury Emulator.

I disconnect when I come to hotelview..?
I have checked my variables 5 times.


Well, check if the link's in the client are good. Is it a compatible R63B New crypto client? If so, it is the external_variable's, i run a hotel and not having this problem.

Sorry for my bad english, im dutch!
 
Upvote 0
Newbie Spellweaver
Joined
Aug 24, 2014
Messages
28
Reaction score
0
Does anyone know how to make 'Settings>Other settings> ' Old Chat ' save after you reload the hotel, or EMU gets restarted? Like, where do I look for it? Be helpful.
 
Upvote 0
Newbie Spellweaver
Joined
Sep 2, 2011
Messages
9
Reaction score
0
Well, check if the link's in the client are good. Is it a compatible R63B New crypto client? If so, it is the external_variable's, i run a hotel and not having this problem.

Sorry for my bad english, im dutch!


Can you share your client file so i can test that one?
 
Upvote 0
R.I.P Millercent
Loyal Member
Joined
Nov 6, 2012
Messages
2,230
Reaction score
314
Problem I encounter is: Unable to connect to remote server... Not exactly sure why or what the problem is. Anyone can help that'd be nice. Thank you.

Make sure you allow the emulator through your firewall and your internet proxy settings are fine.

Try disconnecting from your internet and starting it there.

Working on not finished wired today and group gates.
 
Upvote 0
Elite Diviner
Joined
Mar 6, 2013
Messages
404
Reaction score
104
OMG Thank you for starting this thread I think we are all in the same boat with out problems I know I have many as well, when Jonteh gets back we will share what we fix on here as well <3 but the first 3 fixes up the top I needed those so bad. I for one will be monitoring this thread hourly.. it's great to see everyone coming together as a community and helping each other out, this is what has been missing in this section for so long.
 
Upvote 0
Initiate Mage
Joined
Aug 15, 2014
Messages
2
Reaction score
0
Hi everyone,

I have two Hotels running on two different vps, connecting to different databases.

Tonight both the emulators are having the same error; they will not load up. ... Something wrong happened: The request was aborted: The operation has timed out.

Both of these were working literally an hour ago, no changes have been made. Any ideas?



So I used a packet sniffer and this emulator is sending info to 149.ip-92-222-7.eu. When I pinged that IP it woke it up and the emulator worked again. It's concerning as config info and mus info being sent to this address. :-/ Don't flame just thought I'd share that this is a concern.... and a shame as the emulator seems brillliant.

Mercury.exe 2300 TCP win-l1ka3v0tun1 52396 par10s10-in-f5.1e100.net http ESTABLISHED 1 103 98 153,536


Mercury.exe 2300 TCP win-l1ka3v0tun1 52395 149.ip-92-222-7.eu http CLOSE_WAIT

Thats the errors. Two Hotels, Two different servers, both down for 20 minutes until I pinged this address. Can anyone look into the code and see if its all legit? Tried to recompile the code but it's damaged.

Reverse IP on the IP it resolves too give this :

amorsintabu.com
grudeti.com
holobox.com.es

So I checked out this : Look at the name server.

Doing a reverse IP on grudeti.com gives this
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Aug 24, 2014
Messages
28
Reaction score
0
Can someone tell me where this is located at please: Im English and wanna change it. Yes i checked the external_flash_texts nothing was there.

Check in the EMU itself, should be there.
 
Upvote 0
Junior Spellweaver
Joined
May 11, 2014
Messages
116
Reaction score
11
Anyone have fix for publics rooms furnis click ? I am obliger to use the :furni command etc...
 
Upvote 0
Back
Top