• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

• 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:
Newbie Spellweaver
Joined
Feb 7, 2013
Messages
54
Reaction score
3
Mind getting on teamviewer and helping me?

It's your vars, you've gotta edit them further than replacing the url stuff. OR it's your game ports, you've not opened up the ports. AS donszeh said.

I'll help you sort this when I'm available.
 
Upvote 0
Junior Spellweaver
Joined
Dec 31, 2013
Messages
198
Reaction score
25
It's your vars, you've gotta edit them further than replacing the url stuff. OR it's your game ports, you've not opened up the ports. AS donszeh said.

I'll help you sort this when I'm available.
Lets set a time? You got skype?
 
Upvote 0
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
... I was running mercury fine when suddenly this poop appears:


ONC76La - • Mercury Emulator 2.3 Help/fixes thread • - RaGEZONE Forums


What's this?!

Please answer fast... Cuz i can't get my hotel back on:S
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Aug 24, 2014
Messages
28
Reaction score
0
Don't know if anyone had this issue, but furniture in rooms breaks sometimes, you're able to walk on the furniture and when you reload the room the furniture isn't there but in your hand?
 
Upvote 0
Experienced Elementalist
Joined
Dec 16, 2012
Messages
293
Reaction score
31
It's unsecure. My hotel got hacked last night, and all users where gone. Hopefully I got a backup some hours before the attack.
 
Upvote 0
Junior Spellweaver
Joined
Aug 20, 2013
Messages
114
Reaction score
10
Don't know if anyone had this issue, but furniture in rooms breaks sometimes, you're able to walk on the furniture and when you reload the room the furniture isn't there but in your hand?

Some of us were having this pickup bug, yes.. Be sure to use the V2.3 database with the V2.3 emulator, it should be fixed then!

EDIT: When I put the gamecenter button in my variables on enable, I don't see it.. Is there a way to enter the gamecenter?
 
Last edited:
Upvote 0
Experienced Elementalist
Joined
Dec 16, 2012
Messages
293
Reaction score
31
I have the same problem. It plays in some seconds and then just disconnects me.
 
Upvote 0
Newbie Spellweaver
Joined
Aug 17, 2007
Messages
52
Reaction score
7
I'm getting an error on this emulator every time i open a page in the catalogue.
No errors on emulator nor errorlog, just this weird bug... Anyone help pls?
The client crashes with the error:
EDIT; also happens when opening inventory.
EDIT2;

Array ( [mouse_up_time] => 1411722336018 [error_data] => null [debug] => Parsing flasvars ** Host: 127.0.0.1 ** Port: 30000 ** Connected in 1571 ** Connected with 1 attempts ** Canvas count: 1 ** Library url ** Library name anna_stool [in_room] => false [mouse_up_target] => normal_subitem_template: [Window _-1Ie::RegionController normal_subitem_template 648] [system] => A=t&SA=t&SV=t&EV=t&MP3=t&AE=t&VE=t&ACC=t&PR=t&SP=f&SB=f&DEB=f&V=WIN%2015%2C0%2C0%2C152&M=Adobe%20Windows&R=1366x768&COL=color&AR=1.0&OS=Windows%208.1&ARCH=x86&L=en&IME=t&PR32=t&PR64=t&PT=PlugIn&AVD=f&LFD=f&WD=f&TLS=t&ML=5.1&DP=72 [rece_msg_time] => 1411722336069 [start_time] => 1411722302231 [is_fatal] => true [sent_msg_time] => 1411722336019 [crash_time] => 1411722336952 [error_ctx] => [agent] => Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 [host] => 127.0.0.1 [flash_version] => WIN 15,0,0,152 [port] => 30000 [last_room] => 0 [avg_update] => 0 [click_time] => 1411722336020 [click_target] => normal_subitem_template: [Window _-1Ie::RegionController normal_subitem_template 648] [error_desc] => Uncaught client error, eventType: uncaughtError errorID: 0 [error_cat] => 40 )
 
Last edited:
Upvote 0
Elite Diviner
Joined
Sep 17, 2013
Messages
403
Reaction score
58
Anybody found a fix for faceless yet? :/
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 = Look WHERE username = username");
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;
}
Here! :)
 
Upvote 0
Newbie Spellweaver
Joined
Jul 29, 2014
Messages
24
Reaction score
4
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 = @Look WHERE username = @username");
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;
}
Here! :)

This works with the user reload and they stay faceless?
 
Upvote 0
Back
Top