ChatAdmin

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

ChatAdmin

Post 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.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: ChatAdmin

Post 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) 					{
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: ChatAdmin

Post by Notorious »

Thanks Janiii!
Tested and works!
Commit?! :D
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: ChatAdmin

Post by janiii »

thanks for report and testing, commited in http://www.l2jserver.com/trac/changeset/3877 :)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: ChatAdmin

Post by _DS_ »

"-1" is the transparent color, meaning name/title color is not changed.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply