Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Stickies
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.05.2005, 12:47   #26
reijii
Архивный участник
 
Join Date: Mar 2005
Posts: 39
Default

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 .
reijii is offline  
Old 30.05.2005, 15:28   #27
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

Quote:
Originally Posted by Sauron
nvm i found it ^^
Will you post them ?
astranger is offline  
Old 30.05.2005, 15:40   #28
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

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
Sauron is offline  
Old 30.05.2005, 15:56   #29
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

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
astranger is offline  
Old 30.05.2005, 16:00   #30
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

that is only the info, then do it in php asp or whatever u want.
Sauron is offline  
Old 05.06.2005, 21:45   #31
Silentz0r
Архивный участник
 
Join Date: Apr 2005
Posts: 122
Default

Hmmm anyone have a complete example?
Silentz0r is offline  
Old 06.07.2005, 19:52   #32
supplier
Архивный участник
 
Join Date: Jul 2005
Posts: 11
Default

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?
supplier is offline  
Old 07.07.2005, 05:31   #33
reijii
Архивный участник
 
Join Date: Mar 2005
Posts: 39
Default

increase SQL_EXEC param in cached.ini
reijii is offline  
Old 07.07.2005, 19:54   #34
supplier
Архивный участник
 
Join Date: Jul 2005
Posts: 11
Default

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?
supplier is offline  
Old 08.07.2005, 16:45   #35
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

try lowering SQLExecLimit
that'll push data faster into mssql rather then letting it drag on
Digital is offline  
Old 08.07.2005, 21:03   #36
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

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
horyfilipe is offline  
Old 09.07.2005, 01:25   #37
Dumpling
Архивный участник
 
Join Date: Jul 2005
Posts: 3
Default

It's great if we can team up for PHP version of l2admin
Dumpling is offline  
Old 09.07.2005, 16:15   #38
reijii
Архивный участник
 
Join Date: Mar 2005
Posts: 39
Default

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:
reijii is offline  
Old 13.07.2005, 09:33   #39
supplier
Архивный участник
 
Join Date: Jul 2005
Posts: 11
Default

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!
supplier is offline  
Old 13.07.2005, 09:57   #40
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

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.
archy is offline  
Old 06.02.2006, 20:08   #41
nemeek
Архивный участник
 
Join Date: May 2005
Posts: 105
Default

how can send an announce ?

Thanks
nemeek is offline  
Old 15.04.2006, 21:21   #42
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

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 ?
FidoW is offline  
Old 15.05.2006, 23:49   #43
dinesat4
Архивный участник
 
Join Date: Jul 2005
Posts: 123
Default

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!
dinesat4 is offline  
Old 16.05.2006, 02:07   #44
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

9 - wished, 10 translation of babelfish in chi.simp: "manager name"

10 translation of babelfish in chi. traditional: Management ..

which? >_>
tpuNIsher is offline  
Old 14.08.2006, 14:26   #45
luisfn
Архивный участник
 
Join Date: May 2006
Posts: 5
Default

I have problems adding Itens too May need something else?
luisfn is offline  
Old 08.10.2006, 13:43   #46
midnight
Архивный участник
 
Join Date: Jun 2005
Posts: 199
Default

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?
midnight is offline  
Old 08.10.2006, 15:08   #47
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

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
FidoW is offline  
Old 08.10.2006, 15:58   #48
midnight
Архивный участник
 
Join Date: Jun 2005
Posts: 199
Default

Thanks fidow
midnight 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 22:54.