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
Placing pets in rooms
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: 403187" data-attributes="member: 35321"><p>Hi LukeOx,</p><p></p><p>In <strong>RoomSettingsDataComposer.cs</strong>, find this:</p><p>[CODE]base.WriteInteger(Room.AllowPets); // allows pets in room - pet system lacking, so always off[/CODE]</p><p>And you can replace "Room.AllowPets" with <strong>true</strong>.</p><p></p><p>In <strong>RoomAppender.cs</strong> (where this writes the room data), find this:</p><p>[CODE]if (Data.AllowPets == 1)</p><p> RoomType += 16;[/CODE]</p><p>And you can replace "Data.AllowPets == 1" with <strong>1==1</strong> or something, up to you.</p><p></p><p>If that's not the case, maybe the <strong>SaveRoomSettingsEvent.cs</strong> isn't saving the setting for allowing pets properly. :s</p><p>[doublepost=1489035609,1489035422][/doublepost]Or maybe this boolean in <strong>GetGuestRoomResultComposer.cs</strong>:</p><p>[CODE]base.WriteBoolean(Session.GetHabbo().GetPermissions().HasRight("mod_tool") || Data.OwnerId == Session.GetHabbo().Id);[/CODE]</p><p></p><p>Has to do with something related to pets, not sure.</p></blockquote><p></p>
[QUOTE="Jerry, post: 403187, member: 35321"] Hi LukeOx, In [B]RoomSettingsDataComposer.cs[/B], find this: [CODE]base.WriteInteger(Room.AllowPets); // allows pets in room - pet system lacking, so always off[/CODE] And you can replace "Room.AllowPets" with [B]true[/B]. In [B]RoomAppender.cs[/B] (where this writes the room data), find this: [CODE]if (Data.AllowPets == 1) RoomType += 16;[/CODE] And you can replace "Data.AllowPets == 1" with [B]1==1[/B] or something, up to you. If that's not the case, maybe the [B]SaveRoomSettingsEvent.cs[/B] isn't saving the setting for allowing pets properly. :s [doublepost=1489035609,1489035422][/doublepost]Or maybe this boolean in [B]GetGuestRoomResultComposer.cs[/B]: [CODE]base.WriteBoolean(Session.GetHabbo().GetPermissions().HasRight("mod_tool") || Data.OwnerId == Session.GetHabbo().Id);[/CODE] Has to do with something related to pets, not sure. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Placing pets in rooms
Top