PlusEMU Support thread.

Status
Not open for further replies.

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
Hey, instead of inactive users going to the hotel view after 7200 (one hour I'm guessing) can we make them go to a home room?
 

Meap

Don't need glasses if you C#
Nov 7, 2010
1,045
296
Hey, instead of inactive users going to the hotel view after 7200 (one hour I'm guessing) can we make them go to a home room?
I think there's a bool in room or roomuser.cs called needautokick or something similar, should be something grabbing that , that sends them to the hotel view that you could possibly edit
 
  • Like
Reactions: Joe

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
I think there's a bool in room or roomuser.cs called needautokick or something similar, should be something grabbing that , that sends them to the hotel view that you could possibly edit
I saw it but honestly have no idea what to edit.
Code:
public bool NeedsAutokick
        {
            get
            {
                if (IsBot)
                    return false;

                if (GetClient() == null || GetClient().GetHabbo() == null)
                    return true;

                if (GetClient().GetHabbo().GetPermissions().HasRight("mod_tool") || GetRoom().OwnerId == HabboId)
                    return false;

                if (GetRoom().Id == 1649919)
                    return false;

                if (IdleTime >= 10800)
                    return true;

                return false;
            }
        }
 

CosmoPeak

PeakRP.com
May 15, 2016
271
268
I saw it but honestly have no idea what to edit.
Code:
public bool NeedsAutokick
        {
            get
            {
                if (IsBot)
                    return false;

                if (GetClient() == null || GetClient().GetHabbo() == null)
                    return true;

                if (GetClient().GetHabbo().GetPermissions().HasRight("mod_tool") || GetRoom().OwnerId == HabboId)
                    return false;

                if (GetRoom().Id == 1649919)
                    return false;

                if (IdleTime >= 10800)
                    return true;

                return false;
            }
        }
(Edited)

Right click `NeedsAutoKick` and press `Find References`. It's probably only called in one place. You should be able to move them to a new room inside the if statement `NeedsAutoKick` is called in.
 
Last edited:

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
RoomUserManager.cs, find 'public void OnCycle()' go down to where the following is:

'if (User.NeedsAutokick && !ToRemove.Contains(User))'

Change the full conditional statement (from where the braces start & end) to:

PHP:
                    if (User.NeedsAutokick && User.GetClient() != null)
                    {
                        User.GetClient().SendPacket(new RoomForwardComposer(1));
                        continue;
                    }

Change 1 to your chosen room ID. (Better way to do this would be using the EnterRoom method in Habbo.cs).[/PHP]
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
RoomUserManager.cs, find 'public void OnCycle()' go down to where the following is:

'if (User.NeedsAutokick && !ToRemove.Contains(User))'

Change the full conditional statement (from where the braces start & end) to:

PHP:
                    if (User.NeedsAutokick && User.GetClient() != null)
                    {
                        User.GetClient().SendPacket(new RoomForwardComposer(1));
                        continue;
                    }

Change 1 to your chosen room ID. (Better way to do this would be using the EnterRoom method in Habbo.cs).[/PHP]
I get this issue?

455a22f80b9a4b5d87feaace9f073318.png
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Oops, rename SendPacket to SendMessage.

I've refactored a lot in the version I'm going to release.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
The issue is that it constantly spams with the achievement being progressed to a new level, this happens every time the ProcessComponent is ran

This isn't a bug? It progresses every minute, it does this on Habbo.
 

dominic

Active Member
Dec 16, 2011
175
84
This isn't a bug? It progresses every minute, it does this on Habbo.
What I mean is, that it progresses to a new level every 5-10 minutes, so that when I've in reality been online for ~60 minutes, it counts me as I've been online for ~3600 minutes
 

Hayy, anyone knows why this doesn't work in PlusEmu?
 

JynX

Posting Freak
Feb 6, 2016
710
438
What I mean is, that it progresses to a new level every 5-10 minutes, so that when I've in reality been online for ~60 minutes, it counts me as I've been online for ~3600 minutes
 

Hayy, anyone knows why this doesn't work in PlusEmu?
Are you sure that 3600 minutes isn't in seconds?
 

TheNotorious

Im dying slowly.
Oct 4, 2014
228
41
Error in query: INSERT INTO `rooms` (`roomtype`,`caption`,`description`,`owner`,`model_name`,`category`,`users_max`,`trade_settings`) VALUES ('private',@caption,@description,@UserId,@model,@category,@usersmax,@tradesettings)MySql.Data.MySqlClient.MySqlException (0x80004005): Out of range value for column 'id' at row 1 at MySql.Data.MySqlClient.MySqlStream.ReadPacket() at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()


Room id' is like 4295949455 (when someone create a room), when it need to be like 534579
 
Last edited:
Status
Not open for further replies.

Users who are viewing this thread

Top