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)

Ra1n0 03.07.2007 08:01

[Share] L2Auction
 
hi pplz..I liked auction in WoW and I have decided to make something similar in Lineage 2

[L2Auction 0.8 beta]
------INSTALL-------
Extract archive to www folder

move items.txt to drive C:

execute (install2005.sql script for 2005 server or install2000.sql for 2000 server) in sql manager

change settings in config.php

use ;)
-----CHANGES-------
[0.8]
+added banned account checking
+added different connection for database's
+fixed more bugs..looks like stable release ;)
+fixed items.txt again :]
[0.7]
+added install script for 2000 sql server
+recreate items.txt with tab delimited
+added char_id banning in auction
+added item back
+added buy/sell/itemback logs

[0.6.1]
+set cant sale pets
+Set, seller can only sell items in main inventory

-----FUNCTIONS-----
for banning char set banned=1 for needed char_id in l2auction..acc

column log_id (if =1 its set sell item,if =2 its buy item,if =3 its item back)
-----CREDITS-------
© Code and idea by Ra1n0 [report bugs and new ideas to ra1n0.team@gmail.com]
DONT USE IT IF U CANT
thx to hel(L2admin),Doreamon\Phantom2005(Lineage Control Panel), Zahar(L2Z)
i take some code from his project's ;)

----------------------
code need more of optimization and clean...but its beta)in next versions i do this

my 2do for next versions:
--Add administration panel..
--Code optimization and clean..
--New ideas ?


users 2do download,install,test,post comment ;)

sсreenshots:
http://img253.imageshack.us/img253/7269/scr2yb6.th.jpg
http://img266.imageshack.us/img266/8318/scr3wh8.th.jpg
http://img412.imageshack.us/img412/9162/scr4wd0.th.jpg
http://img266.imageshack.us/img266/5205/scr5vz0.th.jpg
http://img165.imageshack.us/img165/2083/scr6rb8.th.jpg
http://img165.imageshack.us/img165/1473/scrbc3.th.jpg

pass:_www.postpacific.com_

[ download ]

jencxxl 03.07.2007 11:41

interesting idea, not going to use it but thank you for the share.

Rich 03.07.2007 11:55

Nice share, I like the idea. Thanks :)

Tilluss 03.07.2007 11:58

nice, this was something we was going to look in to ourselves, but great work!

Can you show a screen shot of it in action at all?

khelben 03.07.2007 11:59

I've always wanted to do something like this but never had the time!!

Excellent!

I'll be checking this out later!

HF 03.07.2007 12:08

:D download free... and antileecher pass

emanuel 03.07.2007 12:53

screenshots, info, scan ? and i will download :D :D

Guaresnay 03.07.2007 14:59

c'mon don't be so lazy, it can take you like 5min to dl it and test it by your self.
Thanks for the share!, i could use some of ur ideas in my proyects :P

PyroMaker 03.07.2007 15:11

I haven't had the time to test it yet, but as soon as I do, I'll check it out. I downloaded it already, and can't wait to test this.

I won't say "good job" yet because I didn't see it, but I'll update this post soon.

Eitherway, thanks for sharing. :)

Yui-Ikari 03.07.2007 15:40

Thanks for the sharing, i'll check it out tonite. Although, hope my shitty pc doesnt run out of resources xD

m4rk 03.07.2007 15:52

We began to make something like this a while ago but never got to do it in the end, thanks I'll give it a go :)

