Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.04.2005, 04:48   #1
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default [Notes] L2ATL funcs

下面的“管理员名称”指L2admin登陆帐� ��

public const string ADD_ITEM = "12\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\n";
格式:12, charName, warehouse, itemType, itemAmount, enchant, eroded, bless, ident, wished, 管理员名称, 空字符串


public const string ADD_ITEM2 = "55\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\n";
格式: 55, ownerId, warehouse, itemType, amount, enchant, eroded, bless, ident, wished, , 管理员名称, 空字符串


public const string ADD_SKILL = "6\t{0}\t{1}\t{2}\t{3}\n";
格式:6, CharName, SkillLevel, 管理员名称, 空字符串


public const string BAN_CHAR = "39\t{0}\t{1}\t{2}\t{3}\n";
格式:39, charName, banHour, 管理员名称, 空字符串


public const string CHANGE_CHARACTER_NAME = "4\t{0}\t{1}\t{2}\n";
格式:4, oldCharName, newCharName, 管理员名称, 空字符串

public const string CHANGE_PLEDGE_LEVEL = "46\t{0}\t{1}\t{2}\t{3}\n";
格式:46, pledgeName, pledgeLevel, 管理员名称, 空字符串


public const string CHECK_CHARACTER = "1\t{0}\t{1}\n";
格式:1, charName, 管理员名称, 空字符串


public const string COMMENT_DELETE = "33\t{0}\t{1}\t{2}\t{3}\n";
public const string COMMENT_WRITE = "32\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string COPY_CHAR = "43\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string CREATE_PET = "44\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\n";
格式:44, charName, petCollarClassId, npcClassId, exp, level, hp, mp, meal, 管理员名称, 空字符串


public const string CREATE_PLEDGE = "47\t{0}\t{1}\t{2}\t{3}\n";
格式:47, pledgeName, ownerCharName, 管理员名称, 空字符串


public const string DEL_BOOKMARK = "24\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_ITEM = "13\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
格式:13, charName, warehouse, itemId, itemAmount, 管理员帐号, 空字符串

public const string DEL_ITEM2 = "54\t{0}\t{1}\t{2}\n";
格式:54, itemID, 管理员帐号, 空字符串


public const string DEL_PLEDGECREST = "25\t{0}\t{1}\t{2}\n";
public const string DEL_QUEST = "11\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_SKILL = "7\t{0}\t{1}\t{2}\n";
public const string DELETE_CHAR = "34\t{0}\t{1}\t{2}\n";
public const string DISABLE_CHARACTER = "20\t{0}\t{1}\t{2}\t{3}\n";
public const string ENABLE_CHARACTER = "21\t{0}\t{1}\t{2}\t{3}\n";
public const string GET_CHARACTERS = "22\t{0}\t{1}\t{2}\n";
public const string KICK_CHARACTER = "5\t{0}\t{1}\n";
格式:5, charName, 管理员帐号, 空字符串


public const string MAN_ANNOUNCE = "50\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MAN_INTANNOUNCE = "51\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string MOD_CHAR = "15\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOD_CHAR_PLEDGE = "17\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_CHAR2 = "16\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOD_ITEM = "14\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\t{11}\n";
public const string MOD_PLEDGENAME = "26\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_SKILL = "8\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_WEEKPLAY = "52\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MODIFY_CHAR = "29\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOVE_CHAR = "31\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MOVE_ITEM = "30\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\n";
public const string MOVE_ITEM2 = "40\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string NO_PACKET = "0\t{0}\t{1}\n";
public const string PLEDGE_CHANGE_OWNER = "37\t{0}\t{1}\t{2}\t{3}\n";
public const string PLEDGE_DELETE = "38\t{0}\t{1}\t{2}\n";
public const string PLEDGE_OUST = "36\t{0}\t{1}\t{2}\n";
public const string PRINT_ALL_ACCOUNT_DATA = "41\t{0}\n";
public const string PRINT_ALL_WAREHOUSE_DATA = "42\t{0}\n";
public const string PUNISH_CHARACTER = "18\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string RESTORE_CHAR = "35\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string RESTORE_CHAR2 = "49\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string SEIZE_ITEM = "28\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string SEIZE_ITEM2 = "53\t{0}\t{1}\t{2}\t{3}\n";
public const string SEND_HOME = "45\t{0}\t{1}\t{2}\n";
public const string SET_BOOKMARK = "23\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\n" ;
public const string SET_BUILDER_ACCOUNT = "19\t{0}\t{1}\t{2}\t{3}\n";
public const string SET_BUILDER_CHARACTER = "3\t{0}\t{1}\t{2}\n";
public const string SET_CHARACTER_LOCATION = "2\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\n";
格式:2, charName, worldID, xLoc, yLoc, zLoc, 管理员帐号, 空字符串


