How to set administrator privileges

How To Set Administrator Privileges for L2J

This tutorial assume that you had properly set up your L2J loginserver,gameserver, and the L2J database. If you require help in setting up your server, please refer to the "Setup Server" and "Configure Server" section of the L2J wiki.

Let's Get Started:

1. Connect to your L2J database using your preferred database GUI (graphical user interface).

2. Select TABLES from your L2J database.

3. Select the Access_Levels table.

This is the default ACCESS_LEVELS table setting.

Picture Link

You will need to determine how many access level(s) of GM you want to have on your server. In this tutorial, I will use all 6 levels and modified my Access_Levels tables to reflect that change. Please compare the default ACCESS_LEVELS table against the new modified table in the picture.

Picture Link

In the above picture, you see that GM with Access Level 1 can access Lvl 2, 3, 4, 5, 6, and 7 commands (and lvl 1 command(s)). GM with Access Level 4 can perform lvl 5, 6, and 7 commands (and lvl 4 command(s)) but not higher level commands. The childaccess column determines which access level it had been assigned.

Access_Levels column definition:

Valid value are = 1 (ON), 0 (OFF)

accesslevel = The numeric level assigned to each GM level (1 being the highest).

name = Title of the GM type (you may change this to whatever you like).

nameColor = Color of GM Name in game (you may change this to whatever color you prefer).

titleColor = Color of the GM Title in game (you may change this to whatever color you prefer).

childAccess = List the command access tree this GM is able to perform.

isGM = 1 is GM, 0 is NOT GM.

allowPeaceAttack = This GM can attack in Peace Zone.

allowFixedRes = Do not change (leave as default).

allowTransaction = This GM can perform trade transaction with players or other GM.

allowAltG = This GM can use the ALT+G command console.

giveDamage = This GM can damage/attack monsters/players.

takeAggro = This GM can be pre-emptively attacked by monsters within their attack radius.

gainEXP = This GM can acquire Experience and SkillPoints by killing monsters.

Setting Character Access_Levels:

1. Select your L2J database.

2. Select your Characters table.

3. Scroll and locate the AccessLevel column from the Characters table.

4. Assign the GM access level you wish this character to have. (Remember the Access_Level table from above)

This is the Characters table with the AccessLevel column highlighted.

Picture Link

Setting up Admin Command Access Rights:

1. Select your L2J database.

2. Select your Admin_Command_Access_Rights table.

3. Change/modify the commands to the Access_Levels matching your GM type/function.

The picture below show some commmand(s) set to level 4. This means that any GM with access level 4 or higher can access the command(s). Any GM with access level 5 or lower can not access the command(s). Please refer to the Access_Levels table for privilege setting and you'll see that GM with access level 4 can only access command(s) set to level 5,6,or 7 (including 4).

Picture Link

Final Step:

1. If your server is already running and you don't wish to restart it, using a GM character type "//reload access" to reload the new access privileges.

2. If you had not start your server yet, start it up normally and the new access privileges will be loaded.

3. Sign into your new GM and verify the changes are in effect.

End of Tutorial