Central
Imagination is more important than knowledge.
- Feb 22, 2015
- 709
- 107
Hey!
Before you say "Search for it and you may find it" I tried, and I did find one but it didn't work so I'm coming here.
Above is the code I used for the eha command that does not work. Yeah it was already built in but I wanted to change it to include the go to room button stuff.
Can anyone help me with the code or give me a code that works? Thank you!
Before you say "Search for it and you may find it" I tried, and I did find one but it didn't work so I'm coming here.
Code:
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.HabboHotel.GameClients;
using System;
using Plus.HabboHotel.Users;
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 GOTW Points & prizes!";
if (Params.Length > 2)
Message = CommandManager.MergeParams(Params, 1);
PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("Zebbo 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));
}
}
}
}
}
Can anyone help me with the code or give me a code that works? Thank you!