![]() |
|
|
#26 |
|
Архивный участник
Join Date: Mar 2005
Posts: 39
|
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 . |
|
|
|
|
#27 | |
|
Архивный участник
Join Date: Mar 2005
Posts: 41
|
Quote:
|
|
|
|
|
|
#28 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
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 |
|
|
|
|
#29 | |
|
Архивный участник
Join Date: Mar 2005
Posts: 41
|
Quote:
|
|
|
|
|
|
#30 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
that is only the info, then do it in php asp or whatever u want.
|
|
|
|
|
#31 |
|
Архивный участник
Join Date: Apr 2005
Posts: 122
|
Hmmm anyone have a complete example?
|
|
|
|
|
#32 |
|
Архивный участник
Join Date: Jul 2005
Posts: 11
|
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? |
|
|
|
|
#33 |
|
Архивный участник
Join Date: Mar 2005
Posts: 39
|
increase SQL_EXEC param in cached.ini
|
|
|
|
|
#34 |
|
Архивный участник
Join Date: Jul 2005
Posts: 11
|
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? |
|
|
|
|
#35 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
try lowering SQLExecLimit
that'll push data faster into mssql rather then letting it drag on |
|
|
|
|
#36 | |
|
Архивный участник
Join Date: Jul 2005
Posts: 242
|
Quote:
|
|
|
|
|
|
#37 |
|
Архивный участник
Join Date: Jul 2005
Posts: 3
|
It's great if we can team up for PHP version of l2admin
|
|
|
|
|
#38 | |
|
Архивный участник
Join Date: Mar 2005
Posts: 39
|
Quote:
i think many developers have admin-panel already done ... :roll: |
|
|
|
|
|
#39 |
|
Архивный участник
Join Date: Jul 2005
Posts: 11
|
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! |
|
|
|
|
#40 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
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. |
|
|
|
|
#41 |
|
Архивный участник
Join Date: May 2005
Posts: 105
|
how can send an announce ?
Thanks |
|
|
|
|
#42 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
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 ? |
|
|
|
|
#43 |
|
Архивный участник
Join Date: Jul 2005
Posts: 123
|
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! |
|
|
|
|
#44 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
9 - wished, 10 translation of babelfish in chi.simp: "manager name"
10 translation of babelfish in chi. traditional: Management .. which? >_> |
|
|
|
|
#45 |
|
Архивный участник
Join Date: May 2006
Posts: 5
|
I have problems adding Itens too
May need something else?
|
|
|
|
|
#46 |
|
Архивный участник
Join Date: Jun 2005
Posts: 199
|
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? |
|
|
|
|
#47 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
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 |
|
|
|
|
#48 |
|
Архивный участник
Join Date: Jun 2005
Posts: 199
|
Thanks fidow
|
|
|
|
|