Altering the Chat Codes

Gumzy

New Member
Jan 24, 2018
27
7
Wondering if there's a way to add the "*" before the Habbo's Username when they use commands.
Can do it via the serialization but that alters everything.

Code:
Code:
 var chatMsg = new ServerMessage();
            chatMsg.Init(shout
                ? LibraryParser.OutgoingRequest("ShoutMessageComposer")
                : LibraryParser.OutgoingRequest("ChatMessageComposer"));
            chatMsg.AppendInteger(VirtualId);
            chatMsg.AppendString(msg);
            chatMsg.AppendInteger(GetSpeechEmotion(msg));
            chatMsg.AppendInteger(textColor);
            chatMsg.AppendInteger(0);// links count (foreach string string bool)
            chatMsg.AppendInteger(count);
            GetRoom().BroadcastChatMessage(chatMsg, this, session.JobManager().Id);

            GetRoom().OnUserSay(this, msg, shout);

            GetRoom().GetRoomUserManager().TurnHeads(X, Y, HabboId);
 

Core

Member
Nov 10, 2016
356
138
Code:
public void RoleplayChat(string Message, ChatBubble BubbleId)
        {
            this.Room.SendPacket(new UserNameChangeComposer(this.Room.Id, this.UserData.Id, "*" + this.UserData.Username));
            this.Room.SendPacket(new ChatComposer(this.UserData.Id, Message + "*", 0, BubbleId));
            this.Room.SendPacket(new UserNameChangeComposer(this.Room.Id, this.UserData.Id, this.UserData.Username));
        }
 

Users who are viewing this thread

Top