View Full Version : [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";
公布所有的 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
anybody know how to use it?
astranger
06.04.2005, 21:17
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
[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]
JC.Paradox
25.04.2005, 08:13
i don't understand.... i've got source code of l2admin... why i need this?
Maybe so people can see how to make it tick? It's pretty interesting, imo. :D
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
i dun really get what this is, codes to use with l2admin server tool?
and to send them via php? o.O (public???)
<<--confused
well here's a good example
http://www.chendai.com/download/read.php?pno=46&pchannel=%CF%C2%D4%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.
diavolos
26.04.2005, 13:49
damn can't understand anything from that link, anyone can translate it please ?
diavolos
26.04.2005, 14:11
Also everything is encrypted there..
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 ;) )
2009... i allow connections to that port only from my web-server.
I yet have not download this tool
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?
it's works without this
have problems with it?
astranger
04.05.2005, 19:15
it's works without this
have problems with it?
man can you please give me an example on php on how to use that ?
it's works without thisI know.
have problems with it?Îne problem - it's don't work on online players. Only kick ;)
man can you please give me an example on php on how to use that ?Lazzy? :)
[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]
astranger
06.05.2005, 12:27
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
man can you please give me an example on php on how to use that ?Lazzy? :)
[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
08.05.2005, 14:20
noone ?:(
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?)
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".$zloc."\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?
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 ;-)
problems with adding adena to character after donation?
ADD_ITEM works good after kick, if character in game....
on some servers it begins work after increase SQL_EXEC in cached.ini .
astranger
30.05.2005, 15:28
nvm i found it ^^
Will you post them ? :(
sure here you have.
you need to have installed .net framework. Then run reflector.exe, load the attached dll and search for NCsoft.L2Admin.Message.Business.
voila
astranger
30.05.2005, 15:56
sure here you have.
you need to have installed .net framework. Then run reflector.exe, load the attached dll and search for NCsoft.L2Admin.Message.Business.
voila
hmm can't this be done via php ? like the move character script above
that is only the info, then do it in php asp or whatever u want.
Silentz0r
05.06.2005, 21:45
Hmmm anyone have a complete example?
supplier
06.07.2005, 19:52
I've got working example, but the thing is - works almost everything except add_item.
What's wrong with it?
Deleting items, adding skills, name change, ban and etc works perfectly, but add_item doesn't work.
If the character is online there is error - 07, if it's offline then cached says- 01, but there item is not added
I'm using simple php-function:
[php:1:e3085bb60d]
<?
$char_name = "probe";
$ownerId = 24;
// $out = "5"."\t".$char_name."\t"."\r\n"; // kick
// $out = "5\t{$char_name}\t\r\n"; // kick
// $out = "6\t{$char_name}\t5\t5\t\r\n"; // skill add
// $out = "4\tprobe2\tprobe\t\r\n"; // CHANGE_CHARACTER_NAME
// $out = "39\ttester\t1\t\r\n"; // BAN_CHAR
// $out = "50\tasd\ttester\t1\t1\t\t\t\t\r\n"; // MAN_ANNOUNCE ?
// $out = "45\tprobe\t\t\r\n"; // SEND_HOME ?
// $out = "12\tprobe\t0\t57\t10\t0\t0\t0\t0\t0\t\t\r\n"; // ADD_ITEM
// $out = "12\tprobe\t0\t1148\t1\t0\t0\t0\t0\t0\t\t\r\n"; // ADD_ITEM
// $out = "12\tprobe\t0\t4189\t1\t0\t0\t0\t0\t0\ttester\t\r\n"; // ADD_ITEM
$out = "12\tprobe\t0\t57\t10\t0\t0\t0\t0\t0\ttester\r\n"; // ADD_ITEM
cached_query ( $out );
function cached_query( $out )
{
$fp = fsockopen("xx.xx.10.0", 2009, $errno, $errstr);
if (!$fp)
{
echo "$errstr ($errno)
\n";
} else
{
fwrite($fp, $out);
stream_set_timeout($fp, 5);
$answ = fgets($fp,8);
if ( $answ == 1)
{
print"
Success Answer = {$answ}
";
} else
{
print"
Error Answer = {$answ}
";
}
}
fclose($fp);
echo $out;
}
?>
[/php:1:e3085bb60d]
Maybe the problem with wrong format of add_item $out string?
Has anyone example with 100% working string?
increase SQL_EXEC param in cached.ini
supplier
07.07.2005, 19:54
Thanks, but It doesn't help.
The Default was SQLExecLimit=9000
I increased it to SQLExecLimit=80000
I've got the same result, add_item doesn't work
What's your SQLExecLimit?
try lowering SQLExecLimit
that'll push data faster into mssql rather then letting it drag on
horyfilipe
08.07.2005, 21:03
I've got working example, but the thing is - works almost everything except add_item.
What's wrong with it?
Deleting items, adding skills, name change, ban and etc works perfectly, but add_item doesn't work.
If the character is online there is error - 07, if it's offline then cached says- 01, but there item is not added
I'm using simple php-function:
[php:1:ad1691d559]
<?
$char_name = "probe";
$ownerId = 24;
// $out = "5"."\t".$char_name."\t"."\r\n"; // kick
// $out = "5\t{$char_name}\t\r\n"; // kick
// $out = "6\t{$char_name}\t5\t5\t\r\n"; // skill add
// $out = "4\tprobe2\tprobe\t\r\n"; // CHANGE_CHARACTER_NAME
// $out = "39\ttester\t1\t\r\n"; // BAN_CHAR
// $out = "50\tasd\ttester\t1\t1\t\t\t\t\r\n"; // MAN_ANNOUNCE ?
// $out = "45\tprobe\t\t\r\n"; // SEND_HOME ?
// $out = "12\tprobe\t0\t57\t10\t0\t0\t0\t0\t0\t\t\r\n"; // ADD_ITEM
// $out = "12\tprobe\t0\t1148\t1\t0\t0\t0\t0\t0\t\t\r\n"; // ADD_ITEM
// $out = "12\tprobe\t0\t4189\t1\t0\t0\t0\t0\t0\ttester\t\r\n"; // ADD_ITEM
$out = "12\tprobe\t0\t57\t10\t0\t0\t0\t0\t0\ttester\r\n"; // ADD_ITEM
cached_query ( $out );
function cached_query( $out )
{
$fp = fsockopen("xx.xx.10.0", 2009, $errno, $errstr);
if (!$fp)
{
echo "$errstr ($errno)
\n";
} else
{
fwrite($fp, $out);
stream_set_timeout($fp, 5);
$answ = fgets($fp,8);
if ( $answ == 1)
{
print"
Success Answer = {$answ}
";
} else
{
print"
Error Answer = {$answ}
";
}
}
fclose($fp);
echo $out;
}
?>
[/php:1:ad1691d559]
Maybe the problem with wrong format of add_item $out string?
Has anyone example with 100% working string?
Your example should work.. Ive tested
Dumpling
09.07.2005, 01:25
It's great if we can team up for PHP version of l2admin ;)
Thanks, but It doesn't help.
The Default was SQLExecLimit=9000
I increased it to SQLExecLimit=80000
I've got the same result, add_item doesn't work
What's your SQLExecLimit?
on my servers ADDITEM begin works with SQLExecLimit=12000 :roll:
i think many developers have admin-panel already done
... :roll:
supplier
13.07.2005, 09:33
Thanks to the god and thanks to you guys I've found the problem.
In the top menu Cached has Script -> Add item data,
after that command Cached replicates "CachedScript\itemcache.txt" to itemdata table.
After that everything works!
Yes, many developers have a admin panel in php, including me.
Even tho ive had mine for 6 months now, but im afraid i have used way to much time on it, just to release it - and i believe thats the general opinion from dev's that has this.
how can send an announce ?
Thanks
sorry for bump this post... but i need a little help...
i was trying to get working some ATL functions in php...
Now i was trying to change ruler of a pledge on the fly... is easy with db but i need reboot server to changes take effect.. so... i see this in first post -> PLEDGE_CHANGE_OWNER = "37\t{0}\t{1}\t{2}\t{3}\n";
i try 37\tclanname\tnewruler\t{2}\t{3}\n a lot of diferents combinations with old ruler.. etc..
i have some things like sendhome and kick working good.. but change ruler don't work... cached answer 1 but... nothing happens...
with add_item has similar problem, if player is offline.. cached answer 1 but nothiung happens, if its online get error. I try to increase and decrease SQLExecLimit but not work...
i am trying to understand this functions in source code of l2atl but.. i don't understand nothing... can anyone help me ? some hits how to make this working ?
dinesat4
15.05.2006, 23:49
Guys, how i can set level?
i'm use ModifyCharacter2 for set EXP, but no level :(
example... lvl60 = EXP 3600000
i setin lvl33, now its lvl 28. WTF!
tpuNIsher
16.05.2006, 02:07
9 - wished, 10 translation of babelfish in chi.simp: "manager name"
10 translation of babelfish in chi. traditional: Management ..
which? >_>
I have problems adding Itens too :( May need something else?
midnight
08.10.2006, 13:43
on c4 retail:
Warning: fsockopen(): unable to connect to localhost:2009 in c:\appserv\www\cached.php on line 69
Fatal error: Maximum execution time of 30 seconds exceeded in c:\appserv\www\cached.php on line 69
what is the port on c4?
There are a thread in this forum talking about C4 Cached... this functions dont work with C4, is totally different....
Interactive port is 2012
https://postpacific.loc-online.com/forums/showthread.php?t=5371
midnight
08.10.2006, 15:58
Thanks fidow