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:
But i can't use the command ingame? what did i do wrong?
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));
}
}
}
}
}