y453bh Posted April 17, 2020 Share Posted April 17, 2020 (edited) Hello, how can each player have their own custom color in chat? (I don't mean the nick color, but a personalized one), hope you can help me, thanks! PD: If it is possible to save it in the database, that way there is no need to change it every time I join the server Edited April 17, 2020 by y453bh Link to comment
Spakye Posted April 17, 2020 Share Posted April 17, 2020 Hi, you could use a command handler so player can writte an hex color code, save it with setAccountData then use the event onPlayerChat to get the color with getAccountData and apply it with outputChatBox. its basic but should work. Link to comment
y453bh Posted April 17, 2020 Author Share Posted April 17, 2020 15 minutes ago, Spakye said: Hi, you could use a command handler so player can writte an hex color code, save it with setAccountData then use the event onPlayerChat to get the color with getAccountData and apply it with outputChatBox. its basic but should work. Can you help me with the code please ? Link to comment
Moderators IIYAMA Posted April 17, 2020 Moderators Share Posted April 17, 2020 Locked This is a scripting request, which may not look like one, but this user has already made 2 scripting requests in this section and doesn't know Lua. And he is exceedingly bumping on all of his topics. 1 Link to comment
Recommended Posts