Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Colorful name in chat?

Status
Not open for further replies.
Newbie Spellweaver
Joined
Aug 9, 2014
Messages
22
Reaction score
1
hi everyone,
I had an idea to put colorful names in the chat, I've seen in a retro (holorp), but when I tried to do this happens:
Rafacasari - Colorful name in chat? - RaGEZONE Forums

url:
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Aug 9, 2014
Messages
22
Reaction score
1
Code:
Username.Replace("<font color="#ff0000">", "");
Username.Replace("</font>", "");

It's straightforward. Please try and help yourself by doing your own research​.

But have nowhere to use replace, if you take out the html code in the UsersComposer nothing stays colored.
Not places that get the username, usercomposer already sends the package to Room.cs, and can not change without changing the color in the chat.
 
Upvote 0
Junior Spellweaver
Joined
Nov 5, 2013
Messages
147
Reaction score
57
Once the Packet RoomUsersComposer is sent to the client, the only way to you to communicate with the avatar is by using the 'VirtualId'. i don't see a way to keep the colorful name at the bubble and the username at the menu above user head without html code . Unless you edit the swf file
 
Upvote 0
Newbie Spellweaver
Joined
Aug 9, 2014
Messages
22
Reaction score
1
Once the Packet RoomUsersComposer is sent to the client, the only way to you to communicate with the avatar is by using the 'VirtualId'. i don't see a way to keep the colorful name at the bubble and the username at the menu above user head without html code . Unless you edit the swf file

Strange, I used habbo.swf from holorp and it did not work anyway.

@Jonteh Do you have any idea how to help me? :/
 
Last edited by a moderator:
Upvote 0
Newbie Spellweaver
Joined
Aug 9, 2014
Messages
22
Reaction score
1
He's right, only way once in a room is via Virtual ID. Have you tried using a more recent swf and using @Blue@ etc in the username?

I'll try, but this is pretty weird, that in HoloRP it even has colorful nicks like a rainbow o_O



 
Upvote 0
Junior Spellweaver
Joined
Jul 7, 2013
Messages
147
Reaction score
37
I did mention him here, he doesn't answer
I'm just inactive on the forum, that's why I never reply quickly.

Anyways, this is how I did the colored usernames on my RP:
Rafacasari - Colorful name in chat? - RaGEZONE Forums

Rafacasari - Colorful name in chat? - RaGEZONE Forums


And the SendNameColourPacket() & SendNamePacket() void is called via the OnChat() void in the RoomUser.cs file.
Rafacasari - Colorful name in chat? - RaGEZONE Forums


The result:
Rafacasari - Colorful name in chat? - RaGEZONE Forums

Hope this helps, that's all I can provide.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Aug 9, 2014
Messages
22
Reaction score
1
i'm just inactive on the forum, that's why i never reply quickly.
Anyways, this is how i did the colored usernames on my rp:

and the sendnamecolourpacket() & sendnamepacket() void is called via the onchat() void in the roomuser.cs file.

the result:
hope this helps, that's all i can provide.

omg!! Thank you!



delete this post please :love::8:
 
Last edited by a moderator:
Upvote 0
Joined
Apr 30, 2007
Messages
2,339
Reaction score
1,547
I'm just inactive on the forum, that's why I never reply quickly.
Anyways, this is how I did the colored usernames on my RP:

And the SendNameColourPacket() & SendNamePacket() void is called via the OnChat() void in the RoomUser.cs file.
The result:
Rafacasari - Colorful name in chat? - RaGEZONE Forums

Hope this helps, that's all I can provide.
Interesting, thank you for that.
 
Last edited by a moderator:
Upvote 0
Status
Not open for further replies.
Back
Top