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] L2Auction (https://postpacific.mmorpg-game.online/showthread.php?t=7964)

olmer2002 05.07.2007 10:43

ok. im understand u, good luck, see u later =)

DukeGr 05.07.2007 11:19

someone should warn people not to use this on live servers,no protection whatsoever.

Ra1n0 05.07.2007 11:29

Quote:

no protection whatsoever
no protection ? wtf u download and check code?

smeli 05.07.2007 13:21

>no protection ? wtf u download and check code?

calm down, look at this men's avatar - he just smoked too much marihuana

supersword 05.07.2007 15:50

I don't have use for this, but it is a great bit of work.

I'm being nosey and having a read through the code now however. Well done mate.

didu 06.07.2007 20:31

Hi

I have a problem with the code, i don't see the picture:

http://www.ultimegames.com/l2auction/

Ra1n0 06.07.2007 20:37

enable gd in php.ini

;extension=php_gd2.dll

remove comment

extension=php_gd2.dll

didu 06.07.2007 21:41

thx that work :)

Ra1n0 07.07.2007 06:52

post here in english plz..
Quote:

/rus/
Надо сделать список вещей, запрещенных для продажи. А то так сосками и другим расходным мериалом халява. Кончились соски, вышел из игры, зашел на аукцион купил, зашел в игру и дальше мобов бить.
column can_sale in l2auction..items, if =0 then cant sale, if =1 then can sale

Ra1n0 07.07.2007 07:51

nothing to worry,allright

auction connect to cached ( admin server create socket )
auction check character (offline or online) (check character:char_id)
auction packet manupulation :D
auction disconnect from cached (admin server closed)

Ra1n0 07.07.2007 09:29

Quote:

/rus/
все проверил персонаж и аккаунт в оффлайне,но заметил баг связанный с этим.когда я пробую купить соул шоты у того кто продает,выдает ту ошибку, но после того как я захожу на аакаунт и на чара продовца на нем также остаетсья 1500 соул шотов но деньги переводяться.ТОесть получаетсья остаеться и товар и и деньги за него прходят.Если знаете в чем проблема помогите.
i tested auction work perfect..
see pm..

Silentz0r 07.07.2007 10:03

New Idea:

would be good if you add a check ban, if ppl are banned trought l2db like "This account is banned from the Server" or something like that.

DB: lin2db, user_account pay_stat

1= can login
0= can't login

Ra1n0 07.07.2007 10:11

Quote:

New Idea:

would be good if you add a check ban, if ppl are banned trought l2db like "This account is banned from the Server" or something like that.
added in 2do

Lucifer 07.07.2007 10:35

Quote:

Originally Posted by Lirix (Post 90979)
/rus/
Надо сделать список вещей, запрещенных для продажи. А то так сосками и другим расходным мериалом халява. Кончились соски, вышел из игры, зашел на аукцион купил, зашел в игру и дальше мобов бить.

/rus/
А не проще после удачной покупки слать пакет sendhome?
Quote:

Originally Posted by Silentz0r (Post 91000)
New Idea:

would be good if you add a check ban, if ppl are banned trought l2db like "This account is banned from the Server" or something like that.

DB: lin2db, user_account pay_stat

1= can login
0= can't login

lin2db.dbo.block_flag & lin2db.dbo.block_flag2 - if any of them = 1 can't login ;)

Lirix 07.07.2007 10:48

I suggest to move all string in a separate file and add skins funtion

Lirix 07.07.2007 10:50

Quote:

Originally Posted by Lucifer (Post 91003)
/rus/
А не проще после удачной покупки слать пакет sendhome?

hmm. good idea. but need to make this function on an option.

m4rk 07.07.2007 11:01

Quote:

lin2db.dbo.block_flag & lin2db.dbo.block_flag2 - if any of them = 1 can't login
lin2db.dbo.block_flag & lin2db.dbo.block_flag2 - if any of them >= 1 can't login

In fact, depending on wich flag it is set (2,4,6...) it shows different message when you try to login ingame.

Ra1n0 07.07.2007 11:38

Quote:

/rus/
А не проще после удачной покупки слать пакет sendhome?
for what ?
Quote:

I suggest to move all string in a separate file and add skins funtion
in 2do

Lucifer 07.07.2007 12:02

Quote:

Originally Posted by Lirix (Post 90979)
/rus/
Надо сделать список вещей, запрещенных для продажи. А то так сосками и другим расходным мериалом халява. Кончились соски, вышел из игры, зашел на аукцион купил, зашел в игру и дальше мобов бить.

