GM commands for accesslevel 0

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
jmaniac
Posts: 7
Joined: Tue Apr 03, 2007 3:29 pm

GM commands for accesslevel 0

Post by jmaniac »

I want make available some GM commands for regular users... how I can do this?
I try to make Admin group in accesss_level table with accessLevel 0, and set 0 in admin_command_access_rights table... but still have regular users without GM commands :(((
I miss something or its not possible?
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: GM commands for accesslevel 0

Post by MELERIX »

why you don't use...

EverybodyHasAdminRights = True

?
jmaniac
Posts: 7
Joined: Tue Apr 03, 2007 3:29 pm

Re: GM commands for accesslevel 0

Post by jmaniac »

because I dont want give rigths for All commands....

I need way to make available some GM commands for all users (but not all GM commands)
So its impossible? (((
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: GM commands for accesslevel 0

Post by janiii »

set the group to greater than 0 and assign commands to the designed group. you can check if you could create characters with the given admin group.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
jmaniac
Posts: 7
Joined: Tue Apr 03, 2007 3:29 pm

Re: GM commands for accesslevel 0

Post by jmaniac »

If I set the group to greater than 0(12 for example) and assign commands, its mean that I must manual set to each character accesslevel 12.... and do this for each newest character too worst.... :(

and why L2j remove command-privileges.properties like in T1.... I remember it was very useful... with this I can set accesslevel that I want for all users, and set gm commands that I want...
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: GM commands for accesslevel 0

Post by janiii »

jmaniac wrote:If I set the group to greater than 0(12 for example) and assign commands, its mean that I must manual set to each character accesslevel 12.... and do this for each newest character too worst.... :(

and why L2j remove command-privileges.properties like in T1.... I remember it was very useful... with this I can set accesslevel that I want for all users, and set gm commands that I want...
you can do the same and more in the new sql system for admin commands.

assign all existing characters an accesslevel (except given admin chars):

Code: Select all

UPDATE characters SET accesslevel = 12 WHERE char_name NOT IN ('myAdminCharName', 'hisAdminCharName');
if you want to assign newly created characters a higher access level, check AccesLevels.java class

Code: Select all

/** Reserved user access level<br> */public static final int _userAccessLevelNum = 0;
but still. if you want players to use admin commands, you have to set them isGm true and that would ruin the game, because gm have special treatment, not like players.

instead of assigning admin commands to players (really a bad idea!), you can create voiced commands for them with same functionality.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
jmaniac
Posts: 7
Joined: Tue Apr 03, 2007 3:29 pm

Re: GM commands for accesslevel 0

Post by jmaniac »

_userAccessLevelNum = 0
its cant help because:

Code: Select all

 public static L2AccessLevel _userAccessLevel = new L2AccessLevel(_userAccessLevelNum, "User", Integer.decode("0xFFFFFF"), Integer.decode("0xFFFFFF"), null, false, false, false, true, false, true, true, true); 
with changed userAccessLevelNum I just get newest characters with new access level, but with same rights... admin group not give effect because userAccess have something self access group(like Master Access) how you can see... so its not solve problem...
... and if I try make childAccess its have no effect too....
Last edited by jmaniac on Mon Jan 11, 2010 8:44 am, edited 1 time in total.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: GM commands for accesslevel 0

Post by janiii »

then remove also this condition from AccessLevels

Code: Select all

				if (accessLevel == _userAccessLevelNum)				{					_log.warning("AccessLevels: Access level with name " + name + " is using reserved user access level "							+ _userAccessLevelNum + ". Ignoring it!");					continue;				}
still, giving admin command rights to players is not a good idea. l2j was not designed for it. you can just enable all admin rights or nothing, or the player has to be a gm with more than only admin commands. if you want to something else, you have probably to change more code than only 1 line.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
jmaniac
Posts: 7
Joined: Tue Apr 03, 2007 3:29 pm

Re: GM commands for accesslevel 0

Post by jmaniac »

Ohh my... I thinked that this only for log :D
thanks for answer... I try this...

P.S.
yep, giving admin command rights to players is not a good idea.... but I want run a server just for fun, so I need to give GM to all players, but without some dangerous commands like shutdown XD
jmaniac
Posts: 7
Joined: Tue Apr 03, 2007 3:29 pm

Re: GM commands for accesslevel 0

Post by jmaniac »

if (accessLevel == _userAccessLevelNum)
{
_log.warning("AccessLevels: Access level with name " + name + " is using reserved user access level "
+ _userAccessLevelNum + ". Ignoring it!");
continue;
}
remove.....(set _userAccessLevelNum =1) its not help. players still dont have rights... :(
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: GM commands for accesslevel 0

Post by denser »

choose what exact commands you want to assign to others and create in voice(as janiii told) like PowerUser.java
and place it in handlers(dont forget to register in MasterHandler.java)

then - copy commands from admin section handlers and just correct in eclipse if any errors )
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
jmaniac
Posts: 7
Joined: Tue Apr 03, 2007 3:29 pm

Re: GM commands for accesslevel 0

Post by jmaniac »

Oh.... its too hard for me, Im not java coder :? but I try......
Post Reply