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
[PlusEMU] EventAlert goto room button
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="Supermario" data-source="post: 379982" data-attributes="member: 65433"><p>Hi,</p><p></p><p>I am currently editing the EventAlert command in PlusEMU, and I want to add a button called Participate under the very last sentence. When they click 'Participate' they will go to the room where the event is hosted in. Also How do I get rid of the close button and the line above the close button? I also want to change the Frank avatar, to the person who is hosting the event. For a example. When I use the ;eha command, My avatar will be there Instead of Franks.</p><p></p><p><strong>EventAlert.cs:</strong></p><p>[CODE]</p><p>public void Execute(GameClient Session, Room Room, string[] Params)</p><p> {</p><p> if (Session != null)</p><p> {</p><p> if (Room != null)</p><p> {</p><p> if (Params.Length != 1)</p><p> {</p><p> Session.SendWhisper("Invalid command! :eventalert", 0);</p><p> }</p><p> else if (!PlusEnvironment.Event)</p><p> {</p><p> PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer("There's currently an event going on right now!\n\nThe event is in <b> " + Session.GetHabbo().CurrentRoom.RoomData.Name + " </b>and it's currently hosted by <b>" + Session.GetHabbo().Username + "</b>!\n\nIf you want to participate in the event, click 'Participate!' located on the bottom of the notification!\r\n" + "" ), "");</p><p> PlusEnvironment.lastEvent = DateTime.Now;</p><p> PlusEnvironment.Event = true;</p><p> }</p><p> else</p><p> {</p><p> TimeSpan timeSpan = DateTime.Now - PlusEnvironment.lastEvent;</p><p> if (timeSpan.Hours >= 1)</p><p> {</p><p> PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer(":follow " + Session.GetHabbo().Username + " for events! win prizes!\r\n- " + Session.GetHabbo().Username, ""), "");</p><p> PlusEnvironment.lastEvent = DateTime.Now;</p><p> }</p><p> else</p><p> {</p><p> int num = checked(30 - timeSpan.Minutes);</p><p> Session.SendWhisper("Event Cooldown! " + num + " minutes left until another event can be hosted.", 0);</p><p> </p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}[/CODE]</p><p></p><p><strong>Picture:</strong></p><p><img src="http://i63.tinypic.com/14jazkp.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Thank you,</p></blockquote><p></p>
[QUOTE="Supermario, post: 379982, member: 65433"] Hi, I am currently editing the EventAlert command in PlusEMU, and I want to add a button called Participate under the very last sentence. When they click 'Participate' they will go to the room where the event is hosted in. Also How do I get rid of the close button and the line above the close button? I also want to change the Frank avatar, to the person who is hosting the event. For a example. When I use the ;eha command, My avatar will be there Instead of Franks. [B]EventAlert.cs:[/B] [CODE] public void Execute(GameClient Session, Room Room, string[] Params) { if (Session != null) { if (Room != null) { if (Params.Length != 1) { Session.SendWhisper("Invalid command! :eventalert", 0); } else if (!PlusEnvironment.Event) { PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer("There's currently an event going on right now!\n\nThe event is in <b> " + Session.GetHabbo().CurrentRoom.RoomData.Name + " </b>and it's currently hosted by <b>" + Session.GetHabbo().Username + "</b>!\n\nIf you want to participate in the event, click 'Participate!' located on the bottom of the notification!\r\n" + "" ), ""); PlusEnvironment.lastEvent = DateTime.Now; PlusEnvironment.Event = true; } else { TimeSpan timeSpan = DateTime.Now - PlusEnvironment.lastEvent; if (timeSpan.Hours >= 1) { PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer(":follow " + Session.GetHabbo().Username + " for events! win prizes!\r\n- " + Session.GetHabbo().Username, ""), ""); PlusEnvironment.lastEvent = DateTime.Now; } else { int num = checked(30 - timeSpan.Minutes); Session.SendWhisper("Event Cooldown! " + num + " minutes left until another event can be hosted.", 0); } } } } } } }[/CODE] [B]Picture:[/B] [IMG]http://i63.tinypic.com/14jazkp.jpg[/IMG] Thank you, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[PlusEMU] EventAlert goto room button
Top