Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 17.07.2007, 03:12   #76
goodtimeshaxor
Архивный участник
 
Join Date: Oct 2006
Posts: 108
Default

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
goodtimeshaxor is offline  
Old 17.07.2007, 03:15   #77
katso
Архивный участник
 
Join Date: Mar 2006
Posts: 70
Default

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]
katso is offline  
Old 17.07.2007, 03:52   #78
Silentz0r
Архивный участник
 
Join Date: Apr 2005
Posts: 122
Default

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.
Silentz0r is offline  
Old 17.07.2007, 06:23   #79
paul
Архивный участник
 
Join Date: Feb 2005
Posts: 390
Default

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
paul is offline  
Old 17.07.2007, 06:41   #80
goodtimeshaxor
Архивный участник
 
Join Date: Oct 2006
Posts: 108
Default

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 is offline  
Old 17.07.2007, 14:47   #81
goodtimeshaxor
Архивный участник
 
Join Date: Oct 2006
Posts: 108
Default

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 is offline  
Old 19.07.2007, 01:48   #82
goodtimeshaxor
Архивный участник
 
Join Date: Oct 2006
Posts: 108
Default

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
goodtimeshaxor is offline  
Old 19.07.2007, 13:28   #83
stpavel
Архивный участник
 
Join Date: Jul 2007
Posts: 1
Default

Some bugs.

1. If item's name have apostrof ( for example Recipe: Zubei's Boots ) , when char try to sale it, item take from inventory but not show in item on sell list, because here sql query error...
For fix this I changed function get_item_name

Code:
function get_item_name($id) {
$q=mssql_query("SELECT name from l2auction..items where item_id='".safe_int($id)."'");
$data=mssql_fetch_array($q);
$item_name = str_replace ("'" , "''",  $data['name']);
return $item_name;
}
2. If count of item , that char try to sell is float have , - count mul to 10 , for example if I type
2,5 and then click sell button , I see 25. If count of item have . ( for example 2.5 ) , item take from inventory but not show in item to sell list, here sql error....
I fix this so:
Code:
 function safe_int($str) {
        $str = str_replace ( ",", '.',  $str );
        $banwords = array ("'", ",", ";", "-");
        if ( eregi ( "[0-9]+", $str ) ) {                 $str = str_replace ( $banwords, '', strtolower ( $str ) );
        } else {
                $str = NULL;
        }
        return trim(ceil($str));
}
3. When char sell item, here write a log, item_id, count of item that sell char e.t.c.,,
Small bug, in log write not count of item, that sell char, but count of item that he has in inventory..
Fix :
Code:
$sale_count=safe_int($_POST['count']);
#makelog(1,get_char_id($_SESSION['char']),get_char_id($_SESSION['char']),$data_sale['item_type'],$data_sale['amount'],$data_sale['enchant'],$data_sale['item_id']);
makelog(1,get_char_id($_SESSION['char']),get_char_id($_SESSION['char']),$data_sale['item_type'],$sale_count,$data_sale['enchant'],$data_sale['item_id']);
4. If account is banned , he anywhere can login in auction
Fix : func.php , function is_logged :

