Page 1 of 1
Gm privileges.
Posted: Mon Jun 27, 2011 5:17 pm
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)?
Re: Gm privileges.
Posted: Mon Jun 27, 2011 5:22 pm
by MELERIX
read documentation inside access_levels.sql file
Re: Gm privileges.
Posted: Mon Jun 27, 2011 11:39 pm
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

Re: Gm privileges.
Posted: Tue Jun 28, 2011 12:27 pm
by Nyaran
First, set an accessLevel to char, then set privileges into admin_command_access_rights table
for example
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.
Re: Gm privileges.
Posted: Tue Jun 28, 2011 12:36 pm
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
Re: Gm privileges.
Posted: Tue Jun 28, 2011 1:09 pm
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

Yes, of course. big thanks!
Re: Gm privileges.
Posted: Tue Jun 28, 2011 5:17 pm
by Opiam
Code: Select all
used to be a lot easier was use accesslevel 100 80 60