Sit command for uber / snowlight?

Results 1 to 12 of 12
  1. #1
    Enthusiast Pedro Almeida is offline
    MemberRank
    Nov 2015 Join Date
    29Posts

    Sit command for uber / snowlight?

    Hi, someone can help me with sit command for uber/snowlight? i found an thread for phoenix ( https://forum.ragezone.com/f353/habb...and-r63-854886 )

    someone can help?


  2. #2
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Sit command for uber / snowlight?

    Code:
            public void sit()
            {
                Room TargetRoom = Session.GetHabbo().CurrentRoom;
                RoomUser TargetRoomUser = null;
                int tries = 0;
                TargetRoom = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
    
    
                TargetRoomUser = TargetRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
    
    
                if (!TargetRoomUser.Statusses.ContainsKey("sit"))
                {
                    if ((TargetRoomUser.RotBody % 2) == 0)
                    {
                        if (TargetRoomUser == null)
                        {
                            return;
                        }
    
    
                        try
                        {
                            TargetRoomUser.Statusses.Add("sit", "1.0");
                            TargetRoomUser.Z -= 0.35;
                            TargetRoomUser.isSitting = true;
                            TargetRoomUser.UpdateNeeded = true;
                        }
                        catch { }
    
    
                        return;
    
    
                    }
    
    
                    else
                    {
                        if (tries <= 1)
                        {
                            TargetRoomUser.RotBody--;
                            tries++;
                            sit();
                        }
                        else
                        {
                            Session.SendNotif("You cannot sit diagonally, try it again please");
                            tries = 0;
                        }
    
    
                    }
    
    
                }
    
    
                else if (TargetRoomUser.isSitting == true)
                {
    
    
                    TargetRoomUser.Z += 0.35;
                    TargetRoomUser.Statusses.Remove("sit");
                    TargetRoomUser.isSitting = false;
                    TargetRoomUser.UpdateNeeded = true;
    
    
                }
            }
    Here is one for Butterfly, which is based on UberEmulator. Shouldn't be hard to get working.

  3. #3
    Enthusiast Pedro Almeida is offline
    MemberRank
    Nov 2015 Join Date
    29Posts

    Re: Sit command for uber / snowlight?

    Quote Originally Posted by Jonteh View Post
    Code:
            public void sit()
            {
               .....
    }
    Here is one for Butterfly, which is based on UberEmulator. Shouldn't be hard to get working.
    Yeah, i know, i tried with the phoenix code ( this: case "sit": TargetRoomUser = Session.GetHabbo().CurrentRoom.GetRoom - Pastebin.com ) with the hint of how to convert to uber, but i cant convert...


    PS: i have added case "sit": (because is case "command": in uber)

  4. #4
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Sit command for uber / snowlight?

    Quote Originally Posted by Pedro Almeida View Post
    Yeah, i know, i tried with the phoenix code ( this: case "sit": TargetRoomUser = Session.GetHabbo().CurrentRoom.GetRoom - Pastebin.com ) with the hint of how to convert to uber, but i cant convert...


    PS: i have added case "sit": (because is case "command": in uber)
    If you wanna send me your source in PM I will add it for you.

  5. #5
    Enthusiast Pedro Almeida is offline
    MemberRank
    Nov 2015 Join Date
    29Posts

    Re: Sit command for uber / snowlight?

    Quote Originally Posted by Jonteh View Post
    If you wanna send me your source in PM I will add it for you.
    Check your inbox :p

  6. #6
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Sit command for uber / snowlight?

    Quote Originally Posted by Pedro Almeida View Post
    Check your inbox :p
    Likewise :)

  7. #7
    Enthusiast Pedro Almeida is offline
    MemberRank
    Nov 2015 Join Date
    29Posts

    Re: Sit command for uber / snowlight?

    Quote Originally Posted by Jonteh View Post
    Likewise :)
    Reupload in zippyshare, mega don't loads, idk why.

  8. #8
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Sit command for uber / snowlight?

    Quote Originally Posted by Pedro Almeida View Post
    Reupload in zippyshare, mega don't loads, idk why.
    I have done so :)

  9. #9
    Enthusiast Pedro Almeida is offline
    MemberRank
    Nov 2015 Join Date
    29Posts

    Re: Sit command for uber / snowlight?

    Pls close the thread, thanks Jonteh :D

  10. #10
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Sit command for uber / snowlight?

    You're welcome!

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

    Re: Sit command for uber / snowlight?

    @Jonteh , would be helpful to the community if you could post the fixed source here? :P Would prevent other threads with the same issue from being made and filling the help section.

  12. #12
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Sit command for uber / snowlight?

    Sure, I'll post just the command I did as I'm guessing this source is modified, as I've not seen Uber in use for a long time.

    Code:
    case "sit":
                            {
                                RoomUser User = Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Username);
    
    
                                if (User != null)
                                {
                                    if (User.Statusses.ContainsKey("sit"))
                                    {
                                        User.RemoveStatus("sit");
                                        User.Z += 0.35;
                                        User.UpdateNeeded = true;
                                    }
                                    else
                                    {
                                        if ((User.RotBody % 2) == 0)
                                        {
                                            User.AddStatus("sit", "1.0");
                                            User.Z -= 0.35;
                                            User.UpdateNeeded = true;
                                        }
                                        else
                                        {
                                            Session.SendNotif("You cannot sit diagonally!");
                                        }
                                    }
                                }
    
    
                                break;
                            }



Advertisement