PDA

View Full Version : GM Commands


VenomHUN
28.02.2005, 02:26
Ehm...i have a MAJOR problem. I set up a server in a local ISP, it runs quite fine, without lag but i have a problem not with the software,but with the user :) :)

Somehow i found the GM Command list, but without any explanation. The way the L2Server gives feedback is not quite accurate..
like i cant give bad players karma. the "//setkarma" works only on me and i tried everything..

Do anyone will be so kind and share a command list and how to with me and with all of the community?

Thanks!

Sauron
28.02.2005, 02:32
u can't give karma to other players with that command...you have to use l2admin or edit db.

robran
28.02.2005, 22:50
hi! what the command for make item and command for edit level up some player?

ty

doemondo
01.03.2005, 03:54
//summon item_name
and
//setparam level 75
(I heard that worked, i usually just use //setparam exp 100000 or something)

Osito2Dancer
09.03.2005, 17:11
//setparam level 75 works great to set levels, but i prefer //setparam exp number, i got it kinda figured out what numbers to use to which level, so, in case of "fortuite death by GM", i can return the exp exact to the last .01%.

Oso

PD: A question: Is it possible to script a "setkarma" command for players as a target, rather than itself?

robran
09.03.2005, 20:23
how to use a command to teleport some player near to GM and command to teleport party?

edit: why if client digit /gmlist , server send no are gm online, how i fix this?

TY

Nya-o
10.03.2005, 00:52
to see a certain GM in that list, that gm must add him/her-self in that list by typing //gmliston.

Osito2Dancer
11.03.2005, 22:32
To teleport a party, i dont know another way rather than adding yourself to that party, and do a //partytel nº to some bookmark you saved earlier (bookmarks get added by putting //addbookmark nº, that way, whenever you do //telbookmark nº, you get to that exact point. Useful to find some neat places (top of aden castle. Top like in "King Kong" height off the ground)).

To teleport someone to your position, just do //recall charname.

Oso

PD: caso que você não compreendeu meu ingles:

Para teleport um party, eu não sei uma outra maneira melhor que uma adição de a esse party, e faço a //partytel nº a algum bookmark que você conservou mais cedo (os bookmarks começam adicionados pôr //addbookmark nº, que a maneira, sempre que você //telbookmark nº, você começa a esse ponto exato. Útil encontrar alguns lugares puros (alto do castelo de aden. Cubra como do "na altura rei Kong" fora da terra)).

Para teleport alguém a sua posição, apenas //recall charname.

Oso

robran
15.03.2005, 19:03
valeu ^^

pipislav
21.05.2005, 14:10
what is command to add skill ?

Sundh
21.05.2005, 14:43
--> BuilderCmdAlias.txt

EntroX
21.05.2005, 20:27
what is command to add skill ?

//setskill <skill-id> <level>
( you must have targeted the character )

Next time try searching....

EntroX

paul
22.05.2005, 05:53
Moved as this isn't a mod or a mod question

arthurf
25.05.2005, 19:59
stoplogin does not work, anyone know how to fix it?

paul
25.05.2005, 20:10
use l2admin?

arthurf
27.05.2005, 23:22
All others comands works included stopsay. Anyone know how to fix stoplogin?

rodier
29.05.2005, 03:38
Hmm is there something like L2admin but for PHP?
Or its any chance to get ASP working with Apache?

arthurf
12.06.2005, 16:36
When you type //gmon you go to message refusal mode, anyone know the command to set the refusal off??

paul
12.06.2005, 17:12
//whisper on

BiGBoY
13.06.2005, 08:23
Hmm is there something like L2admin but for PHP?
Or its any chance to get ASP working with Apache?

I got my kick/ban page done with php (All credits to friend of mine Leibniz - Luvya F@G to made that)

U need to open socket on port 2009 (cached) and write commands to that port.

Here is sample for open socket on mentioned port:
[php:1:1717e27cbf]}
function SendCommand($str)
{
global $CONFIG;

$fp = fsockopen($CONFIG['dbaddress'], 2009, $errno, $errstr);
if(!$fp)
{
echoLn("Error: $errstr ($errno)");
return(0);
}
fwrite($fp, $str);
stream_set_timeout($fp, 2);
$ret = fgets($fp,8);
fclose($fp);
return($ret);
}[/php:1:1717e27cbf]

Kick code:
[php:1:1717e27cbf]}