Code:
function is_logged($name,$pass,$char){
...
...
                        sqlconnect("auth");
                        $result1 = mssql_query("SELECT block_flag FROM user_account WHERE account = '".safe($name)."' and block_flag=1");
                        $rows1=mssql_num_rows($result1);
                        if ($rows1>0){
                           unset($_SESSION['user']);
                           unset($_SESSION['pass']);
                           unset($_SESSION['char']);
                           session_destroy();
                            echo '
                             <script language="JavaScript">
                              alert("Sorry, your account is banned.");
                             </script>
                            ';
                          refresh('index.php');
                        }
...
...
...
5. Not correct some records of items in item.txt.
Code:
5927	Book: Basics of Giants Magic	 Chapter 1	etc_paper_blue_i00,1	1
5928	Book: Basics of Giants Magic	 Chapter 2	etc_paper_blue_i00,1	1
5929	Book: Basics of Giants Magic	 Chapter 3	etc_paper_blue_i00,1	1
5930	Book: Basics of Giants Magic	 Chapter 4	etc_paper_blue_i00,1	1
5931	Book: Basics of Giants Magic	 Chapter 5	etc_paper_blue_i00,1	1
5932	Handbook: Giants Architecture	 Chapter 1	etc_paper_red_i00,1	1
5933	Handbook: Giants Architecture	 Chapter 2	etc_paper_red_i00,1	1
5934	Handbook: Giants Architecture	 Chapter 3	etc_paper_red_i00,1	1
5935	Handbook: Giants Architecture	 Chapter 4	etc_paper_red_i00,1	1
5936	Handbook: Giants Architecture	 Chapter 5	etc_paper_red_i00,1	1
5937	Book: Giants Medical Science	 Chapter 1	etc_paper_white_i00,1	1
5938	Book: Giants Medical Science	 Chapter 2	etc_paper_white_i00,1	1
5939	Book: Giants Medical Science	 Chapter 3	etc_paper_white_i00,1	1
5940	Book: Giants Medical Science	 Chapter 4	etc_paper_white_i00,1	1
5941	Book: Giants Medical Science	 Chapter 5	etc_paper_white_i00,1	1
...
5945	Book: Giants Science & Technology	 Chapter 1	etc_spell_books_white_i00,1	1
5946	Book: Giants Science & Technology	 Chapter 2	etc_spell_books_white_i00,1	1
5947	Book: Giants Science & Technology	 Chapter 3	etc_spell_books_white_i00,1	1
5948	Book: Giants Science & Technology	 Chapter 4	etc_spell_books_white_i00,1	1
5949	Book: Giants Science & Technology	 Chapter 5	etc_spell_books_white_i00,1	1
5950	Almanac: Titan Culture	 Chapter 1	etc_spell_books_summon_i00,1	1
5951	Almanac: Titan Culture	 Chapter 2	etc_spell_books_summon_i00,1	1
5952	Almanac: Titan Culture	 Chapter 3	etc_spell_books_summon_i00,1	1
5953	Almanac: Titan Culture	 Chapter 4	etc_spell_books_summon_i00,1	1
5954	Almanac: Titan Culture	 Chapter 5	etc_spell_books_summon_i00,1	1
...
5979	Ancient Epic	 Chapter 1	etc_piece_of_paper_gray_i00,1	1
5980	Ancient Epic	 Chapter 2	etc_piece_of_paper_gray_i00,1	1
5981	Ancient Epic	 Chapter 3	etc_piece_of_paper_gray_i00,1	1
5982	Ancient Epic	 Chapter 4	etc_piece_of_paper_gray_i00,1	1
5983	Ancient Epic	 Chapter 5	etc_piece_of_paper_gray_i00,1	1
...
5989	Blueprint: Tower of Insolence	 1st Floor	etc_letter_blue_i00,1	1
5990	Blueprint: Tower of Insolence	 2nd Floor	etc_letter_blue_i00,1	1
5991	Blueprint: Tower of Insolence	 3rd Floor	etc_letter_blue_i00,1	1
5992	Blueprint: Tower of Insolence	 4th Floor	etc_letter_blue_i00,1	1
5993	Blueprint: Tower of Insolence	 5th Floor	etc_letter_blue_i00,1	1
5994	Blueprint: Tower of Insolence	 6th Floor	etc_letter_blue_i00,1	1
5995	Blueprint: Tower of Insolence	 7th Floor	etc_letter_blue_i00,1	1
5996	Blueprint: Tower of Insolence	 8th Floor	etc_letter_blue_i00,1	1
5997	Blueprint: Tower of Insolence	 9th Floor	etc_letter_blue_i00,1	1
5998	Blueprint: Tower of Insolence	 10th Floor	etc_letter_blue_i00,1	1
5999	Blueprint: Tower of Insolence	 11th Floor	etc_letter_blue_i00,1	1
6000	Blueprint: Tower of Insolence	 12th Floor	etc_letter_blue_i00,1	1
6001	Blueprint: Tower of Insolence	 13th Floor	etc_letter_blue_i00,1	1
...
fix : delete third column, move image's name from fourth column to third or manually edit table items
p.s. sorry for bad english
stpavel is offline  
Old 24.07.2007, 10:15   #84
Ra1n0
Архивный участник
 
Join Date: Feb 2007
Posts: 139
Default

thx to all for finding bugs ^^
but i'am on vacation right now i will fix this coming soon...
Ra1n0 is offline  
Old 24.07.2007, 23:57   #85
Ra1n0
Архивный участник
 
Join Date: Feb 2007
Posts: 139
Default

first post updated...new ver. 0.8

looks like stable release..

ok,i am still on vacation..but mail me if u find critical bug..
Ra1n0 is offline  
Old 05.08.2007, 02:16   #86
Elven
Архивный участник
 
Join Date: Dec 2006
Posts: 15
Default

I have added new function - history of sales and purchases. Thus has collided with that that in a field ‘count’ in table ‘logs’ save the rest, instead of quantity of the sold things. If you wish to write down the quantity of the sold things replace
It
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'], $data_sale['count'],$data_sale['enchant'],$data_sale['db_id']);
on
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'],safe_int($_POST['count']),$data_sale['enchant'],$data_sale['db_id']);

//rus
Я добавил новую функцию - историю продаж и покупок, доступную для просмотра пользовтелям. При этом столкнулся с тем, что в поле 'count' в таблице 'logs' записывается остаток, а не количество проданных вещей.
Если вы хотите записать не остаток, а количество проданных вещей, то замените

Это
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'], $data_sale['count'],$data_sale['enchant'],$data_sale['db_id']);
на
Code:
makelog(2,get_char_id($_SESSION['char']),$data_sale['char_id'],$data_sale['item_id'],safe_int($_POST['count']),$data_sale['enchant'],$data_sale['db_id']);
Elven is offline  
Old 06.08.2007, 12:00   #87
yobzhik
Архивный участник
 
Join Date: Mar 2007
Posts: 64
Default

Thanks, its amazing share ! But having problem... When i try login, it show message "Sorry, your account is banned..."... Where is problem ?
[rus]Вкусна, пасиба. Одна проблема - кем не захожу, пишет Sorry, your account is banned... В чем я протупил ?[/rus]
yobzhik is offline  
Old 06.08.2007, 12:04   #88
goodtimeshaxor
Архивный участник
 
Join Date: Oct 2006
Posts: 108
Default

Blah. I'm still having problems with this.
goodtimeshaxor is offline  
Old 06.08.2007, 14:39   #89
Ryatzu
Архивный участник
 
Join Date: Jun 2006
Posts: 35
Default

elven could you upload your edited version please.

Thank you
Ryatzu is offline  
Old 23.09.2007, 11:28   #90
BioNicle
Guest
 
Posts: n/a
Default [Share] L2Auction

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


Beside me such situation: items exposed on sale, but its do not disappear from char inventory. I can buy item, but it do not disappear from char inventory. Adena is not added, not deleted. Only on all this gives the error 997. I Think the problem in CacheD. In l2z I can't del/add items, and CacheD show this error.

P.S. I'm used CacheD from Ra1n0 and so strange that does not work.:confused:

//sorry for my bad english )

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 23 September 2007, 11:28. Открыть источник.
 
Old 24.09.2007, 12:36   #91
Ra1n0
Guest
 
Posts: n/a
Default [Share] L2Auction

Beside me such situation: items exposed on sale, but its do not disappear from char inventory. I can buy item, but it do not disappear from char inventory. Adena is not added, not deleted. Only on all this gives the error 997. I Think the problem in CacheD. In l2z I can't del/add items, and CacheD show this error.

P.S. I'm used CacheD from Ra1n0 and so strange that does not work.

update cached scripts.

And i stop(dont have time) the project at some time,who wants to complete it-always please)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 24 September 2007, 12:36. Открыть источник.
 
