• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

How to edit gmlevels

Arius

Exalted Member
Hey just as topic says. I want to edit gmlevel. I just want to move commands reset spells to 4th gmlevel. I can't find out how to do it. I think it has something with rbac but I can't really find which things I have to change.
 

Jafferwaffer

Exalted Member
Hey there! Yes you are correct any GM level privileges are done through rbac
In the auth db you will find a table called
Code:
rbac_default_permissions
This will include secID and permissionId. The secID is the different GM levels while the permissionId represents that GMlevel in the
Code:
rbac_linked_permissions
table.
Take a look at the rbac_permissions table it has all the permissions and their Ids.
You must insert into the linked permissions table a permissionId in the ID column and a permission ID in the linkedId column.

Edit: A quick way to change which level account has which privileges is run an SQL query like
Code:
 UPDATE rbac_linked_permissions
SET id=INSERT_GM_PERMISSION_ID_HERE //The rank which you want to push the privileges to
WHERE id=INSERT_OLD_PERMISSION_ID; //The rank which you want to take privileges from
The IDs i refer to here are the permissionID from default_permissions table.
This will overwrite the table so make sure you have the right IDs
 
Last edited:
Top