Ra1n0
for fix this problem, but not forbidding them to sell...

Lirix 07.07.2007 20:45

Quote:

Originally Posted by Ra1n0 (Post 91011)
for what ?

for option. :)

katso 11.07.2007 03:51

I have a problem, attempt to enter with my account and the name of my char, entrance the security code, and when I do click in login, reset all the fields and the security code changes. That I am making bad?

Silentz0r 11.07.2007 04:05

Quote:

Originally Posted by katso (Post 91499)
I have a problem, attempt to enter with my account and the name of my char, entrance the security code, and when I do click in login, reset all the fields and the security code changes. That I am making bad?

I noticed a problem with capital letters password won't get log. Raino, u should check that.

Ra1n0 11.07.2007 07:27

Quote:

/rus/
нашёл баг. выставляю на продажу short sword, он выставляется, но при этом остаётся в инвентаре. дюп? меч в руках у персонажа.
зы. не удалялся даже через админку. а в игре удалился спокойно.
кстати полностью перевёл на русский. кому надо - могу выложить.
/rus/
/eng/
small bug
/eng/
maybe problem in CacheD ?cached returns "1" mean all is good..if cached returns not "1" auction dont set item on sell.

Ra1n0 11.07.2007 08:09

and question..

Who know what means columns in user_item.(eroded,bless,ident,wished) maybe problem here?

khelben 11.07.2007 09:24

Additional Request:
Support Different Connection Addresses/DNS Names for all databases.

i.e. Auth(lin2db) = 10.0.0.1, World(lin2world) = 10.0.0.2, Auction(l2auction) = 10.0.x.x

katso 11.07.2007 17:26

Quote:

Originally Posted by Silentz0r (Post 91501)
I noticed a problem with capital letters password won't get log. Raino, u should check that.

Yes, my password contains capital letters. It is a problem that cannot be entered with password of this type.

Ra1n0 11.07.2007 18:11

some mistake for me..

find in func.php
PHP Code:

function safe($str) {
    
$banwords = array ("'", ",", ";", "-");
    if ( 
eregi ( "[a-zA-Z0-9]+", $str ) ) {
        
$str = str_replace ( $banwords, '', strtolower ( $str ) );
    } else {
        
$str = '';
    }
    return 
trim($str);
} 

replace to
PHP Code:

function safe($str) {
    
$banwords = array ("'", ",", ";", "-");
    if ( 
eregi ( "[a-zA-Z0-9]+", $str ) ) {
        
$str = str_replace ( $banwords, '', $str  );
    } else {
        
$str = '';
    }
    return 
trim($str);
} 


katso 13.07.2007 16:36

I have the following problem, I install l2auction in my web server and I form so that it is connected to the IP of of the server of l2, enter the page, complete all the fields, and do click in login, and nothing happens, disappear the data that enters the fields of the page and the security code changes, without no message of error. Try with the modification for the capital letters and nothing happens, the problem persists, somebody can help me.
Greetings.

[esp]
Tengo el siguiente problema, instalo l2auction en mi web server y configuro para que se conecte al ip de del server de l2, ingreso a la pagina, completo todos los campos, y hago click en login, y no sucede nada, desaparecen los datos que ingrese en los campos de la pagina y se cambia el codigo de seguridad, sin ningun mensaje de error. Intente con la modificacion para las letras mayusculas y nada sucede, el problema persiste, alguien me puede dar una ayuda?.
Saludos.
[/esp]

Bash 15.07.2007 14:05

Quote:

Originally Posted by Ra1n0 (Post 91574)
some mistake for me..

find in func.php
PHP Code:

function safe($str) {
    
$banwords = array ("'", ",", ";", "-");
    if ( 
eregi ( "[a-zA-Z0-9]+", $str ) ) {
        
$str = str_replace ( $banwords, '', strtolower ( $str ) );
    } else {
        
$str = '';
    }
    return 
trim($str);
} 

replace to
PHP Code:

function safe($str) {
    
$banwords = array ("'", ",", ";", "-");
    if ( 
eregi ( "[a-zA-Z0-9]+", $str ) ) {
        
$str = str_replace ( $banwords, '', $str  );
    } else {
        
$str = '';
    }
    return 
trim($str);
} 


I think so it will be more effective

PHP Code:

function safe($str)
{
        
$banwords = array ("'", ",", ";", "--","drop", "select", "update", "create", "delete", "insert");
        if (!
eregi("^[A-Z0-9._%@*-]+",$str))
                
$str = NULL;
        else
        {
                
$str2 = str_replace($banwords, '', strtolower($str));
                if(
strtolower($str2) != strtolower($str)) $str = NULL;
        }
    return 
$str;
} 


