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
Server Releases
[REQUEST] :CHANGEUI COMMAND PLUS EMULATOR REVISION 2 [REQUEST]
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="13rad" data-source="post: 282586" data-attributes="member: 37541"><p><strong>Step 1 - Table alteration</strong></p><p></p><p>Firstly, run the following MySQL query:</p><p></p><p></p><p></p><p><strong>Step 2 - Modifying the Habbo class</strong></p><p></p><p>Firstly, open Habbo.cs and find:</p><p></p><p></p><p></p><p></p><p>and add below it:</p><p></p><p>[CODE]</p><p>internal bool NewUI;</p><p>[/CODE]</p><p>then, find:</p><p></p><p></p><p></p><p></p><p></p><p>and add bool NewUI or replace it with this:</p><p></p><p>[CODE]</p><p>internal Habbo(UInt32 Id, string Username, string RealName, uint Rank, string Motto, string Look, string Gender, Int32 Credits,</p><p>Int32 ActivityPoints, Double LastActivityPointsUpdate, bool Muted,</p><p>UInt32 HomeRoom, Int32 Respect, Int32 DailyRespectPoints, Int32 DailyPetRespectPoints,</p><p>bool MutantPenalty, bool HasFriendRequestsDisabled, uint currentQuestID, int currentQuestProgress,</p><p>int achievementPoints, int LastOnline, bool AppearOffline, bool HideInRoom, bool VIP, double CreateDate,</p><p>bool Online, bool isguide, bool Blockwhisper, int SCurrency, bool mysbox, int key, List<GroupUser> Groups, uint FavId, int LastChange, bool NewUI)</p><p>[/CODE]</p><p></p><p>and then find:</p><p></p><p></p><p></p><p></p><p>and add this directly below:</p><p></p><p>[CODE]</p><p>this.NewUI = NewUI;</p><p>[/CODE]</p><p></p><p>then you need to add this at the bottom of the Habbo.cs file:</p><p></p><p>[CODE]</p><p>internal void NewUISwitcher() {</p><p>if (NewUI)</p><p>{</p><p>using (IQueryAdapter dbClient = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())</p><p>{</p><p>dbClient.runFastQuery("UPDATE users SET use_newui='0' WHERE id='" + this.Id + "'");</p><p>this.NewUI = false;</p><p>GetClient().SendNotif("New UI disabled!\n\nYour changes will be applied when you reload.");</p><p>}</p><p>}</p><p>else</p><p>{</p><p>using (IQueryAdapter dbClient = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())</p><p>{</p><p>dbClient.runFastQuery("UPDATE users SET use_newui='1' WHERE id='" + this.Id + "'");</p><p>this.NewUI = true;</p><p>GetClient().SendNotif("New UI enabled!\n\nYour changes will be applied when you reload.");</p><p>}</p><p>}</p><p>}</p><p>[/CODE]</p><p></p><p><strong>Step 3 - modifying the Authenticator class</strong></p><p><strong>Firstly, open Authenticator.cs and find:</strong></p><p></p><p></p><p></p><p><strong>add this directly below:</strong></p><p></p><p>[CODE]</p><p>[B]bool NewUI = SilverwaveEnvironment.EnumToBool(dRow["use_newui"].ToString());[/B]</p><p>[/CODE]</p><p><strong>then, find: </strong></p><p></p><p></p><p></p><p><strong>and add the NewUI bool or replace it with this:</strong></p><p></p><p>[CODE]</p><p>[B]return new Habbo(id, username, realname, rank, motto, look, gender, credits, activityPoints, activityPointsLastUpdate, isMuted, homeRoom, respect, dailyRespect, dailyPetRespect, mtantPenalty, blockFriends, questID, questProgress, achiecvementPoints,</p><p>lastonline, AppearOffline, HideFromRoom, vip, Createtime, online, isguide, Blockwhisper, Sc, mys, key, group, favid, LastChange, NewUI);[/B]</p><p>[/CODE]</p><p><strong>Step 4 - Adding the command</strong></p><p><strong>Open ChatCommandHandler.cs and add this:</strong></p><p></p><p>[CODE]</p><p>[B]#region UI (:ui) case "ui":</p><p>{</p><p>Session.GetHabbo().NewUISwitcher();</p><p>return true;</p><p>}</p><p>#endregion[/B]</p><p>[/CODE]</p><p><strong>Step 5 - Final steps</strong></p><p><strong>Firstly open InfoRetrieveEvent.cs and find:</strong></p><p></p><p></p><p></p><p><strong>replace it with this:</strong></p><p></p><p>[CODE]</p><p>[B]Session.SendMessage(new UserPerksComposer(Session.GetHabbo()));[/B]</p><p>[/CODE]</p><p><strong>then, open up UserPerksComposer.cs and add the following reference:</strong></p><p>[CODE]</p><p>[B]using Silverwave.HabboHotel.Users;[/B]</p><p>[/CODE]</p><p><strong>then, find: </strong></p><p></p><p></p><p></p><p></p><p><strong>and replace it with: </strong></p><p></p><p>[CODE]</p><p>[B]public UserPerksComposer(Habbo Habbo)[/B]</p><p>[/CODE]</p><p></p><p><strong>then, find: </strong></p><p></p><p></p><p></p><p><strong>and replace with with this:</strong></p><p></p><p>[CODE]</p><p>[B]base.WriteString("NEW_UI"); base.WriteString("");</p><p>if (Habbo.NewUI)</p><p>{</p><p>base.WriteBoolean(true);</p><p>}</p><p>else</p><p>{</p><p>base.WriteBoolean(false);</p><p>}[/B]</p><p>[/CODE]</p><p><img src="http://i.imgur.com/HC6NQTJ.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="/styles/default/xenforo/smilies/emojione/thumbsup.png" class="smilie" loading="lazy" alt=":up:" title="Thumbs Up :up:" data-shortname=":up:" /></p></blockquote><p></p>
[QUOTE="13rad, post: 282586, member: 37541"] [B]Step 1 - Table alteration[/B] Firstly, run the following MySQL query: [B]Step 2 - Modifying the Habbo class[/B] Firstly, open Habbo.cs and find: and add below it: [CODE] internal bool NewUI; [/CODE] then, find: and add bool NewUI or replace it with this: [CODE] internal Habbo(UInt32 Id, string Username, string RealName, uint Rank, string Motto, string Look, string Gender, Int32 Credits, Int32 ActivityPoints, Double LastActivityPointsUpdate, bool Muted, UInt32 HomeRoom, Int32 Respect, Int32 DailyRespectPoints, Int32 DailyPetRespectPoints, bool MutantPenalty, bool HasFriendRequestsDisabled, uint currentQuestID, int currentQuestProgress, int achievementPoints, int LastOnline, bool AppearOffline, bool HideInRoom, bool VIP, double CreateDate, bool Online, bool isguide, bool Blockwhisper, int SCurrency, bool mysbox, int key, List<GroupUser> Groups, uint FavId, int LastChange, bool NewUI) [/CODE] and then find: and add this directly below: [CODE] this.NewUI = NewUI; [/CODE] then you need to add this at the bottom of the Habbo.cs file: [CODE] internal void NewUISwitcher() { if (NewUI) { using (IQueryAdapter dbClient = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor()) { dbClient.runFastQuery("UPDATE users SET use_newui='0' WHERE id='" + this.Id + "'"); this.NewUI = false; GetClient().SendNotif("New UI disabled!\n\nYour changes will be applied when you reload."); } } else { using (IQueryAdapter dbClient = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor()) { dbClient.runFastQuery("UPDATE users SET use_newui='1' WHERE id='" + this.Id + "'"); this.NewUI = true; GetClient().SendNotif("New UI enabled!\n\nYour changes will be applied when you reload."); } } } [/CODE] [B]Step 3 - modifying the Authenticator class Firstly, open Authenticator.cs and find:[/B] [B]add this directly below:[/B] [CODE] [B]bool NewUI = SilverwaveEnvironment.EnumToBool(dRow["use_newui"].ToString());[/B] [/CODE] [B]then, find: [/B] [B]and add the NewUI bool or replace it with this:[/B] [CODE] [B]return new Habbo(id, username, realname, rank, motto, look, gender, credits, activityPoints, activityPointsLastUpdate, isMuted, homeRoom, respect, dailyRespect, dailyPetRespect, mtantPenalty, blockFriends, questID, questProgress, achiecvementPoints, lastonline, AppearOffline, HideFromRoom, vip, Createtime, online, isguide, Blockwhisper, Sc, mys, key, group, favid, LastChange, NewUI);[/B] [/CODE] [B]Step 4 - Adding the command Open ChatCommandHandler.cs and add this:[/B] [CODE] [B]#region UI (:ui) case "ui": { Session.GetHabbo().NewUISwitcher(); return true; } #endregion[/B] [/CODE] [B]Step 5 - Final steps Firstly open InfoRetrieveEvent.cs and find:[/B] [B]replace it with this:[/B] [CODE] [B]Session.SendMessage(new UserPerksComposer(Session.GetHabbo()));[/B] [/CODE] [B]then, open up UserPerksComposer.cs and add the following reference:[/B] [CODE] [B]using Silverwave.HabboHotel.Users;[/B] [/CODE] [B]then, find: [/B] [B]and replace it with: [/B] [CODE] [B]public UserPerksComposer(Habbo Habbo)[/B] [/CODE] [B]then, find: [/B] [B]and replace with with this:[/B] [CODE] [B]base.WriteString("NEW_UI"); base.WriteString(""); if (Habbo.NewUI) { base.WriteBoolean(true); } else { base.WriteBoolean(false); }[/B] [/CODE] [IMG]http://i.imgur.com/HC6NQTJ.png[/IMG] :up: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[REQUEST] :CHANGEUI COMMAND PLUS EMULATOR REVISION 2 [REQUEST]
Top