Remove bubblealert

Cosis

New Member
May 27, 2018
21
12
Hello
How can i do remove the bubble alert that showing on i enter in a room?
Post automatically merged:

Wich bin file i do edit in the swf?
 

kailani

Member
Sep 26, 2020
30
12
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:
Code:
public void SendPacket(IServerPacket packet, bool withRightsOnly = false)

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);
}


Example:
Code:
if ((withRightsOnly && !CheckRights(user.GetClient())) || user.HideChatBubbles)

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.
 
Last edited:

Users who are viewing this thread

Top