Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "sit":
- TargetRoomUser = Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Username);
- if (TargetRoomUser.Statusses.ContainsKey("sit") == false)
- {
- // Checks body position (ensures it is not diagonal).
- // @notes:
- // - Do not check head position as it swivels when Habbos talk in the room.
- if ((TargetRoomUser.RotBody % 2) == 0)
- {
- // Sets seated status.
- TargetRoomUser.Statusses.Add("sit", "1.0");
- // Puts them on the ground level of the room. Comment out to have them 1 space above the ground.
- TargetRoomUser.Z = -0.5;
- }
- // Sends update to Habbo in-game.
- if (TargetRoomUser.Statusses.ContainsKey("sit") == true)
- {
- // Updates Habbo.
- BaalEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId).UpdateUserStatus(TargetRoomUser, true);
- Session.SendNotif("You are now seated.");
- }
- else
- {
- Session.SendNotif("You cannot be seated diagonally.");
- }
- }
- else
- {
- Session.SendNotif("You are already seated! Relax.");
- }
- ---------------------------------------------------------
- error:
- No overload for method 'UpdateUserStatus' takes 2 arguments
- The error says the problem right there. So add to your method 'UpdateUserStatus' this:
- Code:
- something UpdateUserStatus(var var, bool Force = false)
- Then add this to the method itself:
- (make sure to change the 'updatestatus' to the variable you use.
- Code:
- if (Force == true)
- {
- updatestatus = true;
- }
- else
- {
- ... (everything else in the original method)
- }
- Then it should work fine.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement