Plus Emulator Edit?

Brought

更加努力
Jan 14, 2013
593
203
There are plenty of decent releases in the community right now. Fortunate for you, you're signed up on a forum that stores all of the releases in one simple subforum.
 

Blasteh

big tits
Apr 3, 2013
1,156
521
Use Craigs emulator and SWFs from and then use database.
I don't want a whole new emulator, I already have a database and players installed. So I don't want to overwrite any data.
 

Kods

New Member
Aug 17, 2015
22
5
Well assuming that you are using Craigs emulator (PlusEMU Habboon) along with a released Database (It was Dutch to begin with) I will give you a query to run which should enable those commands for you.
Code:
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_pull');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_push');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_mimic');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_disable_mimic');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_faceless');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_enable');
 
Last edited:

Blasteh

big tits
Apr 3, 2013
1,156
521
Well assuming that you are using Craigs emulator (PlusEMU Habboon) along with a released Database (It was Dutch to begin with) I will give you a query to run which should enable those commands for you.
Code:
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_pull');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_push');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_mimic');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_disable_mimic');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_faceless');
UPDATE `permissions_commands` SET `group_id`='1', `subscription_id`='0' WHERE (`command`='command_enable');
Didn't enable them, just added them to the permissions_commands.
 
May 1, 2015
470
154
Code:
#region Faceless
                    case "faceless":
                    {
                            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 = PlusEnvironment.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;
                        }
#endregion faceless
Code:
case "push":
                        {
                            if (!this.Session.GetHabbo().HasFuse("fuse_vip_commands") && !this.Session.GetHabbo().VIP)
                            {
                                SendChatMessage(this.Session, "You are not VIP.");
                                return true;//256A;
                            }
                           
                            Room room17 = PlusEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
                            if (room17 != null)
                            {
                                if (Params.Length == 1)
                                {
                                    SendChatMessage(this.Session, "Enter a user");
                                    return true;
                                }
                                RoomUser user12 = room17.GetRoomUserManager().GetRoomUserByHabbo(Convert.ToString(Params[1]));
                                if (user12 == null)
                                {
                                    SendChatMessage(this.Session, "No user found!");
                                    return true;
                                }

                                if (user12.GetUsername() == this.Session.GetHabbo().Username)
                                {
                                    SendChatMessage(this.Session, "You cannot push yourself");
                                    return true;
                                }
                                RoomUser user13 = room17.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
                               
                             
                                    if ((user13 != null) && !user12.TeleportEnabled)
                                    {
                                        if ((Math.Abs((int)(user12.X - user13.X)) < 2) && (Math.Abs((int)(user12.Y - user13.Y)) < 2))
                                        {
                                            if (user13.RotBody == 4)
                                            {
                                                user12.MoveTo(user12.X, user12.Y + 1);
                                            }
                                            if (user13.RotBody == 0)
                                            {
                                                user12.MoveTo(user12.X, user12.Y - 1);
                                            }
                                            if (user13.RotBody == 6)
                                            {
                                                user12.MoveTo(user12.X - 1, user12.Y);
                                            }
                                            if (user13.RotBody == 2)
                                            {
                                                user12.MoveTo(user12.X + 1, user12.Y);
                                            }
                                            if (user13.RotBody == 3)
                                            {
                                                user12.MoveTo(user12.X + 1, user12.Y + 1);
                                            }
                                            if (user13.RotBody == 1)
                                            {
                                                user12.MoveTo(user12.X + 1, user12.Y - 1);
                                            }
                                            if (user13.RotBody == 7)
                                            {
                                                user12.MoveTo(user12.X - 1, user12.Y - 1);
                                            }
                                            if (user13.RotBody == 5)
                                            {
                                                user12.MoveTo(user12.X - 1, user12.Y + 1);
                                            }
                                            user12.UpdateNeeded = true;
                                            user13.UpdateNeeded = true;
                                            user13.SetRot(PathFinder.CalculateRotation(user13.X, user13.Y, user12.GoalX, user12.GoalY));
                                            user13.Chat(user13.GetClient(), "*pushes " + Params[1] + "*", false, 0, 0);
                                        }
                                   
                                    else
                                    {
                                        SendChatMessage(this.Session, Params[1] + " is too far away");
                                    }
                                    return true;//256A;
                                }
                            }

                            return true;
                        }
Code:
case "pull":
                        if (this.Session.GetHabbo().HasFuse("fuse_vip_commands") || this.Session.GetHabbo().VIP)
                        {
                            Room room18 = this.Session.GetHabbo().CurrentRoom;
                            if (room18 == null)
                            {
                                return true;
                            }
                            RoomUser user14 = room18.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
                            if (user14 == null)
                            {
                                return true;
                            }
                            if (Params.Length == 1)
                            {
                                SendChatMessage(this.Session, "Unable to find the user you specified.");
                                return true;
                            }
                            GameClient client4 = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
                            if (client4 == null)
                            {
                                return true;
                            }
                            if (client4.GetHabbo().Id == this.Session.GetHabbo().Id)
                            {
                                SendChatMessage(this.Session, "You can't pull yourself!");
                                return true;
                            }
                            RoomUser user15 = room18.GetRoomUserManager().GetRoomUserByHabbo(client4.GetHabbo().Id);
                            if (user15 == null)
                            {
                                return true;
                            }
                            if (user15.TeleportEnabled)
                            {
                                return true;
                            }
                           
                            if ((Math.Abs((int)(user14.X - user15.X)) >= 3) || (Math.Abs((int)(user14.Y - user15.Y)) >= 3))
                            {
                                SendChatMessage(this.Session, "User is too far away to pull.");
                                return true;
                            }
                            if ((user14.RotBody % 2) != 0)
                            {
                                user14.RotBody--;
                            }
                            if (user14.RotBody == 0)
                            {
                                user15.MoveTo(user14.X, user14.Y - 1);
                            }
                            else if (user14.RotBody == 2)
                            {
                                user15.MoveTo(user14.X + 1, user14.Y);
                            }
                            else if (user14.RotBody == 4)
                            {
                                user15.MoveTo(user14.X, user14.Y + 1);
                            }
                            else if (user14.RotBody == 6)
                            {
                                user15.MoveTo(user14.X - 1, user14.Y);
                            }
                            user14.Chat(user14.GetClient(), "*pulls " + Params[1] + " to them*", false, 0, 0);
                        }
                        return true;

                    case "enable":
                        {
                            if (!this.Session.GetHabbo().GotCommand("enable"))
                            {
                                return false;
                            }


                            if (Params.Length == 1)
                            {
                                return true;
                            }

                            RoomUser user16 = this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                            if (user16.RidingHorse)
                            {
                                return true;
                            }
                            if (user16.team == Team.none)
                            {
                                double num6;

                                if (user16.IsLyingDown)
                                {
                                    return true;
                                }
                                string s = Params[1];
                                if (!this.Session.GetHabbo().HasFuse("fuse_mod") && s.Equals("102"))
                                {
                                    SendChatMessage(this.Session, "You do not have the required rank to use this Enable.");
                                    return true;
                                }
                                if (!this.Session.GetHabbo().HasFuse("fuse_mod") && s.Equals("178"))
                                {
                                    SendChatMessage(this.Session, "You do not have the required rank to use this Enable.");
                                    return true;
                                }
                                if (double.TryParse(s, out num6))
                                {
                                    this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(int.Parse(num6.ToString()));
                                    return true;
                                }
                                SendChatMessage(this.Session, "You can only use numbers.");
                            }
                            return true;
}

paste those into your chatcommandhandler.cs
 

Users who are viewing this thread

Top