public const string SET_ONETIMEQUEST = "9\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string SET_PROHIBITED = "27\t{0}\t{1}\t{2}\t{3}\n";
public const string SET_QUEST = "10\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string SET_SKILL_ALL = "48\t{0}\t{1}\t{2}\n";
Digital is offline  
Old 05.04.2005, 04:50   #2
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

公布所有的 L2Atl命令,

L2ATL 能实现所有 L2admin的即时在线管理功能 .....也能实现在线商店功能
不需要详细配置 L2ATL 的注册表里相关数据,只需要 Send方法使用正确就可以了

L2Atl对象有 Send方法 Send('cacheD地址:2009端口', 命令, 结果)

返回 1 = 成功
返回 3 = 不成功
返回 7 = 角色在线



命令如下:

public const string ADD_ITEM = "12\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\n";
public const string ADD_ITEM2 = "55\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\n";
public const string ADD_SKILL = "6\t{0}\t{1}\t{2}\t{3}\n";
public const string BAN_CHAR = "39\t{0}\t{1}\t{2}\t{3}\n";
public const string CHANGE_CHARACTER_NAME = "4\t{0}\t{1}\t{2}\n";
public const string CHANGE_PLEDGE_LEVEL = "46\t{0}\t{1}\t{2}\t{3}\n";
public const string CHECK_CHARACTER = "1\t{0}\t{1}\n";
public const string COMMENT_DELETE = "33\t{0}\t{1}\t{2}\t{3}\n";
public const string COMMENT_WRITE = "32\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string COPY_CHAR = "43\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string CREATE_PET = "44\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\n";
public const string CREATE_PLEDGE = "47\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_BOOKMARK = "24\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_ITEM = "13\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string DEL_ITEM2 = "54\t{0}\t{1}\t{2}\n";
public const string DEL_PLEDGECREST = "25\t{0}\t{1}\t{2}\n";
public const string DEL_QUEST = "11\t{0}\t{1}\t{2}\t{3}\n";
public const string DEL_SKILL = "7\t{0}\t{1}\t{2}\n";
public const string DELETE_CHAR = "34\t{0}\t{1}\t{2}\n";
public const string DISABLE_CHARACTER = "20\t{0}\t{1}\t{2}\t{3}\n";
public const string ENABLE_CHARACTER = "21\t{0}\t{1}\t{2}\t{3}\n";
public const string GET_CHARACTERS = "22\t{0}\t{1}\t{2}\n";
public const string KICK_CHARACTER = "5\t{0}\t{1}\n";
public const string MAN_ANNOUNCE = "50\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MAN_INTANNOUNCE = "51\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string MOD_CHAR = "15\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOD_CHAR_PLEDGE = "17\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_CHAR2 = "16\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOD_ITEM = "14\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t {9}\t{10}\t{11}\n";
public const string MOD_PLEDGENAME = "26\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_SKILL = "8\t{0}\t{1}\t{2}\t{3}\n";
public const string MOD_WEEKPLAY = "52\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MODIFY_CHAR = "29\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\n ";
public const string MOVE_CHAR = "31\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string MOVE_ITEM = "30\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\n";
public const string MOVE_ITEM2 = "40\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string NO_PACKET = "0\t{0}\t{1}\n";
public const string PLEDGE_CHANGE_OWNER = "37\t{0}\t{1}\t{2}\t{3}\n";
public const string PLEDGE_DELETE = "38\t{0}\t{1}\t{2}\n";
public const string PLEDGE_OUST = "36\t{0}\t{1}\t{2}\n";
public const string PRINT_ALL_ACCOUNT_DATA = "41\t{0}\n";
public const string PRINT_ALL_WAREHOUSE_DATA = "42\t{0}\n";
public const string PUNISH_CHARACTER = "18\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string RESTORE_CHAR = "35\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string RESTORE_CHAR2 = "49\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string SEIZE_ITEM = "28\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\n";
public const string SEIZE_ITEM2 = "53\t{0}\t{1}\t{2}\t{3}\n";
public const string SEND_HOME = "45\t{0}\t{1}\t{2}\n";
public const string SET_BOOKMARK = "23\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\n" ;
public const string SET_BUILDER_ACCOUNT = "19\t{0}\t{1}\t{2}\t{3}\n";
public const string SET_BUILDER_CHARACTER = "3\t{0}\t{1}\t{2}\n";
public const string SET_CHARACTER_LOCATION = "2\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\n";
public const string SET_ONETIMEQUEST = "9\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string SET_PROHIBITED = "27\t{0}\t{1}\t{2}\t{3}\n";
public const string SET_QUEST = "10\t{0}\t{1}\t{2}\t{3}\t{4}\n";
public const string SET_SKILL_ALL = "48\t{0}\t{1}\t{2}\n";






