Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Boon Emulator Issues! + Custom Commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Altercationz" data-source="post: 367964" data-attributes="member: 59038"><p>I have coded the sex command for you, tested it & it works perfectly.</p><p>The code can probably be touched up a little, I'm tired so this is the best your going to get.</p><p>[CODE]</p><p>using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Collections.Generic;</p><p></p><p>using Plus.HabboHotel.Rooms;</p><p>using Plus.HabboHotel.GameClients;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.Chat;</p><p></p><p>namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun</p><p>{</p><p> class SexCommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_sex"; }</p><p> }</p><p> public string Parameters</p><p> {</p><p> get { return "%username%"; }</p><p> }</p><p> public string Description</p><p> {</p><p> get { return "Have sex with another user"; }</p><p> }</p><p> public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)</p><p> {</p><p> if (Params.Length == 1)</p><p> {</p><p> Session.SendWhisper("Please enter the username of the person you want to have sex with.");</p><p> return;</p><p> }</p><p> GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);</p><p> if (TargetClient == null)</p><p> {</p><p> Session.SendWhisper("The user was not found in the room, maybe they're offline.");</p><p> return;</p><p> }</p><p> RoomUser TargetUser = Room.GetRoomUserManager().GetRoomUserByHabbo(TargetClient.GetHabbo().Id);</p><p> if (TargetUser == null)</p><p> {</p><p> Session.SendWhisper("An error occured while finding that user, maybe they're offline or not in this room.");</p><p> }</p><p> if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username)</p><p> {</p><p> Session.SendWhisper("You cannot have sex with yourself!");</p><p> return;</p><p> }</p><p> RoomUser ThisUser = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> if (ThisUser == null)</p><p> return;</p><p></p><p> if (!((Math.Abs(TargetUser.X - ThisUser.X) >= 2) || (Math.Abs(TargetUser.Y - ThisUser.Y) >= 2)))</p><p> {</p><p> Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "*Bends " + Params[1] + " over and starts to have sex with them*", 0, ThisUser.LastBubble));</p><p> System.Threading.Thread.Sleep(1000);</p><p> Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Gets bent over and starts to have sex with " + Session.GetHabbo().Username + "*", 0, ThisUser.LastBubble));</p><p> System.Threading.Thread.Sleep(1000);</p><p> Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "Slap's " + Params[1] + " ass and pulls their hair*", 0, ThisUser.LastBubble));</p><p> System.Threading.Thread.Sleep(1000);</p><p> Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Climaxes and sprays juice all over the place", 0, ThisUser.LastBubble));</p><p> System.Threading.Thread.Sleep(1000);</p><p> Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Collapses onto the floor, tired and worn out.", 0, ThisUser.LastBubble));</p><p> TargetUser.Statusses.Add("lay", "0.1");</p><p> TargetUser.isLying = true;</p><p> TargetUser.UpdateNeeded = true;</p><p> }</p><p> else</p><p> {</p><p> Session.SendWhisper("The user is too far away, please try getting closer.");</p><p> return;</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p><p><img src="/styles/default/xenforo/smilies/emojione/thumbsup.png" class="smilie" loading="lazy" alt=":up:" title="Thumbs Up :up:" data-shortname=":up:" /></p></blockquote><p></p>
[QUOTE="Altercationz, post: 367964, member: 59038"] I have coded the sex command for you, tested it & it works perfectly. The code can probably be touched up a little, I'm tired so this is the best your going to get. [CODE] using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.Rooms; using Plus.HabboHotel.GameClients; using Plus.Communication.Packets.Outgoing.Rooms.Chat; namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun { class SexCommand : IChatCommand { public string PermissionRequired { get { return "command_sex"; } } public string Parameters { get { return "%username%"; } } public string Description { get { return "Have sex with another user"; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Params.Length == 1) { Session.SendWhisper("Please enter the username of the person you want to have sex with."); return; } GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]); if (TargetClient == null) { Session.SendWhisper("The user was not found in the room, maybe they're offline."); return; } RoomUser TargetUser = Room.GetRoomUserManager().GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (TargetUser == null) { Session.SendWhisper("An error occured while finding that user, maybe they're offline or not in this room."); } if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username) { Session.SendWhisper("You cannot have sex with yourself!"); return; } RoomUser ThisUser = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (ThisUser == null) return; if (!((Math.Abs(TargetUser.X - ThisUser.X) >= 2) || (Math.Abs(TargetUser.Y - ThisUser.Y) >= 2))) { Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "*Bends " + Params[1] + " over and starts to have sex with them*", 0, ThisUser.LastBubble)); System.Threading.Thread.Sleep(1000); Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Gets bent over and starts to have sex with " + Session.GetHabbo().Username + "*", 0, ThisUser.LastBubble)); System.Threading.Thread.Sleep(1000); Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "Slap's " + Params[1] + " ass and pulls their hair*", 0, ThisUser.LastBubble)); System.Threading.Thread.Sleep(1000); Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Climaxes and sprays juice all over the place", 0, ThisUser.LastBubble)); System.Threading.Thread.Sleep(1000); Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Collapses onto the floor, tired and worn out.", 0, ThisUser.LastBubble)); TargetUser.Statusses.Add("lay", "0.1"); TargetUser.isLying = true; TargetUser.UpdateNeeded = true; } else { Session.SendWhisper("The user is too far away, please try getting closer."); return; } } } } [/CODE] :up: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Boon Emulator Issues! + Custom Commands
Top