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
Remove bubblealert
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="kailani" data-source="post: 464313" data-attributes="member: 96235"><p>We probably need more information, like which bubble you're referring to but...</p><p></p><p>If you're asking how can I stop future chat bubbles from showing up for a specific user after they have loaded the room, then here is one way you can do it.</p><p></p><p>Find the following method signature (Should be in Room.cs, I don't have any Habbo files so I checked here: <a href="https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Rooms/Room.cs#L656" target="_blank">https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Rooms/Room.cs#L656</a></p><p>[CODE]public void SendPacket(IServerPacket packet, bool withRightsOnly = false) [/CODE]</p><p></p><p>You'll want to focus on this block of the method, and add a conditional check to exclude the user you want to hide bubbles from,</p><p>[CODE]foreach (RoomUser user in users)</p><p>{</p><p> if (user == null || user.IsBot)</p><p> continue;</p><p></p><p> if (user.GetClient() == null || user.GetClient().GetConnection() == null)</p><p> continue;</p><p></p><p> if (withRightsOnly && !CheckRights(user.GetClient()))</p><p> continue;</p><p></p><p> user.GetClient().SendPacket(packet);</p><p>}[/CODE]</p><p></p><p></p><p>Example:</p><p>[CODE]</p><p>if ((withRightsOnly && !CheckRights(user.GetClient())) || user.HideChatBubbles)</p><p>[/CODE]</p><p></p><p>You can either do it on a GameClient level or RoomUser level, former will reset state on each client load, latter will reset state for each room load.</p></blockquote><p></p>
[QUOTE="kailani, post: 464313, member: 96235"] We probably need more information, like which bubble you're referring to but... If you're asking how can I stop future chat bubbles from showing up for a specific user after they have loaded the room, then here is one way you can do it. Find the following method signature (Should be in Room.cs, I don't have any Habbo files so I checked here: [URL]https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Rooms/Room.cs#L656[/URL] [CODE]public void SendPacket(IServerPacket packet, bool withRightsOnly = false) [/CODE] You'll want to focus on this block of the method, and add a conditional check to exclude the user you want to hide bubbles from, [CODE]foreach (RoomUser user in users) { if (user == null || user.IsBot) continue; if (user.GetClient() == null || user.GetClient().GetConnection() == null) continue; if (withRightsOnly && !CheckRights(user.GetClient())) continue; user.GetClient().SendPacket(packet); }[/CODE] Example: [CODE] if ((withRightsOnly && !CheckRights(user.GetClient())) || user.HideChatBubbles) [/CODE] You can either do it on a GameClient level or RoomUser level, former will reset state on each client load, latter will reset state for each room load. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Remove bubblealert
Top