[Help] Disable Alt + G

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
akavane
Posts: 7
Joined: Sat Apr 09, 2011 8:13 pm

[Help] Disable Alt + G

Post by akavane »

» Find Revision
L2J Revision Beta H5 4576:
L2JDP Revision Beta H5 7890:

Español
Me gustaria hacer lo siguiente que el comando Alt+G solo lo puedan usar los que tienen acceso 127 nadie mas. El otro que lo puede usar es el que tiene acceso 1 pero me gustaria retirarselo, intente desde la tabla de navicad colocando 0 en AllowAltG pero no lo desabilita.
Si alguien tiene una respuesta le estare agradecido. :D

English
Hello First apologies for my English is very bad.
I would like to do next Alt + G command can use only what they have access to 127 no one else. The other is that you can use to access the 1 but I would like to remove, try from the table by placing 0 in AllowAltG Navico but it disables.
If anyone has an answer I'll be grateful. :D
Image
hope
Posts: 1160
Joined: Thu Aug 30, 2007 5:17 pm

Re: [Help] Disable Alt + G

Post by hope »

Yes you are right your english is very bad
if I am getting you right you want only high level admins to use alt g then change permissions for them in your table
akavane
Posts: 7
Joined: Sat Apr 09, 2011 8:13 pm

Re: [Help] Disable Alt + G

Post by akavane »

Yes. only high level admins to use alt g.
I change the permissions on a table in Navicat but it disables the alt g

--------------------------------------------------------------------------------------
: Yes you are right your english is very bad xaxaxaxaxaxaxaxaxa Sorry :
--------------------------------------------------------------------------------------
Image
KadeL
Posts: 142
Joined: Sat Mar 15, 2008 11:04 pm
Location: Argentina
Contact:

Re: [Help] Disable Alt + G

Post by KadeL »

Esp:
Por ahora que yo sepa no esta limitado el uso de ALT+G para los administradores, GMs.
Pero lo que si puedes limitar es el uso de los comandos que traen los botones en el panel de ALT+G.

Eng:
So far, as I know not limited to use ALT+G for managers, GMs.
But what, if you can limit the use of commands that bring the buttons on the panel ALT+G.
Sorry everyone for my very bad English, I speak Spanish
hope
Posts: 1160
Joined: Thu Aug 30, 2007 5:17 pm

Re: [Help] Disable Alt + G

Post by hope »

you can do that all from the table done it myself once
Last edited by hope on Fri May 13, 2011 1:13 am, edited 1 time in total.
akavane
Posts: 7
Joined: Sat Apr 09, 2011 8:13 pm

Re: [Help] Disable Alt + G

Post by akavane »

From the tables it can no longer try
Image
hope
Posts: 1160
Joined: Thu Aug 30, 2007 5:17 pm

Re: [Help] Disable Alt + G

Post by hope »

works for me
akavane
Posts: 7
Joined: Sat Apr 09, 2011 8:13 pm

Re: [Help] Disable Alt + G

Post by akavane »

A colleague in another place gave me an idea of how it could do. Would have to add another condition, in this case would have to access level 127
Something like this but I can not make it work. Any idea how could I do to work well?

Code: Select all

  // prevent non gm or low level GMs from vieweing player stuff             if (!getClient().getActiveChar().isGM() || !getClient().getActiveChar().getAccessLevel().allowAltG() ||+                !getClient().getActiveChar().getAccessLevel() < 127)+            return;
Image
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: [Help] Disable Alt + G

Post by UnAfraid »

lol that's located in mysql table look at table admin_rights there is allowAltG collumn change it to require 127 access level
Image
akavane
Posts: 7
Joined: Sat Apr 09, 2011 8:13 pm

Re: [Help] Disable Alt + G

Post by akavane »

Eso fue lo que primero en intentar no funciona

That's what first try does not work
Image
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: [Help] Disable Alt + G

Post by MELERIX »

lol guys

alt + g is disabled by default if you are not GM.

take a look in java\com\l2jserver\gameserver\network\clientpackets\RequestGMCommand.java file at line 57 ;)
akavane
Posts: 7
Joined: Sat Apr 09, 2011 8:13 pm

Re: [Help] Disable Alt + G

Post by akavane »

Thanks for taking the time to answer but what I want is that you can use the 127 access only, no more nor accses 1,2,3,4,5,6,7.
The problem is that when you put on the table access_levels isGM alt + g 1 on a walk but it disables the AllowAltG box.

Thanks for answering :mrgreen:

I do not know much English so I use the translator. :( :(
Sorry
Image
akavane
Posts: 7
Joined: Sat Apr 09, 2011 8:13 pm

Re: [Help] Disable Alt + G

Post by akavane »

No response anybody has an idea?
Image
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: [Help] Disable Alt + G

Post by MELERIX »

I guess you have issues with "child groups" then.

open access_levels.sql and read the documentation there :P
User avatar
Flashy
Posts: 310
Joined: Mon Sep 29, 2008 11:49 am
Location: Germany

Re: [Help] Disable Alt + G

Post by Flashy »

check twice your access_level table.

or better: update access_level set `allowAltg` = 0

because access lvl 127 is special Admin and ignore all these access tables.
you don't need config any admin with level 127 in the access_level table or in the admin_command_access_rights.
Post Reply