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 Tutorials
(bcstorm) How to fix Public room error
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="cyberxwarez" data-source="post: 185684" data-attributes="member: 29304"><p>When you add a room on the public and you will be logged out when you open the Navigator</p><p> </p><p>Go to: <span style="font-family: 'Verdana'"><span style="color: #333333">Butterfly/habbohotel/</span></span><span style="font-family: 'Verdana'"><span style="color: #333333">Navigators and then open </span></span><span style="font-family: 'Verdana'"><span style="color: #333333">Navigator.cs with notepad</span></span></p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #333333">it will be a code there</span></span></p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #333333">Replace it with:</span></span></p><p> </p><p> </p><p>[CODE] internal ServerMessage SerializePublicRooms()</p><p> </p><p> {</p><p> </p><p> ServerMessage message = new ServerMessage(Outgoing.SerializePublicRooms);</p><p> </p><p> message.AppendInt32(this.PublicItems.Count);</p><p> </p><p> foreach (PublicItem item in this.PublicItems.Values)</p><p> </p><p> {</p><p> </p><p> if (item.ParentId <= 0)</p><p> </p><p> {</p><p> </p><p> item.Serialize(message);</p><p> </p><p> if (item.itemType == PublicItemType.CATEGORY)</p><p> </p><p> {</p><p> </p><p> foreach (PublicItem item2 in this.PublicItems.Values)</p><p> </p><p> {</p><p> </p><p> if (item.Id == item2.ParentId)</p><p> </p><p> {</p><p> </p><p> item2.Serialize(message);</p><p> </p><p> }</p><p> </p><p> }</p><p> </p><p> }</p><p> </p><p> }</p><p> </p><p> }</p><p> </p><p> message.AppendInt32((this.PublicItems.Count > 0) ? 1 : 0);</p><p> </p><p> </p><p> </p><p> if (this.PublicItems.Count > 0)</p><p> </p><p> {</p><p> </p><p> int num = new Random().Next(1, this.PublicItems.Count);</p><p> </p><p> </p><p> </p><p> try</p><p> </p><p> {</p><p> </p><p> this.PublicItems[num].Serialize(message);</p><p> </p><p> }</p><p> </p><p> catch</p><p> </p><p> {</p><p> </p><p> this.PublicItems[1].Serialize(message);</p><p> </p><p> }</p><p> </p><p> }</p><p> </p><p> </p><p> </p><p> message.AppendInt32(0);</p><p> </p><p> return message;</p><p> </p><p> } [/CODE]</p><p> </p><p> </p><p> </p><p>And then you just input a room in the database at navigator_publics_new ^_^</p><p> </p><p> </p><p>sorry for bad english, again <img src="/styles/default/xenforo/smilies/emojione/frown.png" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="cyberxwarez, post: 185684, member: 29304"] When you add a room on the public and you will be logged out when you open the Navigator Go to: [FONT=Verdana][COLOR=#333333] [/COLOR][/FONT][FONT=Verdana][COLOR=#333333]Butterfly/habbohotel/[/COLOR][/FONT][FONT=Verdana][COLOR=#333333]Navigators and then open [/COLOR][/FONT][FONT=Verdana][COLOR=#333333]Navigator.cs with notepad[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]it will be a code there[/COLOR][/FONT] [FONT=Verdana][COLOR=#333333]Replace it with:[/COLOR][/FONT] [CODE] internal ServerMessage SerializePublicRooms() { ServerMessage message = new ServerMessage(Outgoing.SerializePublicRooms); message.AppendInt32(this.PublicItems.Count); foreach (PublicItem item in this.PublicItems.Values) { if (item.ParentId <= 0) { item.Serialize(message); if (item.itemType == PublicItemType.CATEGORY) { foreach (PublicItem item2 in this.PublicItems.Values) { if (item.Id == item2.ParentId) { item2.Serialize(message); } } } } } message.AppendInt32((this.PublicItems.Count > 0) ? 1 : 0); if (this.PublicItems.Count > 0) { int num = new Random().Next(1, this.PublicItems.Count); try { this.PublicItems[num].Serialize(message); } catch { this.PublicItems[1].Serialize(message); } } message.AppendInt32(0); return message; } [/CODE] And then you just input a room in the database at navigator_publics_new ^_^ sorry for bad english, again :( [FONT=Verdana][COLOR=#333333][/COLOR][/FONT] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
(bcstorm) How to fix Public room error
Top