PlusEMU Support thread.

Status
Not open for further replies.

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
Users keep moaning about the flood time which is at 20 seconds and I can't seem to find the reference for it, any chance you can tell me where it is?
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Users keep moaning about the flood time which is at 20 seconds and I can't seem to find the reference for it, any chance you can tell me where it is?

Open RoomUser.cs and find "IncrementAndCheckFlood", next change "MuteTime = 20;" to your choice.
 

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
Yeah but none the less I'm sure people will appreciate the help, just I'd be prepared to get spammed if I were you to be fair
 
Trying to make :kiss and :jump commands but when I do :kiss or :jump its doing effects such as blowing a kiss or the pogo mogo, how do I make it not do that and actually run the command ?
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Yeah but none the less I'm sure people will appreciate the help, just I'd be prepared to get spammed if I were you to be fair
 
Trying to make :kiss and :jump commands but when I do :kiss or :jump its doing effects such as blowing a kiss or the pogo mogo, how do I make it not do that and actually run the command ?

You would have to modify the SWF and remove two cases from ChatInputWidetHandler.class.asasm.
 

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
Yeah I got the tool on my laptop, Ill go remove that now because those two things are irritating me with conflicting
 
Decompiled my Habbo.swf but I can't seem to find the file you're referring to
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Yeah I got the tool on my laptop, Ill go remove that now because those two things are irritating me with conflicting
 
Decompiled my Habbo.swf but I can't seem to find the file you're referring to

Oops, it's "ChatInputWidgetHandler.class.asasm", I missed a G out.
 

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
Yeah I assumed it was a typo, searched for it and I couldn't seem to find it anywhere when I decompiled the swf
 
You sure its in the actual Habbo.swf because I generally can't find it
 

Liam

Fly and mighty
Staff member
FindRetros Moderator
Apr 10, 2013
1,162
701
How do you make it so rank 6 or 7 and above can edit, save and move roomads? At the moment only rank 8 and above can do that.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
How do you make it so rank 6 or 7 and above can edit, save and move roomads? At the moment only rank 8 and above can do that.

"room_item_save_branding_items", however you'd have to modify a line. In "SetObjectDataEvent":

Replace:
PHP:
if (!Room.CheckRights(Session, true) || !Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
                return;
With:
PHP:
if (!Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
                return;
 

Liam

Fly and mighty
Staff member
FindRetros Moderator
Apr 10, 2013
1,162
701
"room_item_save_branding_items", however you'd have to modify a line. In "SetObjectDataEvent":

Replace:
PHP:
if (!Room.CheckRights(Session, true) || !Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
                return;
With:
PHP:
if (!Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
                return;

Thanks Craig. :)
 

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
Came across a weird error, when muting a user, the staff member doesn not receive any of the whispers stated in the command for such as if they didnt enter the username correctly or if they muted the user etc but it stills mutes them however unmute works perfectly fine and I cant see any issues, here are the two commands, maybe you can see something I cant
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Utilities;
using Plus.HabboHotel.Users;
using Plus.HabboHotel.GameClients;



namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
    class MuteCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_mute"; }
        }

        public string Parameters
        {
            get { return "%username% %time%"; }
        }

        public string Description
        {
            get { return "Mute another user for a certain amount of time."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Please enter a username and a valid time in seconds (max 600, anything over will be set back to 600).");
                return;
            }

            Habbo Habbo = PlusEnvironment.GetHabboByUsername(Params[1]);
            if (Habbo == null)
            {
                Session.SendWhisper("An error occoured whilst finding that user in the database.");
                return;
            }

            if (Habbo.GetPermissions().HasRight("mod_tool") && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_any"))
            {
                Session.SendWhisper("Oops, you cannot mute that user.");
                return;
            }

            double Time;
            if (double.TryParse(Params[2], out Time))
            {
                if (Time > 600 && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_limit_override"))
                    Time = 600;

                using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
                {
                    dbClient.RunQuery("UPDATE `users` SET `time_muted` = '" + Time + "' WHERE `id` = '" + Habbo.Id + "' LIMIT 1");
                }

                if (Habbo.GetClient() != null)
                {
                    Habbo.TimeMuted = Time;
                    Habbo.GetClient().SendNotification("You have been muted by a moderator for " + Time + " seconds!");
                }

                Session.SendWhisper("You have successfully muted " + Habbo.Username + " for " + Time + " seconds.");
            }
            else
                Session.SendWhisper("Please enter a valid integer.");
        }
    }
}
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Utilities;
using Plus.HabboHotel.GameClients;


namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
    class UnmuteCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_unmute"; }
        }

        public string Parameters
        {
            get { return "%username%"; }
        }

        public string Description
        {
            get { return "Unmute a currently muted user."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Please enter the username of the user you would like to unmute.");
                return;
            }

            GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
            if (TargetClient == null || TargetClient.GetHabbo() == null)
            {
                Session.SendWhisper("An error occoured whilst finding that user, maybe they're not online.");
                return;
            }

            using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
            {
                dbClient.RunQuery("UPDATE `users` SET `time_muted` = '0' WHERE `id` = '" + TargetClient.GetHabbo().Id + "' LIMIT 1");
            }

            TargetClient.GetHabbo().TimeMuted = 0;
            TargetClient.SendNotification("You have been un-muted by " + Session.GetHabbo().Username + "!");
            Session.SendWhisper("You have successfully un-muted " + TargetClient.GetHabbo().Username + "!");
        }
    }
}
 

