1. Tired of not being able to see links? Want to chat with other members? Need help?

PlusEMU Support thread.

Discussion in 'Habbo Help & Support' started by Sledmore, Apr 24, 2016.

Thread Status:
Not open for further replies.
  1. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

    Hi,

    Figured I'd finally offer some support, nothing too big just help with some errors all in one thread.

    Fire away.
     
  2. Meap

    Meap Don't need glasses if you C#

    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?
     
  3. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

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

    Meap Don't need glasses if you C#

    Thanks for this Craig, was stressing me out not being able to find it
     
  5. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

    No problem. Will try to assist with whatever errors I can that people provide. Just I guess I'm a few month late.
     
  6. Meap

    Meap Don't need glasses if you C#

    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
    --- Double Post Merged, Apr 24, 2016, Original Post Date: Apr 24, 2016 ---
    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 ?
     
  7. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

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

    Meap Don't need glasses if you C#

    Is that located in the actual Habbo.swf file?
     
  9. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

    Yup, you'd need to decompile it.
     
  10. Meap

    Meap Don't need glasses if you C#

    Yeah I got the tool on my laptop, Ill go remove that now because those two things are irritating me with conflicting
    --- Double Post Merged, Apr 24, 2016, Original Post Date: Apr 24, 2016 ---
    Decompiled my Habbo.swf but I can't seem to find the file you're referring to
     
    Sledmore likes this.
  11. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

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

    Meap Don't need glasses if you C#

    Yeah I assumed it was a typo, searched for it and I couldn't seem to find it anywhere when I decompiled the swf
    --- Double Post Merged, Apr 24, 2016, Original Post Date: Apr 24, 2016 ---
    You sure its in the actual Habbo.swf because I generally can't find it
     
  13. li4m

    li4m Posting Freak

    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.
     
  14. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

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

    Replace:
    PHP:
    if (!Room.CheckRights(Sessiontrue) || !Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
                    return;
    With:
    PHP:
    if (!Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
                    return;
     
    li4m likes this.
  15. li4m

    li4m Posting Freak

    Thanks Craig. :)
     
  16. Meap

    Meap Don't need glasses if you C#

    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 + "!");
            }
        }
    }
     
  17. MadMonsterMan

    MadMonsterMan Member

    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: Apr 25, 2016
  18. Meap

    Meap Don't need glasses if you C#

    [ Want to see this link? Register ! ]
     
  19. Sledmore

    Sledmore Chaturbate Livestreamer FindRetros Moderator

    Are you using :smute or :mute?
     
  20. Meap

    Meap Don't need glasses if you C#

    :mute user time in seconds so for example
    :mute George 600
     
Thread Status:
Not open for further replies.

Share This Page

Loading...