Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Share] L2Auction (https://postpacific.loc-online.com/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 [email protected]]
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.loc-online.com/f...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.loc-online.com/f...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


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