Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Tutorials & Guides (https://postpacific.mmorpg-game.online/forumdisplay.php?f=44)
-   -   [Notes] L2ATL funcs (https://postpacific.mmorpg-game.online/showthread.php?t=305)

reijii 30.05.2005 12:47

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

Quote:

Originally Posted by Sauron
nvm i found it ^^

Will you post them ? :(

Sauron 30.05.2005 15:40

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

Quote:

Originally Posted by Sauron
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

Sauron 30.05.2005 16:00

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?

reijii 07.07.2005 05:31

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?

Digital 08.07.2005 16:45

try lowering SQLExecLimit
that'll push data faster into mssql rather then letting it drag on

horyfilipe 08.07.2005 21:03

Quote:

Originally Posted by supplier
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 ;)

reijii 09.07.2005 16:15

Quote:

Originally Posted by supplier
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!

archy 13.07.2005 09:57

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.

nemeek 06.02.2006 20:08

how can send an announce ?

Thanks

FidoW 15.04.2006 21:21

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? >_>

luisfn 14.08.2006 14:26

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?

FidoW 08.10.2006 15:08

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.mmorpg-game.onli...ead.php?t=5371

midnight 08.10.2006 15:58

Thanks fidow


All times are GMT. The time now is 16:41.