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
Event Alert Debug Problem
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="Bran" data-source="post: 428970" data-attributes="member: 74752"><p style="text-align: center"><span style="font-size: 18px">so basically I am trying to use the old code to change my event alert command from a basic one to a more professional one and I go to debug it in Visual Studio 2017 and the "Start Debugging" is greyed out? does anybody know why? for reference i'm using R1 </span></p> <p style="text-align: center"><span style="font-size: 18px">the code i'm using is below =</span></p><p><span style="font-size: 18px">[CODE]using Plus.Communication.Packets.Outgoing.Moderation;</span></p><p><span style="font-size: 18px">using Plus.Communication.Packets.Outgoing.Rooms.Notifications;</span></p><p><span style="font-size: 18px">using Plus.HabboHotel.GameClients;</span></p><p><span style="font-size: 18px">using System;</span></p><p><span style="font-size: 18px">namespace Plus.HabboHotel.Rooms.Chat.Commands.Events</span></p><p><span style="font-size: 18px">{</span></p><p><span style="font-size: 18px"> class EventAlertCommand : IChatCommand</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> public string PermissionRequired</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> get</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> return "command_event_alert";</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> public string Parameters</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> get</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> return "%message%";</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> public string Description</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> get</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> return "Send a hotel alert for your event!";</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> public void Execute(GameClient Session, Room Room, string[] Params)</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> if (Session != null)</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> if (Room != null)</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> if (Params.Length == 1)</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> Session.SendWhisper("Please enter a message to send.");</span></p><p><span style="font-size: 18px"> return;</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> else</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> string Message = CommandManager.MergeParams(Params, 1);</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> PlusEnvironment.GetGame().GetClientManager().SendPacket(new RoomNotificationComposer("Habcrush Event Alert",</span></p><p><span style="font-size: 18px"> "<b>" + Session.GetHabbo().Username + "</b> is hosting some events. Prizes and GOTW points will be handed out to the winners." +</span></p><p><span style="font-size: 18px"> "<br><br><i>User Message: <i>" + Message +</span></p><p><span style="font-size: 18px"> "<br><br><b>- " + Session.GetHabbo().Username + "</b>" +</span></p><p><span style="font-size: 18px"> "<br><br><i>This event is moderated by Habcrush Staff!</i>", "eventspic"</span></p><p><span style="font-size: 18px"> , "Click here to go to " + Room.Name + "", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px">}[/CODE]</span></p><p style="text-align: center"><img src="https://i.imgur.com/yDFCj5c.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"><span style="font-size: 15px">this is what my old one used to look like and I want it to look like this one, i put the exact same code I used for that one and then it grey's out the debug option (shown above)</span></p> <p style="text-align: center"><span style="font-size: 15px"></span></p> <p style="text-align: center"><span style="font-size: 18px">what my old one looked like:</span></p> <p style="text-align: center"><span style="font-size: 15px"><img src="https://i.imgur.com/8sTNbRW.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></p> <p style="text-align: center"><span style="font-size: 15px"></span></p> <p style="text-align: center"><span style="font-size: 18px">what my one now looks like:</span></p> <p style="text-align: center"><span style="font-size: 15px"><img src="https://i.imgur.com/nKlHLs2.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></p> <p style="text-align: center"></p> <p style="text-align: center"></p></blockquote><p></p>
[QUOTE="Bran, post: 428970, member: 74752"] [CENTER][SIZE=5]so basically I am trying to use the old code to change my event alert command from a basic one to a more professional one and I go to debug it in Visual Studio 2017 and the "Start Debugging" is greyed out? does anybody know why? for reference i'm using R1 the code i'm using is below =[/SIZE][/CENTER] [SIZE=5][CODE]using Plus.Communication.Packets.Outgoing.Moderation; using Plus.Communication.Packets.Outgoing.Rooms.Notifications; using Plus.HabboHotel.GameClients; using System; namespace Plus.HabboHotel.Rooms.Chat.Commands.Events { class EventAlertCommand : IChatCommand { public string PermissionRequired { get { return "command_event_alert"; } } 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) { if (Params.Length == 1) { Session.SendWhisper("Please enter a message to send."); return; } else { string Message = CommandManager.MergeParams(Params, 1); PlusEnvironment.GetGame().GetClientManager().SendPacket(new RoomNotificationComposer("Habcrush Event Alert", "<b>" + Session.GetHabbo().Username + "</b> is hosting some events. Prizes and GOTW points will be handed out to the winners." + "<br><br><i>User Message: <i>" + Message + "<br><br><b>- " + Session.GetHabbo().Username + "</b>" + "<br><br><i>This event is moderated by Habcrush Staff!</i>", "eventspic" , "Click here to go to " + Room.Name + "", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId)); } } } } } }[/CODE][/SIZE] [CENTER][IMG]https://i.imgur.com/yDFCj5c.png[/IMG] [SIZE=4]this is what my old one used to look like and I want it to look like this one, i put the exact same code I used for that one and then it grey's out the debug option (shown above) [/SIZE] [SIZE=5]what my old one looked like:[/SIZE] [SIZE=4][IMG]https://i.imgur.com/8sTNbRW.png[/IMG] [/SIZE] [SIZE=5]what my one now looks like:[/SIZE] [SIZE=4][IMG]https://i.imgur.com/nKlHLs2.png[/IMG][/SIZE] [/CENTER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Event Alert Debug Problem
Top