[FIX]User limit in room [BcStorm]

Results 1 to 9 of 9
  1. #1
    C# Developer neto737 is offline
    MemberRank
    Oct 2010 Join Date
    Environment.csLocation
    274Posts

    [FIX]User limit in room [BcStorm]

    Hello RaGEZONE,

    Today brought to you a fix that limits users to the room!

    Open --> HabboHotel/Rooms/Room.cs

    Find:
    Code:
    internal void SetMaxUsers(int MaxUsers)
    You should find this:
    Code:
    internal void SetMaxUsers(int MaxUsers)
            {
                this.UsersMax = MaxUsers;
                using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                {
                    adapter.runFastQuery(string.Concat(new object[] { "UPDATE rooms SET users_max = ", MaxUsers, " WHERE id = ", this.RoomId }));
                }
            }
    Replace with:
    Code:
    public void SetMaxUsers(int MaxUsers)
            {
                this.UsersMax = 5000;
                using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                    dbClient.runFastQuery("UPDATE rooms SET users_max = " + MaxUsers + " WHERE id = " + RoomId);
            }
    Credits:
    Wabbo.ban - CSHP Fórum (Brazillian Forum)
    I - bring forth
    Last edited by neto737; 16-01-13 at 01:54 PM. Reason: Credits Added


  2. #2
    Run, but I'll find you. Ddos Attack is offline
    MemberRank
    Jan 2011 Join Date
    AustraliaLocation
    908Posts

    Re: [FIX]User limit in room [BcStorm]

    Is this for the setting in Room Settings? Or a fix if a user enters a room that is already full?

    Either way, nice release ;D

  3. #3
    C# Developer neto737 is offline
    MemberRank
    Oct 2010 Join Date
    Environment.csLocation
    274Posts

    Re: [FIX]User limit in room [BcStorm]

    Quote Originally Posted by Ddos Attack View Post
    Is this for the setting in Room Settings? Or a fix if a user enters a room that is already full?

    Either way, nice release ;D
    It's for a room that is already full ...

  4. #4
    Run, but I'll find you. Ddos Attack is offline
    MemberRank
    Jan 2011 Join Date
    AustraliaLocation
    908Posts

    Re: [FIX]User limit in room [BcStorm]

    Quote Originally Posted by neto737 View Post
    It's for a room that is already full ...
    Awesome. Great release :)!

  5. #5
    Banned rafa95123 is offline
    BannedRank
    May 2009 Join Date
    /home/RaphaLocation
    564Posts

    Re: [FIX]User limit in room [BcStorm]

    But, tell me the reason for put this number in my code instead the user choose... ?

  6. #6
    Enthusiast Durex is offline
    MemberRank
    Nov 2012 Join Date
    NetherlandsLocation
    36Posts

    Re: [FIX]User limit in room [BcStorm]

    Yaaay! we love lagg!
    Code:
    public void SetMaxUsers(int MaxUsers)
            {
                this.UsersMax = 5000;
                using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                    dbClient.runFastQuery("UPDATE rooms SET users_max = " + MaxUsers + " WHERE id = " + RoomId);
            }
    Whut no lagg? :(
    Code:
            public void SetMaxUsers(int MaxUsers)
            {
                this.UsersMax = MaxUsers;
                using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                {
                    dbClient.runFastQuery("UPDATE rooms SET users_max = " + MaxUsers + " WHERE id = " + this.RoomId);
                }
            }

  7. #7
    Banned rafa95123 is offline
    BannedRank
    May 2009 Join Date
    /home/RaphaLocation
    564Posts

    Re: [FIX]User limit in room [BcStorm]

    He told me, it's a fix for the invisible bug... kkkkk
    Don't kind with me man ¬¬

  8. #8
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: [FIX]User limit in room [BcStorm]

    Huh =/

    Is this a limit for if the room == full?
    Because if its full you must make a check and i 'thought' you need a packet.

  9. #9
    Enthusiast Structured is offline
    MemberRank
    Aug 2012 Join Date
    29Posts

    Re: [FIX]User limit in room [BcStorm]

    Pure bullshit, I just read the script please tell me if I am wrong but if I added this the maximum would be 5000 in a room, so if I chosen 25 in a room. I then called all my users, say I got 120 online like I did when I first owned Wired, they would all be able to get in? Also this is incorrect code. You need an outgoing packet ;3 to show the alert that room is full.



Advertisement