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
How do i add and change commands PLUSEMU
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="JoshuaS" data-source="post: 430949" data-attributes="member: 41738"><p>Hello. </p><p>So i am working with PlusEMU build 2. At the moment i cannot figure out how to add og change commands. First jeg changed the EventAlertCommand under HabboHotel Rooms Chat Commands Events to this:</p><p>[CODE]using Plus.Database.Interfaces;</p><p></p><p>namespace Plus.HabboHotel.Rooms.Chat.Commands.Events</p><p>{</p><p>internal class EhaCommand : IChatCommand</p><p>{</p><p>public string PermissionRequired</p><p>{</p><p>get</p><p>{</p><p>return "command_eha";</p><p>}</p><p>}</p><p>public string Parameters</p><p>{</p><p>get</p><p>{</p><p>return "%message%";</p><p>}</p><p>}</p><p>public string Description</p><p>{</p><p>get</p><p>{</p><p>return "Send a hotel alert for your event!";</p><p>}</p><p>}</p><p>public void Execute(GameClient Session, Room Room, string[] Params)</p><p>{</p><p></p><p>if (Session != null)</p><p>{</p><p>if (Room != null)</p><p>{</p><p>string Message = "" + "Hey! There's an event going on right now you might want to head down there to win some Hobba Points & prizes!";</p><p>if (Params.Length > 2)</p><p>Message = CommandManager.MergeParams(Params, 1);</p><p></p><p>PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("Hobba Events (Supervised)", Message + "\r\n- <b>" + Session.GetHabbo().Username + "</b>\r\n<i></i>", "figure/" + Session.GetHabbo().Username + "", "Go to \"" + Session.GetHabbo().CurrentRoom.Name + "\"!", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));</p><p>}</p><p>}</p><p>}</p><p>}</p><p>}[/CODE]</p><p>But i can't use the command ingame? what did i do wrong?</p></blockquote><p></p>
[QUOTE="JoshuaS, post: 430949, member: 41738"] Hello. So i am working with PlusEMU build 2. At the moment i cannot figure out how to add og change commands. First jeg changed the EventAlertCommand under HabboHotel Rooms Chat Commands Events to this: [CODE]using Plus.Database.Interfaces; namespace Plus.HabboHotel.Rooms.Chat.Commands.Events { internal class EhaCommand : IChatCommand { public string PermissionRequired { get { return "command_eha"; } } public string Parameters { get { return "%message%"; } } public string Description { get { return "Send a hotel alert for your event!"; } } public void Execute(GameClient Session, Room Room, string[] Params) { if (Session != null) { if (Room != null) { string Message = "" + "Hey! There's an event going on right now you might want to head down there to win some Hobba Points & prizes!"; if (Params.Length > 2) Message = CommandManager.MergeParams(Params, 1); PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("Hobba Events (Supervised)", Message + "\r\n- <b>" + Session.GetHabbo().Username + "</b>\r\n<i></i>", "figure/" + Session.GetHabbo().Username + "", "Go to \"" + Session.GetHabbo().CurrentRoom.Name + "\"!", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId)); } } } } }[/CODE] But i can't use the command ingame? what did i do wrong? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
How do i add and change commands PLUSEMU
Top