ASP使用例子:


sub testSocket
dim objSock
dim nRet
dim strSend, strRecv



response.write "testm"
'功能:踢人
'返回:01 = 成功
' strSend = "5 kaka terry39" & vbCrLf



'功能:增加东西
'返回:07 = 角色在线 01 = 成功
'l2 charName, warehouse, itemType, itemAmount, enchant, eroded, bless, ident, wished, this.m_adminId, ""
strSend = "12 GM01 1 4189 1 0 0 1 0 1 terry39 " & vbCrLf




set objSock = server.CreateObject ("L2ATL.Socket")
nRet = objSock.Send("IP:Port", strSend, strRecv)



response.write "test"
response.write "GetIntServer(0):" & GetIntServer(0)
response.write "
strRecv:" & strRecv
response.write "
strSend:" & strSend



set objSock = nothing
end sub
Digital is offline  
Old 05.04.2005, 19:43   #3
reijii
Архивный участник
 
Join Date: Mar 2005
Posts: 39
Default

anybody know how to use it?
reijii is offline  
Old 06.04.2005, 21:17   #4
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

yeah it would be interesting if we knew how to use those functions. I want personally to create a php administration page but don't know how to use the l2atl
astranger is offline  
Old 25.04.2005, 05:16   #5
reijii
Архивный участник
 
Join Date: Mar 2005
Posts: 39
Default

[php:1:ca1fc9b6ac]
$fp = fsockopen("xx.xx.xx.xx", 2009, $errno, $errstr);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
$out = "5"."\t".$char_name."\t"."\r\n";
fwrite($fp, $out);
stream_set_timeout($fp, 2);
$answ = fgets($fp,8);
if ($answ==1) {
print"Character is successfully kicked.";
} else {
print"Error.";
}
fclose($fp);
} [/php:1:ca1fc9b6ac]
reijii is offline  
Old 25.04.2005, 08:13   #6
JC.Paradox
Архивный участник
 
Join Date: Apr 2005
Posts: 17
Default

i don't understand.... i've got source code of l2admin... why i need this?
JC.Paradox is offline  
Old 25.04.2005, 09:04   #7
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Maybe so people can see how to make it tick? It's pretty interesting, imo.
flakka is offline  
Old 25.04.2005, 10:01   #8
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

well.. i dun really wanna talk much abt this...
BUT it's an impt issue... so i'll have to say it regardless u guys like it or not

reijii's script is pretty useful and also dangerous.
it actually demostrates how good this atl could be used efficient.
but it also means hackers could use it as well if it's not properly secured.

well.. i wun go on saying HOW to do it.. but this is something for those who are playing with this and didnt know how their players are doing things they aint suppose to do

that's all
Digital is offline  
Old 25.04.2005, 16:30   #9
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

i dun really get what this is, codes to use with l2admin server tool?
and to send them via php? o.O (public???)

<<--confused
Riane is offline  
Old 26.04.2005, 10:37   #10
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

well here's a good example
http://www.chendai.com/download/read...D8%D6%D0%D0%C4
for getting stuff done in php

the main point here is...
atl is a dll, which EVEN l2admin uses
(for those who does know, DLL = dynamic linked library)
so in short terms, we could use atl for our own programs even
which apparently l2admin does suck alot
and most ppl would rather make their own version of it.
Digital is offline  
Old 26.04.2005, 13:49   #11
diavolos
Архивный участник
 
Join Date: Feb 2005
Posts: 8
Default

damn can't understand anything from that link, anyone can translate it please ?
diavolos is offline  
Old 26.04.2005, 14:11   #12
diavolos
Архивный участник
 
Join Date: Feb 2005
Posts: 8
Default

Also everything is encrypted there..
diavolos is offline  
Old 26.04.2005, 18:01   #13
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

wow, thx

so this should solve e.g. the problem with the adding of adena in php, banning people, all over an admin panel.

if i figure this thing out maybe im gonna make a full admin panel in php, we'll see

