Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [Share]L2 admin on php (https://postpacific.mmorpg-game.online/showthread.php?t=6121)

mastery 02.11.2006 12:34

doesnt work for me... on change user parameters when i push go nothings happend.. on check char online and get nabe by id it gets me blank screen...

hel 03.11.2006 01:53

mastery:
What php and apache you're using?
I heard that error appearing on easyphp.
I was tested on standart builds of php (4.3.8, 5.0.1) and apache (1.33 and 2.0.52), which I'm using, it working perfectly...

Kenjiro 03.11.2006 08:10

Quote:

Originally Posted by hel (Post 71277)
Thanks!
Will add this function in the next build!
PS: Got it from L2z? ;)

Nope, try&errors method ;)
Quote:

Originally Posted by hel (Post 71277)
Could anyone explain, how different "V" and "i" in pack() function? :wave:

From php manual:
i signed integer (machine dependent size and byte order)
V unsigned long (always 32 bit, little endian byte order)

Option 'i' could give 64bit output, if php has been compiled in 64bit mode (i have 32bit php/apache/mysql binaries, thus it gives the same as 'V'). Option 'V' (in my opinion) is safer than 'i' (for future releases).

zlopi 04.11.2006 00:43

Works DelItemPacket("ddddS")

$msql="SELECT amount FROM user_item WHERE item_id=$item_id";
$item=mssql_fetch_array(mssql_query($msql));
$command=pack("ciiii",13,$char_id,0,$item_id,$item[amount]);

hel 04.11.2006 05:36

New build released, added readme.txt inside archive for russians.

hel 04.11.2006 07:43

New build 0.4.1 with some tested and fixed functions released.

Ma4o 04.11.2006 09:28

Quote:

Originally Posted by hel (Post 71447)
New build released, added readme.txt inside archive for russians.

Thx, Hel.
rus: спасиб, за русик.

mastery 04.11.2006 17:19

Warning: Cannot modify header information - headers already sent by (output started at C:\wwwroot\httpd-2.2_x64\htdocs\a\admin\index.php:2) in C:\wwwroot\httpd-2.2_x64\htdocs\a\admin\index.php on line 2
and i got blank page

im using x64 versions of PHP-5.1.5-x64-2006-08-18 and apache 2.2.3_x64... everything else works..

do i require something else to be installed to get this working? im also chech this script on Cherokee webserver, same errors... on same machine...

hel 04.11.2006 17:57

Try to delete "header(.......);" strings at top from all scripts...
As I understand 5.0.0+ php don't support this format of function...
On 4.3.8 php it's working greatly... :-\

mastery 04.11.2006 18:23

yes i fix that but anyway it doesnt work on my machine ((( also it doestn work with php 4.3.9

why i got blank page.. can it be becourse ajax u used? is it needet?

Dmytro 04.11.2006 18:38

Quote:

Originally Posted by hel (Post 71490)
Try to delete "header(.......);" strings at top from all scripts...
As I understand 5.0.0+ php don't support this format of function...
On 4.3.8 php it's working greatly... :-\

No, not "header()".
When PHP open page, it see "<!-- ... -->", and construct default header, and after that you try to construct you own header, when it's already exists. =)
Delete "<!-- ... -->" or write after "header()" your comment and all bee good. =)

m4rk 04.11.2006 18:55

I solved the header error by just putting it that way:

Code:

<?php header('Content-type: text/html; charset=windows-1251');
include("functions.php");IpSecurity($_SERVER['REMOTE_ADDR']);$i=1;?>
<title>...</title
<!-- ... -->


mastery 04.11.2006 20:25

hm.. it works only on internet explorer... i was trying on firefox )...
can u add to function to reset all skills then vhanging class, and checkbox to set_skill_all command, it will be very nice...
one thing, u need to change subjob0_class row then changing class row, or user will crash on login...
anyway, thanx for your work..

zekillers 04.11.2006 22:15

yeah. Lets not over complicate things. I think we should remove any ajax or over complicated javascript, as it should be working with firefox.

PsychoBR 05.11.2006 15:08

Hello People, i have one problem:
Quote:

Kicked: OK.
Item added: Error.
I cant add itens, its all ok, just the add item function isn't working.
Thnx for the help, cya!

EDIT: The CacheD returns error 997.
Thnx for help

zekillers 05.11.2006 22:34

Im working with someone to add a secure login, remove all ajax, make things easier by selecting a character before being shown the features.
Also working on a design

twzenit 06.11.2006 04:52

on cached:
admin sever closed (ipX.x.x.X) error 997

what is wrong with this. It seems all command dont work, but I can the index.php page and chose some options there. But when i do change name, it said char not found.
Do I must install Apache?

hel 06.11.2006 05:50

twzenit: Maybe you're entering incorrect char_id in first textarea.
For taking char_id, by entering char_name - select 15 option (Get char id by char name) enter his char_name, and you will see his right char_id.

hel 06.11.2006 05:52

Quote:

Originally Posted by zekillers (Post 71569)
Im working with someone to add a secure login, remove all ajax, make things easier by selecting a character before being shown the features.
Also working on a design

Is it for public?

zekillers 06.11.2006 06:18

Quote:

Originally Posted by hel (Post 71580)
Is it for public?

Yes. For everyone. You should pm me your msn address, i'll keep you updated on the progress.

twzenit 06.11.2006 07:19

Quote:

Originally Posted by hel (Post 71579)
twzenit: Maybe you're entering incorrect char_id in first textarea.
For taking char_id, by entering char_name - select 15 option (Get char id by char name) enter his char_name, and you will see his right char_id.

When I select the 15th option for geting char id by giving name, it does not return anything, it also does not show anything in cached.exe, the last two option is not working.

also tried to entered char id, it still show same error on cached part.

twzenit 06.11.2006 07:28

btw, cached is on a seperate machine... does it make differerance?

hel 06.11.2006 07:34

No...
I don't think where is your problem...
Maybe $_POST[] not working on your php...

twzenit 06.11.2006 07:56

$_Post should work since when I do check status at 1st option, it reply red word, the char is not online. but it actually online, the problem is the cached showed a error with 997... and when I try to get char_id by use char_name, the option does go to a white page after I hit go. Then, I look at cached, there is no any message that shows the command is send to cached, or it maynot check it from cached?

hel 06.11.2006 08:50

Quote:

Originally Posted by twzenit (Post 71586)
the problem is the cached showed a error with 997...

It's normal...


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