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
Habboon Plus Edit 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: 367506" data-attributes="member: 59038"><p>Hi, I've been trying to code commands into boon's plus edit, and whenever i go onto the client it just says it as regular speech?</p><p>now, I thought this was because the command wasn't registered somewhere but i'm quite sure everything is where it's supposed to be.</p><p>Not familiar with this edit yet anyways,</p><p>Here is my command,</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 dropkickcommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_dropkick"; }</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 "Dropkick 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 dropkick.");</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.");</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 dropkick yourself!");</p><p> return;</p><p> }</p><p> TargetUser.Statusses.Add("sit", "1.0");</p><p> TargetUser.UpdateNeeded = true;</p><p></p><p> Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Dropkicks " + TargetClient.GetHabbo().Username + "*", 0, TargetUser.LastBubble));</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p><p>and here is what it does,</p><p><img src="http://i.imgur.com/UZViQ9J.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>Now, I have no idea if this command is even coded properly for this emulator,</p><p>this is my first attempt at coding into this edit, and i'm still getting used to it.</p><p></p><p>Thanks,</p></blockquote><p></p>
[QUOTE="Altercationz, post: 367506, member: 59038"] Hi, I've been trying to code commands into boon's plus edit, and whenever i go onto the client it just says it as regular speech? now, I thought this was because the command wasn't registered somewhere but i'm quite sure everything is where it's supposed to be. Not familiar with this edit yet anyways, Here is my command, [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 dropkickcommand : IChatCommand { public string PermissionRequired { get { return "command_dropkick"; } } public string Parameters { get { return "%username%"; } } public string Description { get { return "Dropkick 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 dropkick."); return; } GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]); if (TargetClient == null) { Session.SendWhisper("The user was not found in the room."); 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 dropkick yourself!"); return; } TargetUser.Statusses.Add("sit", "1.0"); TargetUser.UpdateNeeded = true; Room.SendMessage(new ChatComposer(TargetUser.VirtualId, "Dropkicks " + TargetClient.GetHabbo().Username + "*", 0, TargetUser.LastBubble)); } } } [/CODE] and here is what it does, [IMG]http://i.imgur.com/UZViQ9J.png[/IMG] Now, I have no idea if this command is even coded properly for this emulator, this is my first attempt at coding into this edit, and i'm still getting used to it. Thanks, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Habboon Plus Edit Commands
Top