Old 10.10.2007, 01:46   #92
Ra1n0
Guest
 
Posts: n/a
Default [Share] L2Auction

up? :p

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 01:46. Открыть источник.
 
Old 17.10.2007, 17:57   #93
roxaz
Guest
 
Posts: n/a
Default [Share] L2Auction

i cant get this working... there is a problem while connecting to databases. i can not connect to any database, however i can login so i assume it does connect to database at some point, but after login - load of errors about failed connection... All databases are set to use windows auth so i put windows administrator account login data into config.php. I think problem may be related to this but im stuck... Ideas?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 17:57. Открыть источник.
 
Old 17.10.2007, 18:12   #94
Ra1n0
Guest
 
Posts: n/a
Default [Share] L2Auction

reconfig databases to use WIN and standart login

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 18:12. Открыть источник.
 
Old 18.10.2007, 01:02   #95
bigman2
Guest
 
Posts: n/a
Default [Share] L2Auction

this are old share!

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 01:02. Открыть источник.
 
Old 18.10.2007, 01:09   #96
m4rk
Guest
 
Posts: n/a
Default [Share] L2Auction

this are old share!

and so...? Still worth it.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 01:09. Открыть источник.
 
Old 18.10.2007, 10:23   #97
roxaz
Guest
 
Posts: n/a
Default [Share] L2Auction

reconfig databases to use WIN and standart login


and how to do that? im not familar with mssql

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 10:23. Открыть источник.
 
Old 18.10.2007, 12:20   #98
khelben
Guest
 
Posts: n/a
Default [Share] L2Auction

it's not THAT old


and even if it is, it doesn't make it worthless.


You're old, are you worthless? ;p

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 12:20. Открыть источник.
 
Old 18.10.2007, 23:22   #99
OB4uKOH
Guest
 
Posts: n/a
Default [Share] L2Auction

Is it working propertly on Interlude retail platform ?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 23:22. Открыть источник.
 
Old 19.10.2007, 09:58   #100
Ra1n0
Guest
 
Posts: n/a
Default [Share] L2Auction

its for c4...but if you create items.txt for interlude u can use it

PS Interlude retail :D:D

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 09:58. Открыть источник.
 
 


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 23:43.