if(strstr($szAction,"<kick>"))
{
$szCmd = ("5" . "\t" . $charName . "\t" . "\r\n");
if(SendCommand($szCmd)==1)
{
$str = "CHAR KICKED: UID = $userAccId; CHAR NAME: $charName";
echoLn($str);
//writeLog($str);
}
else
{
echoLn("Kick Error? =[");
}[/php:1:1717e27cbf]

Ban code:
[php:1:1717e27cbf]
if(strstr($szAction,"<ban>"))
{
$dbconnect = mssql_connect ($CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
mssql_select_db ($CONFIG['dbdbname'], $dbconnect) or die(print("error"));
$query = "UPDATE User_Account SET block_flag=1, block_flag2=1 WHERE uid=".$userAccId;
$result = mssql_query($query);
if($result)
{
$str = "ACC BANNED: UID = $userAccId; CHAR NAME = $charName;";
echoLn($str);
writeLog($str);
}
else echoLn("ACC (UID = $userAccId) NOT BANNED!!");
}[/php:1:1717e27cbf]

toolpunk
13.06.2005, 13:10
cool...

but i have a question anyway :D :D :D
is there an admin command 2 save the entire server or at least parts of it...
yeah im talkin about kinda backup... if yes...
MWUAHAHAHAHA!!! :twisted: :twisted: :twisted:

EntroX
13.06.2005, 14:07
Erm....just make the backup on the database itself -.- it already has been talked in another thread.

Yours.
EntroX

BiGBoY
13.06.2005, 15:53
I think he ment to "flush" cached data to sql but am not sure. I never understood toolpunk well anyway :D

But if u mean sql backup why bother with gm command? All u need to do is to set database maintenence scheduler and set the time interval for backups.
All is there mate just need to enable it.

EntroX
13.06.2005, 16:05
But if u mean sql backup why bother with gm command? All u need to do is to set database maintenence scheduler and set the time interval for backups.
All is there mate just need to enable it.

Thats exactly what i ment, anyways, the data in the cache is updated in the db very often i think, anyone could confirm that?

Yours.
EntroX

toolpunk
13.06.2005, 16:13
Erm....just make the backup on the database itself -.- it already has been talked in another thread.

Yours.
EntroX

would official c3 databases help the project? :D :D :D
im serious...
mb i can get a gm acc

Nya-o
13.06.2005, 16:21
and you're asking?

EntroX
13.06.2005, 16:21
Erm...lol, i dont think that would help at all, but btw....what did u want, restore or backup the database eh?

Yours.
Entrox

toolpunk
13.06.2005, 16:32
i would get a gm acc at ncsoft make a complete backup and get it...
but honestly i dun think that i can specify a destination for the bak so it would b hard 2 dload it...
mb not that a good idea

EntroX
13.06.2005, 16:39
i would get a gm acc at ncsoft make a complete backup and get it...
but honestly i dun think that i can specify a destination for the bak so it would b hard 2 dload it...
mb not that a good idea

Erm.....ok....if you..ehh....say so.....

<starts to think toolpunk is loosing his mind>

Yours.
EntroX

toolpunk
13.06.2005, 16:42
nope i was serious...
theres about a 30% chance of gettin 1

edit: just ask me on msn if u wanna know more about the shops stuff and so on...
i can talk for hours :D :D :D and a lot of trash!

EntroX
13.06.2005, 16:49
Sure thing, that may come handy, lol.

Yours.
EntroX

bubzikas
24.07.2005, 13:47
is there any GM command to reset Players inventory( to make it clear of items)?

Fulminus
05.08.2005, 18:46
I'm reviving this old subject for a question which I know I should check first on my own and I don't :P But it may be a hint to someone...so here it goes:
If I remember correctly, //setparam karma 123 also worked and it did the same as //setkarma
Someone said that //setkarma works only on one's self. Would //setparam karma <number> work on others (targetted chars)?
thanks

dorudragomir
06.08.2005, 06:35
Hey if anyone needs a description of the main comands for the GM, i can help...but i think this commands are very easy to understand!!!Everyone who has a l2 server could figure this up.Send Me a message if you want the description.

dayne411
25.01.2006, 16:17
is there a command to delete a players skills (all at once) also is there a way to summon a mob with a special loot table for events and such?

Lord_Neo
25.01.2006, 16:35
is there a command to delete a players skills (all at once) also is there a way to summon a mob with a special loot table for events and such?

//reset_skill , to clear skills i think.

dayne411
25.01.2006, 16:41
awesome thanks, i got another one tho is there a command to set your own attackspeed,evasion, etc with weapons on. ive used the comman setparam base_attack_speed but htats only when you unequiped.