Just noticed one thing
You use delitem and then additem no?...
That will mess up the pet items (the new item just won't work and will be deleted on next restart)

Ra1n0 03.07.2007 15:52

updated first post with screenshot's

m4rk 03.07.2007 15:59

Sorry for repeating myself (edited my post but ra1n0 replied)

Just noticed one thing
You use delitem and then additem no?...
That will mess up the pet items (the new item just won't work and will be deleted on next restart)

Ra1n0 03.07.2007 16:11

Quote:

You use delitem and then additem no?...
That will mess up the pet items (the new item just won't work and will be deleted on next restart)
yes i use del and add item,but i forgot about pets...need set pets id can_sale=0 in l2auction..items

Code:

update l2auction..items set can_sale=0 where item_id=4424
update l2auction..items set can_sale=0 where item_id=4423
update l2auction..items set can_sale=0 where item_id=4422
update l2auction..items set can_sale=0 where item_id=3500
update l2auction..items set can_sale=0 where item_id=3501
update l2auction..items set can_sale=0 where item_id=3502
update l2auction..items set can_sale=0 where item_id=2375
update l2auction..items set can_sale=0 where item_id=6648
update l2auction..items set can_sale=0 where item_id=6649
update l2auction..items set can_sale=0 where item_id=6650


Squid 03.07.2007 16:21

I have this errors:

Code:

Notice: Undefined offset: 10 in z:\home\localhost\www\l2auction\func.php on line 172

Notice: Undefined offset: 11 in z:\home\localhost\www\l2auction\func.php on line 172

Notice: Undefined offset: 12 in z:\home\localhost\www\l2auction\func.php on line 172

Notice: Undefined offset: 13 in z:\home\localhost\www\l2auction\func.php on line 176

Notice: Undefined offset: 14 in z:\home\localhost\www\l2auction\func.php on line 176

Notice: Undefined offset: 15 in z:\home\localhost\www\l2auction\func.php on line 176

Notice: Undefined offset: 16 in z:\home\localhost\www\l2auction\func.php on line 176

Notice: Undefined offset: 10 in z:\home\localhost\www\l2auction\func.php on line 205

Notice: Undefined offset: 11 in z:\home\localhost\www\l2auction\func.php on line 205

Notice: Undefined offset: 12 in z:\home\localhost\www\l2auction\func.php on line 205

Notice: Undefined offset: 13 in z:\home\localhost\www\l2auction\func.php on line 205

Notice: Undefined offset: 14 in z:\home\localhost\www\l2auction\func.php on line 205

Notice: Undefined offset: 15 in z:\home\localhost\www\l2auction\func.php on line 205

Notice: Undefined offset: 16 in z:\home\localhost\www\l2auction\func.php on line 205


Ra1n0 03.07.2007 16:26

php version ?
and its just notice

remove comment on error_reporting(0); from index.php



PHP Code:

function encrypt($str) { 

.......
line 205
PHP Code:

$dst[$i] = $dst[$i] ^ $dst[$i-1] ^ $key[$i]; 


Ra1n0 03.07.2007 17:41

first post updated, new ver 0.x.x

DHX 03.07.2007 18:50

I've always wanted to make an auction house for L2. I never liked the idea of having to keep your L2 client logged on overnight so I'll check this out.

Drag 03.07.2007 21:59

Lawl cool xD Thanks

Silentz0r 03.07.2007 22:00

Just tested, had a error in the sql query not to worry, but everything works like a charm. very good work. i just have one question.

I actually keep tracks of the items with item's unique id, there is a way to use another function to keep the same ID of the weapon to sell?

_Untitled 03.07.2007 22:17

Quote:

Originally Posted by Silentz0r (Post 90414)
Just tested, had a error in the sql query not to worry, but everything works like a charm. very good work. i just have one question.

I actually keep tracks of the items with item's unique id, there is a way to use another function to keep the same ID of the weapon to sell?

Thers no way to keep same uID .

Ra1n0 03.07.2007 22:32

Quote:

had a error in the sql query
please post this query
Quote:

I actually keep tracks of the items with item's unique id, there is a way to use another function to keep the same ID of the weapon to sell?
Another function ?

Silentz0r 03.07.2007 23:13

Quote:

Originally Posted by Ra1n0 (Post 90418)
please post this query

Another function ?


don't worry about the query was a little problem with my mssql.

i meant another function to use it in your l2auction, like

#30 MoveItemPacket("ddddd")
#40 MoveItem2Packet("ddddS")

not sure if that functions even work,i just checked this post:
https://postpacific.mmorpg-game.onli...31&postcount=6

i just wanted to keep the uniques ID's, that's all if isnt possible well what the heck! xD. but overall this share rocks 10/10.

FidoW 03.07.2007 23:35

Quote:

Originally Posted by Silentz0r (Post 90421)
don't worry about the query was a little problem with my mssql.

i meant another function to use it in your l2auction, like

#30 MoveItemPacket("ddddd")
#40 MoveItem2Packet("ddddS")

not sure if that functions even work,i just checked this post:
https://postpacific.mmorpg-game.onli...31&postcount=6

i just wanted to keep the uniques ID's, that's all if isnt possible well what the heck! xD. but overall this share rocks 10/10.

Im not sure, i dont enough time to check this auction system right now but at first see and thinking about how to do... MoveItemPacket cant be used, the item need to be deleted in the same moment you add it to the auction... its a really good idea :wink: (im smashing my head into the wall because i dont have that idea by my own before :banghead: ), right now in out of my country on vacations, but the same day i return i will check it, looks very good.

Ra1n0 03.07.2007 23:47

Quote:

i meant another function to use it in your l2auction, like

#30 MoveItemPacket("ddddd")
#40 MoveItem2Packet("ddddS")
no way...i all day think of how to create auction system..
moveitem cant be used

if u need keep uid for viewing game logs..i create auction logs..like who sell,who buy,date-time,uid,etc

l2serverfull 03.07.2007 23:59

no work in mssql 2000 ?

Ra1n0 04.07.2007 00:12

work..but need to create install.sql for 2000 server..

http://rapidshare.com/files/40880639...l2000.sql.html

Silentz0r 04.07.2007 04:39

Quote:

Originally Posted by Ra1n0 (Post 90425)
no way...i all day think of how to create auction system..
moveitem cant be used

if u need keep uid for viewing game logs..i create auction logs..like who sell,who buy,date-time,uid,etc

Perfect idea, i was thinking in that too. if you can do it would be awsome. Thank you for the share.

Zil 04.07.2007 12:13

Hmm, maybe need function to stop selling item? Cause if u set item on auction then u can't back this item in inventory if them not selled :)

sorry for bad english :p

khelben 04.07.2007 14:21

One thing i noticed is in Item.txt, the comma delimiter causes problems.

Some items have a comma in their name, causing the bulk insert to proceed to the next field

Book: Basics of Giants Magic, Chapter 5

error: Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 5927, column 5 (can_sale).

I'm changing my item.txt to be tab delimited. (Works better for excel exporting anyway if i add my own items)

So far other than that small issue seems to be working great.

Logs would be a welcome addition, as well as the ability to cancel a sale, or for a sale to 'time out' after x days

Ra1n0 04.07.2007 14:24

Quote:

Cause if u set item on auction then u can't back this item in inventory if them not selled
added in 2do
Quote:

I'm changing my item.txt to be tab delimited.
recreate this file in next version

khelben 04.07.2007 16:24

Here, hope this saves some time.

Tab Delimited SQL 2005 Installer and Tab delimited items.txt

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
l2auction_sql_items_tab_delimited.rar — 51905 байт

Ra1n0 04.07.2007 18:42

good,thx....

Ra1n0 04.07.2007 23:39

first post updated..new ver x.x

Zil 05.07.2007 05:42

Very good stuff, I like it :)
Hmm, new Idea :
Maybe drop items by groups? as weapons, armors, etcitems and etc?:)

jekin 05.07.2007 08:41

Very nice tool, thanks.
Yet another idea:
Currently, you can deny certain char_id's from participating in auction. I suppose, it could be a good idea to allow only certain char_id's to participate.

olmer2002 05.07.2007 09:16

Whether it is vulnerable for sql injection? =) I think yes, there are no filters on inquiries

Ra1n0 05.07.2007 09:23

Quote:

there are no filters on inquiries
download and see code

/rus/ Вот нахера что то говорить когда ты даже не потрудился скачать и посмотреть? /rus/

Ra1n0 05.07.2007 09:24

Quote:

Maybe drop items by groups? as weapons, armors, etcitems and etc?
maybe in next version

Ra1n0 05.07.2007 09:52

Quote:

[rus]
Можно сделать так, что бы при добавлении вещи на продажу, отсылался аннонс типа: На аукцион добавлено то то за столько то.
[/rus]
i dont think is that good idea..if auction use 1k users...1 sec=1 announce ?))


All times are GMT. The time now is 23:18.