Gm privileges.

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
Opiam
Posts: 181
Joined: Thu Jun 02, 2011 12:26 am
Location: Europe, Ukraine

Gm privileges.

Post by Opiam »

How I can set game master privileges for certain character so that he could only kick, jail, gm chat, ban (no admin acc)?
Image
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Gm privileges.

Post by MELERIX »

read documentation inside access_levels.sql file
User avatar
Opiam
Posts: 181
Joined: Thu Jun 02, 2011 12:26 am
Location: Europe, Ukraine

Re: Gm privileges.

Post by Opiam »

I can't understand how it's working :(

I set true everywhere and when using gm menu server asked to me:
Are you sure you want execute command admin7
lower access level - higher privileges? or what..

for example... what commands can use gm with accesslevel 5?
and what sense of true or false in commands access rights...
IF access 1 jail = true and unjail = false works - it works. Question: Why then these variables at 1 access if they worked in adminmenu?

Pleze help me set to some GM such previlegues: jail, unjail, leleport, banchat... becouse I watched for 5 accesselvel - it's can't use banchat commands :(
2,3,4 has the same privileges :(
Image
User avatar
Nyaran
Posts: 254
Joined: Mon Apr 11, 2011 11:13 am
Location: Madrid, Spain
Contact:

Re: Gm privileges.

Post by Nyaran »

First, set an accessLevel to char, then set privileges into admin_command_access_rights table

for example
Image

For allow to General GM to kick players set in admin_command_access_rights
adminCommand: 'admin_kick'
accessLevels: 5

Pd. With this, Admin, Head GM, Event GM and Support GM can kick, because is in childAccess.
My English is bad, if you don't understand me, call Plim and she translates it xD
Image
Image
User avatar
AntV
Posts: 177
Joined: Mon May 10, 2010 10:46 pm

Re: Gm privileges.

Post by AntV »

I started writing this before Nyarans Post, but I think it might still explain a few more things

There are 2 tables you should "study"
First one is the "access_levels"
In there you set the "access_level" and the "childAccess", so that Higher rank can also do what the lower can. For example id you want Admins, GMs and Event masters, you can set Admin as access_level 1, GM as 2 and Event Masters as 3. If you do so you must also set the "childAccess" of Admins to 2;3 and the GMs 3 (of course you can set a few other things as well in there, but I believe they are self explanatory).
The second one is the "admin_comands_access_rights"
admin_command is the command you are editing
accessLevels is the access Level a GM must have to use this command. This means either have it as an access_level or having that rank as a childAccess
In my previous example, if you set it to 3, everyone will be able to use it (Event Masters, GMs and Admins)
If you set it to 1, only the Admins will be able to use it.
The confirmDlg means that every time a GM tries to call this command, the annoying pop-up will be displayed.

If a character doesn't have access to a command, he cannot use it from the Admin menu as well.

I hope I explained everything
User avatar
Opiam
Posts: 181
Joined: Thu Jun 02, 2011 12:26 am
Location: Europe, Ukraine

Re: Gm privileges.

Post by Opiam »

AntV wrote:I hope I explained everything
Nyaran wrote:First, set an accessLevel to char, then set privileges into admin_command_access_rights table
8) Yes, of course. big thanks!
Image
User avatar
Opiam
Posts: 181
Joined: Thu Jun 02, 2011 12:26 am
Location: Europe, Ukraine

Re: Gm privileges.

Post by Opiam »

Code: Select all

used to be a lot easier was use accesslevel 100 80 60
Image
Post Reply