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 Releases
Server Releases
Coloured Usernames Release [PlusEmu]
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="Mikee" data-source="post: 416962" data-attributes="member: 76567"><p>Just replace ur SendNameColorPacket with this</p><p></p><p>[CODE] public void SendNameColorPacket()</p><p> {</p><p> </p><p> if (IsBot || GetClient() == null || GetClient().GetHabbo() == null)</p><p> return;</p><p></p><p> //if (GetClient().GetHabbo().ChatColor == null || GetClient().GetHabbo().ChatColor == String.Empty)</p><p> // return;</p><p></p><p> if (GetClient().GetHabbo().ChatPreference)</p><p> return; </p><p> </p><p> if (GetClient().GetHabbo().ChatColor == "Rainbow")</p><p> {</p><p> string Username = GenerateRainbowText(GetClient().GetHabbo().Username);</p><p> GetRoom().SendPacket(new UserNameChangeComposer(RoomId, VirtualId, Username));</p><p> return;</p><p> }</p><p></p><p> else if (this.rankTag != String.Empty)</p><p> {</p><p> </p><p> string Username = "<font color='" + GetClient().GetHabbo().ChatColor + "'> [" + this.rankTag + "] " + GetClient().GetHabbo().Username + "</font>";</p><p> GetRoom().SendPacket(new UserNameChangeComposer(RoomId, VirtualId, Username));</p><p> return;</p><p> }</p><p> else</p><p> {</p><p> string Username = "<font color='" + GetClient().GetHabbo().ChatColor + "'>" + GetClient().GetHabbo().Username + "</font>";</p><p> GetRoom().SendPacket(new UserNameChangeComposer(RoomId, VirtualId, Username));</p><p> return;</p><p> }</p><p> }[/CODE]</p><p></p><p>go to ColouredChatCommand and add this</p><p></p><p>[CODE] case "rainbow":</p><p> {</p><p> Session.GetHabbo().ChatColor = "Rainbow";</p><p> break;</p><p> }[/CODE]</p><p></p><p>Please don't tell me that rank tags dont work for rainbow text, because ik they don't. Challenge urself a little bit and add it in if u'd like</p><p></p><p>Also add the generaterainbowtext code somewhere in RoomUser.cs</p></blockquote><p></p>
[QUOTE="Mikee, post: 416962, member: 76567"] Just replace ur SendNameColorPacket with this [CODE] public void SendNameColorPacket() { if (IsBot || GetClient() == null || GetClient().GetHabbo() == null) return; //if (GetClient().GetHabbo().ChatColor == null || GetClient().GetHabbo().ChatColor == String.Empty) // return; if (GetClient().GetHabbo().ChatPreference) return; if (GetClient().GetHabbo().ChatColor == "Rainbow") { string Username = GenerateRainbowText(GetClient().GetHabbo().Username); GetRoom().SendPacket(new UserNameChangeComposer(RoomId, VirtualId, Username)); return; } else if (this.rankTag != String.Empty) { string Username = "<font color='" + GetClient().GetHabbo().ChatColor + "'> [" + this.rankTag + "] " + GetClient().GetHabbo().Username + "</font>"; GetRoom().SendPacket(new UserNameChangeComposer(RoomId, VirtualId, Username)); return; } else { string Username = "<font color='" + GetClient().GetHabbo().ChatColor + "'>" + GetClient().GetHabbo().Username + "</font>"; GetRoom().SendPacket(new UserNameChangeComposer(RoomId, VirtualId, Username)); return; } }[/CODE] go to ColouredChatCommand and add this [CODE] case "rainbow": { Session.GetHabbo().ChatColor = "Rainbow"; break; }[/CODE] Please don't tell me that rank tags dont work for rainbow text, because ik they don't. Challenge urself a little bit and add it in if u'd like Also add the generaterainbowtext code somewhere in RoomUser.cs [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
Coloured Usernames Release [PlusEmu]
Top