paul 15.07.2007 22:41

Okay this is probably something retarded i'm missing buuut

I get a cached: 997 error everytime someone tries to place an auction (or even when its trying to check to see if they are logged in but i removed that check hehe) Any ideas on what could be causing it?

Kenjiro 16.07.2007 10:02

It's normal, every connection to cached admin port, make some and then disconnect results in 997 (sometimes other) error.
I suppose there is some function to disconnect, or some another way to 'nicely' close connection.

In other words, do not worry :).

paul 16.07.2007 10:30

Uh considering this script doesn't work because of the 997 errors, i don't worry but its kinda a stopper :p

radio 16.07.2007 11:43

Quote:

Originally Posted by khelben (Post 91524)
Additional Request:
Support Different Connection Addresses/DNS Names for all databases.
i.e. Auth(lin2db) = 10.0.0.1, World(lin2world) = 10.0.0.2, Auction(l2auction) = 10.0.0.3

YES !!!....

goodtimeshaxor 17.07.2007 03:12

When I saw this I was really excited because I was working on something like this but gave up but I'm wondering if it works and if it does what problems it has if any.

Thanks

katso 17.07.2007 03:15

Whenever somebody puts an item on sale, it indicates me that the transaction was successful, but when seeing that items I have for sale, does not appear nothing and the items disappear of the inventory, as it can be the error?

[esp]
Cada vez que alguien pone a la venta un item, me indica que la transaccion fue exitosa, pero al ver que items tengo en venta, no aparece nada y los items desparecen del inventario, cual puede ser el error?
[/esp]

Silentz0r 17.07.2007 03:52

guys.. i think your doing something wrong :/ i got this working 100% functional in less than 5min and aswell i get the 997 error, but it works anyways.

paul 17.07.2007 06:23

I finally dug into it a bit more. It's taking the item from the inventory of the person however it's not putting it into the l2auction db

goodtimeshaxor 17.07.2007 06:41

I'm getting a similar error except it doesn't do anything at all.

It doesn't take the item from the inventory.

Whenever a user sets up an auction it says it was successful and it also appears in the buy list but it doesn't disapear from the online inventory or the character's in-game inventory.

EDIT:
Does this only work after restart? I'm assuming that it works right away cause you have to be logged out.

goodtimeshaxor 17.07.2007 14:47

Polite Bump:

Also, I noticed that if I use this auction system on the server machines www all the images are displayed correctly and it seems like it works (all except for the actual ingame exchange, that doesn't work still) but when I use the exact same files on a remote web server the images don't show and I get an error that says I must be logged out of my character to buy/sell items. (Which I am)

(Update: I got the images to display correct. I had the folder named /auction/ instead of /l2auction/. A simple edit of the files fixed the problem)


Code:



Warning: fwrite(): supplied argument is not a valid stream resource in C:\www\auction\func.php on line 275

Warning: fread(): supplied argument is not a valid stream resource in C:\www\auction\func.php on line 276

Warning: unpack() [function.unpack]: Type v: not enough input, need 2, have 0 in C:\www\auction\func.php on line 276

Warning: fread(): supplied argument is not a valid stream resource in C:\www\auction\func.php on line 276

Warning: unpack() [function.unpack]: Type c: not enough input, need 1, have 0 in C:\www\auction\func.php on line 276

Warning: fclose(): supplied argument is not a valid stream resource in C:\www\auction\func.php on line 278
Info

Okay the above error was caused by my firewall. Port 2012 (CacheD) wasn't allowing connections from the web server. I opened this port to the web server's IP and now these errors do not show; however, I am still not able to transfer the items in game.
Any ideas?

(Update 2:)

I get the following error in CacheD.exe when trying to use the L2Auction system:

admin server closed(XX.XX.XXX.XXX) error: 258

goodtimeshaxor 19.07.2007 01:48

I'm still not able to get the auction to work. Specifically, the items that are put up for auction are not taken out of the player's inventory (on auction page and in game). When someone buys the item in auction page the item is NOT transfered in game.

Details: The auction system is on my web server, separate from the game server.
The database is named "l2auction".
The URL is /auction instead of /l2auction
Image sources for items are changed to /auction/img.
CacheD port allows the IP of web server to connect.
Getting an error: admin server closed(XX.XX.XXX.XXX) error: 258


All times are GMT. The time now is 14:12.