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:
Junior Spellweaver
Joined
May 11, 2014
Messages
116
Reaction score
11
Oh ! thank's bro' :p
I find this program later ^^
But i have a other problem (always, always, always :'). )
I change default home room for my new users, I added this room to my list navigator public and after a while the emulator display an error as: error we tyske cycle of room: 4 (a thing like that)

Now I cannot connect any more:p
That blocks in 87 % nevertheless I did not make errors in my initiatives :p
 
Upvote 0
Junior Spellweaver
Joined
Jul 19, 2013
Messages
171
Reaction score
115
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
Find in source:
Code:
internal static string FIGUREDATA_URL
And you'll find the answer
 
Upvote 0
Newbie Spellweaver
Joined
Oct 8, 2012
Messages
89
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.
 
Upvote 0
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
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.



That's located in the emulator source.
Reverb

No, i ain't aware of that. but now i wanna know what the bug is:p didn't see any unusual command or something.
 
Upvote 0
Newbie Spellweaver
Joined
Oct 8, 2012
Messages
89
Reaction score
0
Anybody have a correct version of habbo-imaging the one people are giving out on the comments are not working and I have legit everything correct in htaccess and web.config help please! Im about to open a hotel and I need working groups please
 
Upvote 0
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
Anybody have a correct version of habbo-imaging the one people are giving out on the comments are not working and I have legit everything correct in htaccess and web.config help please! Im about to open a hotel and I need working groups please

By my knowledge there isn't any yet, just open it. Nobody is gonna cry about that the group badge image's won't show, if there is a fix there is a fix. Really, the players are getting horny from the new crypto.
 
Upvote 0
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
The :superban command doesn't work for me.

Anyone know the fix for it?! It just says "MYSQL error"
 
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.

Open up the emu and search 'Evento'
 
Upvote 0
Junior Spellweaver
Joined
Oct 29, 2013
Messages
124
Reaction score
9
I can not put the pictures YouTube videos there, some retro managed, how you doing? With Youtubethumbail.php there. Thank you for your help!
 
Upvote 0
Joined
Sep 15, 2010
Messages
519
Reaction score
88
Ok so I still continue to get Unable to connect to remote server.. Ive disabled firewall, Allowed ports, Checked all configs. Nothing is working. Anyone got a suggestion?

Pic of my emu config and the emu..

AskethZ - • Mercury Emulator 2.3 Help/fixes thread • - RaGEZONE Forums
 
Last edited:
Upvote 0
Experienced Elementalist
Joined
Jul 1, 2012
Messages
232
Reaction score
37
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.
Thanks for the reply! Really appreciate it!
 
Upvote 0
Newbie Spellweaver
Joined
Oct 8, 2012
Messages
89
Reaction score
0
By my knowledge there isn't any yet, just open it. Nobody is gonna cry about that the group badge image's won't show, if there is a fix there is a fix. Really, the players are getting horny from the new crypto.
How come some people have working groups then.
 
Upvote 0
Junior Spellweaver
Joined
May 11, 2014
Messages
116
Reaction score
11
Bug during user login: System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToUInt32(IFormatProvider provider)
at Mercury.HabboHotel.Users.Authenticator.HabboFactory.GenerateHabbo(DataRow dRow, DataRow mRow, HashSet`1 group) in c:\Users\Administrator\Desktop\New folder\HabboHotel\Users\Authenticator\HabboFactory.cs:line 25
at Mercury.HabboHotel.Users.UserDataManagement.UserDataFactory.GetUserData(String sessionTicket, String ip, Byte& errorCode) in c:\Users\Administrator\Desktop\New folder\HabboHotel\Users\UserDataManagement\UserDataFactory.cs:line 341
at Mercury.HabboHotel.GameClients.GameClient.tryLogin(String AuthTicket) in c:\Users\Administrator\Desktop\New folder\HabboHotel\GameClients\GameClient.cs:line 158




Bug during user login: System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToUInt32(IFormatProvider provider)
at Mercury.HabboHotel.Users.Authenticator.HabboFactory.GenerateHabbo(DataRow dRow, DataRow mRow, HashSet`1 group) in c:\Users\Administrator\Desktop\New folder\HabboHotel\Users\Authenticator\HabboFactory.cs:line 25
at Mercury.HabboHotel.Users.UserDataManagement.UserDataFactory.GetUserData(String sessionTicket, String ip, Byte& errorCode) in c:\Users\Administrator\Desktop\New folder\HabboHotel\Users\UserDataManagement\UserDataFactory.cs:line 341
at Mercury.HabboHotel.GameClients.GameClient.tryLogin(String AuthTicket) in c:\Users\Administrator\Desktop\New folder\HabboHotel\GameClients\GameClient.cs:line 158

What is this problem ?
 
Upvote 0
Newbie Spellweaver
Joined
Oct 8, 2012
Messages
89
Reaction score
0
The things i changed into the emulator for the :)eventha,:superha) commands did not work! can someone help please this is getting annoying lol
Screenie of me changing it:
screenie of :eventha:

Its not working any solutions?
 
Upvote 0
Back
Top