MadMonsterMan

Member
Mar 25, 2016
202
13
Lol @ myself.. Can anyone tell me how to add Commands? I know you have to debug via Visual Studios??? But can someone tell me how to exactly do it I cant figure it out.
Im trying to add the jump & hug command
Btw In the navigator How do I add images ?? To my custom rooms?
 
Last edited:

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Came across a weird error, when muting a user, the staff member doesn not receive any of the whispers stated in the command for such as if they didnt enter the username correctly or if they muted the user etc but it stills mutes them however unmute works perfectly fine and I cant see any issues, here are the two commands, maybe you can see something I cant
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Utilities;
using Plus.HabboHotel.Users;
using Plus.HabboHotel.GameClients;



namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
    class MuteCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_mute"; }
        }

        public string Parameters
        {
            get { return "%username% %time%"; }
        }

        public string Description
        {
            get { return "Mute another user for a certain amount of time."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Please enter a username and a valid time in seconds (max 600, anything over will be set back to 600).");
                return;
            }

            Habbo Habbo = PlusEnvironment.GetHabboByUsername(Params[1]);
            if (Habbo == null)
            {
                Session.SendWhisper("An error occoured whilst finding that user in the database.");
                return;
            }

            if (Habbo.GetPermissions().HasRight("mod_tool") && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_any"))
            {
                Session.SendWhisper("Oops, you cannot mute that user.");
                return;
            }

            double Time;
            if (double.TryParse(Params[2], out Time))
            {
                if (Time > 600 && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_limit_override"))
                    Time = 600;

                using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
                {
                    dbClient.RunQuery("UPDATE `users` SET `time_muted` = '" + Time + "' WHERE `id` = '" + Habbo.Id + "' LIMIT 1");
                }

                if (Habbo.GetClient() != null)
                {
                    Habbo.TimeMuted = Time;
                    Habbo.GetClient().SendNotification("You have been muted by a moderator for " + Time + " seconds!");
                }

                Session.SendWhisper("You have successfully muted " + Habbo.Username + " for " + Time + " seconds.");
            }
            else
                Session.SendWhisper("Please enter a valid integer.");
        }
    }
}
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Utilities;
using Plus.HabboHotel.GameClients;


namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
    class UnmuteCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_unmute"; }
        }

        public string Parameters
        {
            get { return "%username%"; }
        }

        public string Description
        {
            get { return "Unmute a currently muted user."; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            if (Params.Length == 1)
            {
                Session.SendWhisper("Please enter the username of the user you would like to unmute.");
                return;
            }

            GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
            if (TargetClient == null || TargetClient.GetHabbo() == null)
            {
                Session.SendWhisper("An error occoured whilst finding that user, maybe they're not online.");
                return;
            }

            using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
            {
                dbClient.RunQuery("UPDATE `users` SET `time_muted` = '0' WHERE `id` = '" + TargetClient.GetHabbo().Id + "' LIMIT 1");
            }

            TargetClient.GetHabbo().TimeMuted = 0;
            TargetClient.SendNotification("You have been un-muted by " + Session.GetHabbo().Username + "!");
            Session.SendWhisper("You have successfully un-muted " + TargetClient.GetHabbo().Username + "!");
        }
    }
}

Are you using :smute or :mute?
 
Status
Not open for further replies.

Users who are viewing this thread

Top