Page 1 of 1

ChatAdmin

Posted: Thu Jan 28, 2010 11:28 am
by Notorious
Server Version= 3870
Datapack Version= 6967

I decided to try out the Chat Moderation mod.
Accesslevel 7 was already taken on my server, so I set it to 8 instead.
I changed in the admin_command_access_rights to give the access level 8 right to use the commands.
I set ChatAdmin to True in l2jmods configuration file.

I then chose a few players and gave them accesslevel 8.

Now, when they logged in, the title-color was yellow, and not blue! Name was still normal.

Is this supposed to happen, and if so, where can I change this so that these players have normal color?

In access_levels, both nameColor and titleColor is set to -1 - don't know why, but that was default. A quick fix would be to set the blue default colour here, but I don't know the hex for it.

Re: ChatAdmin

Posted: Thu Jan 28, 2010 11:41 am
by janiii
probably only a typo ^^

Code: Select all

Index: java/com/l2jserver/gameserver/datatables/AccessLevels.java===================================================================--- java/com/l2jserver/gameserver/datatables/AccessLevels.java	(revision 3799)+++ java/com/l2jserver/gameserver/datatables/AccessLevels.java	(working copy)@@ -138,7 +138,7 @@ 				{ 					try 					{-						titleColor = Integer.decode("0x77FFFF");+						titleColor = Integer.decode("0xFFFF77"); 					} 					catch (NumberFormatException nfe2) 					{

Re: ChatAdmin

Posted: Thu Jan 28, 2010 1:57 pm
by Notorious
Thanks Janiii!
Tested and works!
Commit?! :D

Re: ChatAdmin

Posted: Thu Jan 28, 2010 2:26 pm
by janiii
thanks for report and testing, commited in http://www.l2jserver.com/trac/changeset/3877 :)

Re: ChatAdmin

Posted: Thu Jan 28, 2010 2:45 pm
by _DS_
"-1" is the transparent color, meaning name/title color is not changed.