![]() |
Quote:
|
anthder poblem is not support to Chinese
I dont konw anyabout php ....so i cannt modify about it any how it is very applied my english is very poor |
is there a function such as ban user? I tested chatban is ok. but with 0 or 1 in punish option it does not work. also additem and delitem is not working.
|
15. Getting char id by char name, directly from db. (tested)
16. Showing char invertory and warehouse by char id, directly from db. (tested) Those 2 when I click go they return with empty page, and it does not send message to cached.exe Any idea why? |
Quote:
15. - Return char_id by char name. 16. - Return items by char_id, that you got by 15. Maybe different ports ... check your *.ini files |
when I chose 16, it asked my the same option of 15. Strange...and when I input charname it shows a empty page... any idea what wrong with it?
|
also beside 2012 what other port it use? I don't see any other port should be open for it. You tested on single machine or 2 machines(cached is in a seperate machine)
|
Quote:
id = 123 for example |
I can not make DelItem function work (13).
It returns 01 all the time. Does anybody succeded in using it? I'm using a little different code, but an original doesn't seems to work too. Code:
function ansi2unicode($string) {$changeacccost - some value like 10000. Code:
$answ = l2_delItem ( $_COOKIE['login'], $char_id, 0, $adena_id, $changeacccost);Function like Kick and MoveChar is working... But DeleteItem - does not :( |
I use DelItem2:
Code:
function l2_delitem2 ( $item_id, $amount ) { |
Quote:
|
I do not know, but without this it won't work.
|
Suggestion: Quick Item Addition, Drop down menu for S grade A grade ect, it will not be to hard.
|
I got this error while trying to edit new item:
I changed Cached to 2006 Port ( As it came from Rz ) Warning: unpack(): Type v: not enough input, need 2, have 0 in c:\appserv\www\functions.php on line 108 Warning: unpack(): Type c: not enough input, need 1, have 0 in c:\appserv\www\functions.php on line 108 Kicked: Warning: unpack(): Type v: not enough input, need 2, have 0 in c:\appserv\www\functions.php on line 98 Warning: unpack(): Type c: not enough input, need 1, have 0 in c:\appserv\www\functions.php on line 98 Item added: |
me 2!.........
|
Hel
if you make another version this one is kinda useful displays all the chars from an account by entering the account name Code:
<option value=203>--Get char name from an account--</option>Code:
case 203: |
Quote:
If I chose function 16. it show me text from function 15 and when I chose function 15, I wrote charid 1 (its my character) then Go and nothing.. ----------------- its really broken, look: Code:
case 200: |
I think someone simply dont make it 100% done..
because there is <br><input type='button' value='Go' onclick='doSpecialFunc()'> Instead onclick=AnyRealFunction.. |
hmm I dont know php too much, so I changed it alittle bit..
simply I changed it to normal form where u insert name of player and it will forward to another my php code where it will change to ID ;] (I dont know code too much so I dont know how to merge it :-DD ) Code:
case 200:charid.php Code:
<?phpconfig.php Code:
<?php |
My CP
Here is my little CP Demo. If you have enough PHP programming skills, possably some C, C++ or C#, you can create a complete and automated system to manage your L2 Server.
For example, the best practice is create one class to connect with the CacheD Server, and use this class to execute any operation on it, of course you will add some logs to those operations, because you are a professional Developer (aren't you?). If you are not a professional programmer, then you should look for one, learn to code in PHP or some other language or possibly try to buy some code. Here is the Login form: http://img405.imageshack.us/img405/7...ogincr8.th.jpg Main Administrator Control Panel Page (HGM has another interface, same thing for GMs, the system recognizes different types of Builders). http://img509.imageshack.us/img509/4...dminol6.th.jpg The Administrator Accounts Manager http://img458.imageshack.us/img458/2...untsqs6.th.jpg Add Item to Char (Recognice the characters name instead the Char ID) http://img175.imageshack.us/img175/1...itemxx7.th.jpg Continue in next Post |
My CP 2
Add Item to Char Step 2
http://img46.imageshack.us/img46/870...tep2pu1.th.jpg Add Item Results http://img297.imageshack.us/img297/8...tep3gr0.th.jpg Delete Item from Character (Char Name again) http://img360.imageshack.us/img360/2...itemso6.th.jpg Delete Item results http://img360.imageshack.us/img360/6...tep2uc9.th.jpg Our CP allows many more actions, like Look-up all characters connected from the same IP, all accounts with same IP, Pledge Management, Donations management allowing add or del (or both) items to any char with only one click. Our code is strongly Object Oriented so add plenty of security on sessions and SQL Injection. You can do all you want if you know how to do it, all the Packets functions work, except some ones that crash the CacheD due a Buffer Overflow on cached Administrative socket. Greetings. |
Why dont u share your CP :P
|
Cause is completely integrated into our Forum-Game-Main Page system, we use external C++ Applications to automate some managament at server so this work was really hard to separate one piece and share it.
Anyway I can give you some explanations about some good PHP coding practices, like use Objects to store RQUEST variables and prevent any type of SQL Injection. www.php.net/manual/en <--------- Your best friend. |
Quote:
Thanks in advance and thanks hel for the share.. |
Sorry, but my project is closed. I was left community 3 months ago.
Wish to all get full off c5 server and be happy. ;) |
| All times are GMT. The time now is 16:55. |