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 Releases
CMS Releases
[PlusEMU] Roomalert, Override, and Fly command add-on!
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="Jerry" data-source="post: 269420" data-attributes="member: 35321"><p>Hello Devbest, I've currently was editing the emulator source I decided to code a few commands;</p><ul> <li data-xf-list-type="ul">Override</li> <li data-xf-list-type="ul">Roomalert</li> <li data-xf-list-type="ul">Fly</li> </ul><p>Fly;</p><p>[CODE] #region Fly (:fly)</p><p> case "fly":</p><p> {</p><p> if (Session.GetHabbo().HasCmd("fly"))</p><p> {</p><p> Room currentRoom = Session.GetHabbo().CurrentRoom;</p><p> RoomUser roomUserByHabbo = null;</p><p> currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);</p><p> if (currentRoom != null)</p><p> {</p><p> roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> if (roomUserByHabbo != null)</p><p> {</p><p> roomUserByHabbo.isFlying = true;</p><p> </p><p> }</p><p> }</p><p> }</p><p> return true;</p><p> }</p><p> #endregion</p><p>[/CODE]</p><p>Override;</p><p>[CODE] #region Override (:override)</p><p> case "override":</p><p> {</p><p> if (Session.GetHabbo().HasCmd("override"))</p><p> {</p><p> Room currentRoom = Session.GetHabbo().CurrentRoom;</p><p> RoomUser roomUserByHabbo = null;</p><p> currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);</p><p> if (currentRoom != null)</p><p> {</p><p> roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> if (roomUserByHabbo != null)</p><p> {</p><p> if (roomUserByHabbo.AllowOverride)</p><p> {</p><p> roomUserByHabbo.AllowOverride = false;</p><p> SendChatMessage(Session, "Override has been disabled!");</p><p> }</p><p> else</p><p> {</p><p> roomUserByHabbo.AllowOverride = true;</p><p> SendChatMessage(Session, "Override has been enabled!");</p><p> }</p><p> currentRoom.GetGameMap().GenerateMaps(true);</p><p> }</p><p> }</p><p> </p><p> }</p><p> return true;</p><p> }</p><p> #endregion</p><p>[/CODE]</p><p>Roomalert;</p><p>[CODE] #region Roomalert (:roomalert)</p><p> case "roomalert":</p><p> {</p><p> if (Session.GetHabbo().HasCmd("roomalert"))</p><p> {</p><p> Room currentRoom = Session.GetHabbo().CurrentRoom;</p><p> currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);</p><p> if (currentRoom != null)</p><p> {</p><p> string s = MergeParams(Params, 1);</p><p> ServerMessage message = new ServerMessage();</p><p> message.Init(Outgoing.SendNotif);</p><p> message.AppendString(s);</p><p> message.AppendString("");</p><p> SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "Alert", "Room alert with message [" + s + "]");</p><p> currentRoom.QueueRoomMessage(message);</p><p> }</p><p> }</p><p> }</p><p> return true;</p><p> #endregion</p><p>[/CODE]</p><p>Screenshots;</p><p><img src="http://i.imgur.com/hegOnnv.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="http://i.imgur.com/o0GxAps.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="http://i.imgur.com/yUgshh5.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>I did <u>NOT</u> code all this.. I just got the code from another emu and fixed up the code! Goodluck everyone. <strong>Like?</strong> <img src="/styles/default/xenforo/smilies/emojione/thumbsup.png" class="smilie" loading="lazy" alt=":up:" title="Thumbs Up :up:" data-shortname=":up:" /></p><p><strong>Credits; </strong></p><p><strong>95% - Codes from another emulator.</strong></p><p><strong>5% - JerryCool fixing up codes.</strong></p></blockquote><p></p>
[QUOTE="Jerry, post: 269420, member: 35321"] Hello Devbest, I've currently was editing the emulator source I decided to code a few commands; [LIST] [*]Override [*]Roomalert [*]Fly [/LIST] Fly; [CODE] #region Fly (:fly) case "fly": { if (Session.GetHabbo().HasCmd("fly")) { Room currentRoom = Session.GetHabbo().CurrentRoom; RoomUser roomUserByHabbo = null; currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (currentRoom != null) { roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (roomUserByHabbo != null) { roomUserByHabbo.isFlying = true; } } } return true; } #endregion [/CODE] Override; [CODE] #region Override (:override) case "override": { if (Session.GetHabbo().HasCmd("override")) { Room currentRoom = Session.GetHabbo().CurrentRoom; RoomUser roomUserByHabbo = null; currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (currentRoom != null) { roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (roomUserByHabbo != null) { if (roomUserByHabbo.AllowOverride) { roomUserByHabbo.AllowOverride = false; SendChatMessage(Session, "Override has been disabled!"); } else { roomUserByHabbo.AllowOverride = true; SendChatMessage(Session, "Override has been enabled!"); } currentRoom.GetGameMap().GenerateMaps(true); } } } return true; } #endregion [/CODE] Roomalert; [CODE] #region Roomalert (:roomalert) case "roomalert": { if (Session.GetHabbo().HasCmd("roomalert")) { Room currentRoom = Session.GetHabbo().CurrentRoom; currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (currentRoom != null) { string s = MergeParams(Params, 1); ServerMessage message = new ServerMessage(); message.Init(Outgoing.SendNotif); message.AppendString(s); message.AppendString(""); SilverwaveEnvironment.GetGame().GetModerationTool().LogStaffEntry(Session.GetHabbo().Username, string.Empty, "Alert", "Room alert with message [" + s + "]"); currentRoom.QueueRoomMessage(message); } } } return true; #endregion [/CODE] Screenshots; [IMG]http://i.imgur.com/hegOnnv.png[/IMG] [IMG]http://i.imgur.com/o0GxAps.png[/IMG] [IMG]http://i.imgur.com/yUgshh5.png[/IMG] I did [U]NOT[/U] code all this.. I just got the code from another emu and fixed up the code! Goodluck everyone. [B]Like?[/B] :up: [B]Credits; 95% - Codes from another emulator. 5% - JerryCool fixing up codes.[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[PlusEMU] Roomalert, Override, and Fly command add-on!
Top