[PLUS EMU] Password lock [FIX]

Page 1 of 3 123 LastLast
Results 1 to 15 of 44
  1. #1
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    [PLUS EMU] Password lock [FIX]

    I heard that @Receiver needed help with a bug.

    * This thread *
    http://forum.ragezone.com/f333/plus-...locked-973777/

    So I've downloaded plus emu and looked at it and fixed it.

    [1] - Fix for password lock

    Go to rooms.cs

    Find: if (Password.ToLower() != Room.Password.ToLower())

    And replace:
    Code:
    if (Password.ToLower() != Room.Password.ToLower())
                        {
                            Response.Init(Outgoing.OutOfRoom);
                            response.appendResponse(GetResponse());
    
                            response.sendResponse();
                            return;
    
                        }
                    }
                }
    
    
                Session.GetHabbo().LoadingChecksPassed = true;
    
                response.addBytes(LoadRoomForUser().getPacket);
                //LoadRoomForUser();
                response.sendResponse();
    With:
    Code:
    if (Password.ToLower() != Room.Password.ToLower())
                        {
                            this.Response.AppendInt32(-100002);
                            response.appendResponse(this.GetResponse());
                            this.Response.Init(Outgoing.OutOfRoom);
                            response.appendResponse(this.GetResponse());
                            response.sendResponse();
                            return;
                        }
                    }
                }
    
                this.Session.GetHabbo().LoadingChecksPassed = true;
                response.addBytes(this.LoadRoomForUser().getPacket);
                response.sendResponse();


    Bye :).
    Last edited by Gies; 28-12-13 at 03:38 PM.


  2. #2
    ~|=_=|~ Receiver is offline
    MemberRank
    Sep 2013 Join Date
    PlutoLocation
    624Posts

    Re: [PLUS EMU] Password lock [FIX]

    Could you try fixing where when you follow a user it doesn't need a password and your welcome for telling you that it worked.
    Cheers!

  3. #3
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: [PLUS EMU] Password lock [FIX]

    Quote Originally Posted by Receiver View Post
    Could you try fixing where when you follow a user it doesn't need a password and your welcome for telling you that it worked.
    Cheers!
    Hey bro didn't test it tell if it work

    find:
    Code:
    internal void FollowBuddy()
    replace the void with:
    Code:
    internal void FollowBuddy()
            {
                uint BuddyId = Request.PopWiredUInt();
    
                GameClient Client = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUserID(BuddyId);
                if (Session == null || Session.GetHabbo() == null || Session.GetHabbo().GetMessenger() == null)
                {
                    return; 
                }
    
                if (Client == null || Client.GetHabbo() == null || !Client.GetHabbo().InRoom)
                {
                    Session.GetHabbo().GetMessenger().UpdateFriend(Client.GetHabbo().Id, Client, true);
                    return;
                }
    
                Room Room = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Client.GetHabbo().CurrentRoomId);
    
                if (Room == null)
                {
                    return;
                }
    
                if (!Client.GetHabbo().InRoom)
                {
                    Session.SendNotif("This user is not in a room!");
                    Session.GetHabbo().GetMessenger().UpdateFriend(Client.GetHabbo().Id, Client, true);
                    return;
                }
                else if (Session.GetHabbo().CurrentRoom != null && Client.GetHabbo().CurrentRoom != null)
                {
                    if (Session.GetHabbo().CurrentRoom.RoomId == Client.GetHabbo().CurrentRoom.RoomId)
                    {
                        return;
                    }
                }
    
                uint Id = Room.RoomId;
                string Password = "";
    
                RoomData Data = SilverwaveEnvironment.GetGame().GetRoomManager().GenerateRoomData(Id);
    
                if (Data == null)
                    return;
    
                Session.SendMessage(new RoomForwardComposer(false, Client.GetHabbo().CurrentRoomId));
    
                Room.RoomData.SerializeRoomData(GetResponse(), (Session.GetHabbo().CurrentRoom == null), Session, false);
                PrepareRoomForUser(Client.GetHabbo().CurrentRoomId, Password);
            }
    Bye.

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

    Re: [PLUS EMU] Password lock [FIX]

    NIce release! Will be sure to add in :)

  5. #5
    Loyalty Vaulient is offline
    MemberRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: [PLUS EMU] Password lock [FIX]

    Using it on my hotel , works fine

  6. #6
    Account Upgraded | Title Enabled! HotelMaker is offline
    MemberRank
    Dec 2012 Join Date
    288Posts

    Re: [PLUS EMU] Password lock [FIX]

    In what files are the fixes for cant find non of the voids or the another fix

  7. #7
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: [PLUS EMU] Password lock [FIX]

    Quote Originally Posted by HotelMaker View Post
    In what files are the fixes for cant find non of the voids or the another fix
    Search as "entire solution" not "current document".

  8. #8
    Loyalty Vaulient is offline
    MemberRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: [PLUS EMU] Password lock [FIX]

    messenger.cs , or in skybird im gueessing it's gameclient.cs or w.e

  9. #9
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: [PLUS EMU] Password lock [FIX]

    Quote Originally Posted by Vaulient View Post
    messenger.cs , or in skybird im gueessing it's gameclient.cs or w.e
    Did you tested the second fix ?

  10. #10
    ~|=_=|~ Receiver is offline
    MemberRank
    Sep 2013 Join Date
    PlutoLocation
    624Posts

    Re: [PLUS EMU] Password lock [FIX]

    Quote Originally Posted by Jerking View Post
    Hey bro didn't test it tell if it work

    find:
    Code:
    internal void FollowBuddy()
    replace the void with:
    Code:
    internal void FollowBuddy()
            {
                uint BuddyId = Request.PopWiredUInt();
    
                GameClient Client = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUserID(BuddyId);
                if (Session == null || Session.GetHabbo() == null || Session.GetHabbo().GetMessenger() == null)
                {
                    return; 
                }
    
                if (Client == null || Client.GetHabbo() == null || !Client.GetHabbo().InRoom)
                {
                    Session.GetHabbo().GetMessenger().UpdateFriend(Client.GetHabbo().Id, Client, true);
                    return;
                }
    
                Room Room = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Client.GetHabbo().CurrentRoomId);
    
                if (Room == null)
                {
                    return;
                }
    
                if (!Client.GetHabbo().InRoom)
                {
                    Session.SendNotif("This user is not in a room!");
                    Session.GetHabbo().GetMessenger().UpdateFriend(Client.GetHabbo().Id, Client, true);
                    return;
                }
                else if (Session.GetHabbo().CurrentRoom != null && Client.GetHabbo().CurrentRoom != null)
                {
                    if (Session.GetHabbo().CurrentRoom.RoomId == Client.GetHabbo().CurrentRoom.RoomId)
                    {
                        return;
                    }
                }
    
                uint Id = Room.RoomId;
                string Password = "";
    
                RoomData Data = SilverwaveEnvironment.GetGame().GetRoomManager().GenerateRoomData(Id);
    
                if (Data == null)
                    return;
    
                Session.SendMessage(new RoomForwardComposer(false, Client.GetHabbo().CurrentRoomId));
    
                Room.RoomData.SerializeRoomData(GetResponse(), (Session.GetHabbo().CurrentRoom == null), Session, false);
                PrepareRoomForUser(Client.GetHabbo().CurrentRoomId, Password);
            }
    Bye.
    I'm testing it now :) So, i'll let you know if it works after i have.

  11. #11
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: [PLUS EMU] Password lock [FIX]

    Quote Originally Posted by Receiver View Post
    I'm testing it now :) So, i'll let you know if it works after i have.
    Did it work?

  12. #12
    Loyalty Vaulient is offline
    MemberRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: [PLUS EMU] Password lock [FIX]

    Both of them work

  13. #13
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: [PLUS EMU] Password lock [FIX]

    Quote Originally Posted by Vaulient View Post
    Both of them work
    Ah, thanks for testing it.

  14. #14
    Loyalty Vaulient is offline
    MemberRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: [PLUS EMU] Password lock [FIX] [UPDATED 2 FIXES]

    Actually I take that back , it doesn't work.

  15. #15
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: [PLUS EMU] Password lock [FIX] [UPDATED 2 FIXES]

    Quote Originally Posted by Vaulient View Post
    Actually I take that back , it doesn't work.
    The first one works. The second one wasn't tested.



Page 1 of 3 123 LastLast

Advertisement