Custom Chat Bubble not working after editting Habbo Emulator

Karel

Member
May 15, 2019
80
13
Hi, I'm trying to edit some code in the emulator for my hotel. I wanted rank 4 to get the staff badge above their heads, so I made the emulator assign effect 102 to them and the staff-chatbubble. The same for the helpers, but then for the helper effect and the helper bubble.

After entering a room, I can't pick other bubbles with the button next to the type-column. :bubble does work.

This is the code I added in the RoomUserManager.cs
C#:
if (Session.GetHabbo().Rank.Equals(4))
            {
                Session.GetHabbo().Effects().ApplyEffect(102);
                Session.GetHabbo().CustomBubbleId = 23;
            }

            if (Session.GetHabbo().Rank.Equals(3))
            {
                Session.GetHabbo().Effects().ApplyEffect(102);
                Session.GetHabbo().CustomBubbleId = 23;
            }
           
            if (Session.GetHabbo().Rank.Equals(2))
            {
                Session.GetHabbo().Effects().ApplyEffect(178);
                Session.GetHabbo().CustomBubbleId = 37;
            }

There are no errors in the logs and the emulator.

Does anybody know how to fix this?
Thanks!
 

Karel

Member
May 15, 2019
80
13
public bool AddAvatarToRoom(GameClient Session) if that's what you're looking for
Post automatically merged:

The "check if ambassador and if so, give that effect"-code was also in that method, I just editted it so I could leave the is_ambassador part out, and just use ranks in the emu
Code:
if (Session.GetHabbo().GetPermissions().HasRight("mod_tool") && !Session.GetHabbo().DisableForcedEffects)
                Session.GetHabbo().Effects().ApplyEffect(102);
 
Last edited:

Users who are viewing this thread

Top