so.. to use this tool, you gotta connect to the server on port 2006?
or is it an example, reji?
and also, how to make it e.g. password protected? (blocking outter traffic sux )
Riane is offline  
Old 26.04.2005, 19:58   #14
reijii
Архивный участник
 
Join Date: Mar 2005
Posts: 39
Default

2009... i allow connections to that port only from my web-server.
I yet have not download this tool
reijii is offline  
Old 04.05.2005, 04:30   #15
PhDoc
Архивный участник
 
Join Date: May 2005
Posts: 30
Default

Quote:
public const string ADD_ITEM = "12\t{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{ 8}\t{9}\t{10}\n";
What anybody know about it?
PhDoc is offline  
Old 04.05.2005, 16:25   #16
reijii
Архивный участник
 
Join Date: Mar 2005
Posts: 39
Default

it's works without this

have problems with it?
reijii is offline  
Old 04.05.2005, 19:15   #17
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

Quote:
Originally Posted by reijii
it's works without this

have problems with it?
man can you please give me an example on php on how to use that ?
astranger is offline  
Old 05.05.2005, 04:19   #18
PhDoc
Архивный участник
 
Join Date: May 2005
Posts: 30
Default

Quote:
Originally Posted by reijii
it's works without this
I know.
Quote:
Originally Posted by reijii
have problems with it?
Îne problem - it's don't work on online players. Only kick
PhDoc is offline  
Old 05.05.2005, 04:21   #19
PhDoc
Архивный участник
 
Join Date: May 2005
Posts: 30
Default

Quote:
Originally Posted by astranger
man can you please give me an example on php on how to use that ?
Lazzy?
Quote:
Originally Posted by reijii
[php:1:7487169d12]
$fp = fsockopen("xx.xx.xx.xx", 2009, $errno, $errstr);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
$out = "5"."\t".$char_name."\t"."\r\n";
fwrite($fp, $out);
stream_set_timeout($fp, 2);
$answ = fgets($fp,8);
if ($answ==1) {
print"Character is successfully kicked.";
} else {
print"Error.";
}
fclose($fp);
} [/php:1:7487169d12]
PhDoc is offline  
Old 06.05.2005, 12:27   #20
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

I know how to use that man, the thing that I'm searching for months now and can't find it is how to ENFORCE changes made in sql. Lineage 2 server caches ALL the sql data even if a user is NOT online, and then somehow it manipulates the cache system and forces server to re-read data from sql.I just can't figure out how to do that on php....
Thanks for your time

Quote:
Originally Posted by PhDoc
Quote:
Originally Posted by astranger
man can you please give me an example on php on how to use that ?
Lazzy?
Quote:
Originally Posted by reijii
[php:1:4f6c359507]
$fp = fsockopen("xx.xx.xx.xx", 2009, $errno, $errstr);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
$out = "5"."\t".$char_name."\t"."\r\n";
fwrite($fp, $out);
stream_set_timeout($fp, 2);
$answ = fgets($fp,8);
if ($answ==1) {
print"Character is successfully kicked.";
} else {
print"Error.";
}
fclose($fp);
} [/php:1:4f6c359507]
astranger is offline  
Old 08.05.2005, 14:20   #21
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

noone ?
astranger is offline  
Old 29.05.2005, 19:23   #22
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

sry for the bump

question: is l2atl included in the server, or you gotta download the file urself n run it with rundll or something like that? (run it on cacheD server?)
Riane is offline  
Old 30.05.2005, 01:08   #23
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

i was looking for this list a long time ago, thx a lot, where you get it? do you know what means the parameters in any case, for example:

[php:1:0e48a338f6]
function movechar($char_name, $xloc, $yloc, $zloc) {
$fp = fsockopen("l2server", "2009", $errno, $errstr, 30);
fwrite($fp, "2\t".$char_name."\t1\t".$xloc."\t".$yloc."\t".$zl oc."\tkcinick\t\r\n");
usleep(250000);
}
[/php:1:0e48a338f6]
1 = action (move a char)
2 = new xloc
3 = nex yloc
4 = new zloc
5 = name of the builder account that make the move, (to put in the logs i think)

i have couple more, but need all of them to make something usefull, do you know where can i find it?
Sauron is offline  
Old 30.05.2005, 01:46   #24
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

nvm i found it ^^
Sauron is offline  
Old 30.05.2005, 07:05   #25
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

Hehe, i already made a full admin panel in this shit, its quite fun.
Also when it comes to direct adding adena upon donation the little coder comes into one again ;-)
archy is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:31.