-
Habbo Emulator - Sit Command [r63]
Just wanted to release this for fun, took maybe 5 minutes to make it so enjoy. It will seat a Habbo in any room. You can modify as need be for Uber.
Thought I would release this for the lols so have fun.
Screenshots
http://oi46.tinypic.com/2djupzn.jpg
http://oi46.tinypic.com/n3vsar.jpg
Code
Code:
private static void cmd_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.");
}
}
-
Re: Habbo Emulator - Sit Command [r63]
-
Re: Habbo Emulator - Sit Command [r63]
can you make it work on phoenix 3.7.4?
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
debaaske6
can you make it work on phoenix 3.7.4?
Phoenix 3.7.4 already has a sit command and it doesn't spam you with pointless alerts either.
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
Sojobo
Phoenix 3.7.4 already has a sit command and it doesn't spam you with pointless alerts either.
it doesn't work on my hotel when i do :sit i become invisible
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
debaaske6
it doesn't work on my hotel when i do :sit i become invisible
That's Pheonix for you :w00t:. #PheonixProbs
-
Re: Habbo Emulator - Sit Command [r63]
Workaround for the diagonal thing:
if ((TargetRoomUser.RotBody % 2) != 0)
TargetRoomUser.RotBody--;
else
{
....
}
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
debaaske6
it doesn't work on my hotel when i do :sit i become invisible
You are probably using cracked.
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
Exonize
You are probably using cracked.
nope i'm using license 3.7.4 isn't cracked
-
Re: Habbo Emulator - Sit Command [r63]
Search on O.taku for Fix
Its with your VPS/Dedi settings, i tink.
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
MrWw
Workaround for the diagonal thing:
if ((TargetRoomUser.RotBody % 2) != 0)
TargetRoomUser.RotBody--;
else
{
....
}
I was thinking of doing this rather than just sending them the message but I decided I would just send them the message. This is a viable change to the code though.
-
Re: Habbo Emulator - Sit Command [r63]
Not bad Jacob, can I expect more releases from you on here?
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
vLife
Not bad Jacob, can I expect more releases from you on here?
If you can convince someone to not ban me right off the bat then yes you can expect me to release quite a few things, all open source (maybe not open source during development).
-
Re: Habbo Emulator - Sit Command [r63]
That I can help with. It has been a long time and I'm sure most have gotten over it, though no one at the time wanted to listen to reason.
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
vLife
That I can help with. It has been a long time and I'm sure most have gotten over it, though no one at the time wanted to listen to reason.
Possibly. But this is a matter for PM, not really for this thread. I am just putting together some ideas for the project I plan to do, it will be the colosal finale in my opinion, just writing out the details of the project right now so I can figure out everything.
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
debaaske6
nope i'm using license 3.7.4 isn't cracked
Are you using the database provided in 3.7.3? Could be the reason why.
I don't see the point in that message, If you type sit - you expect to sit, you don't need to be told that you have sat down.
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
Crawl
... I don't see the point in that message, If you type sit - you expect to sit, you don't need to be told that you have sat down.
I am weird like that, you can feel free to comment it out in your Uber emulator.
-
Re: Habbo Emulator - Sit Command [r63]
Decided to test it on UberEmu.. Didnt work.... it has an error with userstatus and stuff...
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
Ken816
Decided to test it on UberEmu.. Didnt work.... it has an error with userstatus and stuff...
I imagine the variables are not word for word the same so just review the classes and object names and make sure they are appropriate for the flow of the code. This works, it's developed and fully functional in my emulator which is based from Nillus's base (same base of Uber Emulator).
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
debaaske6
nope i'm using license 3.7.4 isn't cracked
All I know it is the same bug as the stacking bug.
I never had problems with :sit
-
Re: Habbo Emulator - Sit Command [r63]
Me like this, good release but I already have this on 7.4.
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
TheLongP
I imagine the variables are not word for word the same so just review the classes and object names and make sure they are appropriate for the flow of the code. This works, it's developed and fully functional in my emulator which is based from Nillus's base (same base of Uber Emulator).
Ok, Ive tried that... Ive changed the BaalEnvironent to UberEnvironment and ive replaced the first the stuff at the beginning with case "sit": and added return true; and then i get this for an error:
Code:
No overload for method 'UpdateUserStatus' takes 2 arguments
but ive tested it and it reconizes every class....
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
Crawl
Are you using the database provided in 3.7.3? Could be the reason why.
I don't see the point in that message, If you type sit - you expect to sit, you don't need to be told that you have sat down.
i'm using the database 3.7.4
-
Re: Habbo Emulator - Sit Command [r63]
Quote:
Originally Posted by
Ken816
Ok, Ive tried that... Ive changed the BaalEnvironent to UberEnvironment and ive replaced the first the stuff at the beginning with case "sit": and added return true; and then i get this for an error:
Code:
No overload for method 'UpdateUserStatus' takes 2 arguments
but ive tested it and it reconizes every class....
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.
-
Re: Habbo Emulator - Sit Command [r63]
yeah, it dont work... just going to steal the cmd from phoenix emulator 3.7.4