QuaS
Cykotitan Pwned =/
Attention (8 Juny)
DO NOT USE IT! IT'S SQL VUNERABLE!
Attention (28 June)
Don't use this system. There is bug with a item u are trying to add ( i mean a blocked one) They back to a owner but stats are changed (try to puut soft boots 16 mins left, and there back wih a parcel bran new one, etc.) Using on own Risk.
I'll Fix it in next update.
Last Update: [09 April 2010. 17:00 CET]
auctions.php - Ver: 1.18
accountdepot.php - Ver: 1.21
Hello Otlanders!
I'd like to show you my auction system. It was finished in December and i decided to relase it. it is something like an ebay. You can sell, manage, buy items being offline.
Please note that it is a Beta Stage!.
Screenshots:
Here We go!
1. Instalation:
a) Sql
Queries:
b) PHP:
auctions.php: (look on attachments. File is just too long xD)
account_depot.php: (same)
index.php:
You know where:
Also add a link on ur site to ?subtopic=auctions and ?subtopic=account_store
Configuration:
in auctions.php:
Change to ur items folder. (WITHOUT '/' at end!. There is also many diffrent option. They are explained in file.
in account_depot.php
same as earlier.
Images
Copy folder auctions to /images/
b) LUA:
1.Open folder lua/
Copy all as it should be.
Open Account_Depot.lua in movements.
Change mailBoxPos to any mailbox position on your map in Account_Depot.lua in Movements and auction.lua Globalevents scripts.
now globalevents.xml:
movements.xml
Add npc Margot a place to Spawn
Create Somewhere (i this the best fit near dp) Some item(the best is coal basin xD) and add to it Actionid 22000
I this it is all.
2. How does it Works?:
Just Look:
I put MPA to coal Basin.
and now you can make an auction or just take it back do depot:
And the hot Margot:
3. Common Problems:
Q: Parcels doens't works
A: Make sure that scripts in movements and globalevents are set good mailBoxPos. If they do then You propably have Diffrent ID of Depot and Town. Or you just didn't execute a query. There is also another reason Timing in globalevents.xml. Make sere that u need seconds or miliseconds (default set to ms)
Q: Does this script store information about special atributes eg: other name, attack, def etc?
A: At the moment, no. It just takes ID and name of item. Possibly change in future updates.
Ufff.. Finally the end. I'd like to thanks:
Richux for a place to test it !
Chojrak His idea about mailBox.
Please, post your opinion
Regards
QuaS~
Changelog:
DO NOT USE IT! IT'S SQL VUNERABLE!
Attention (28 June)
Don't use this system. There is bug with a item u are trying to add ( i mean a blocked one) They back to a owner but stats are changed (try to puut soft boots 16 mins left, and there back wih a parcel bran new one, etc.) Using on own Risk.
I'll Fix it in next update.
Last Update: [09 April 2010. 17:00 CET]
auctions.php - Ver: 1.18
accountdepot.php - Ver: 1.21
Hello Otlanders!
I'd like to show you my auction system. It was finished in December and i decided to relase it. it is something like an ebay. You can sell, manage, buy items being offline.
Please note that it is a Beta Stage!.
Screenshots:
Here We go!
1. Instalation:
a) Sql
Queries:
PHP:
CREATE TABLE IF NOT EXISTS `z_slots` (
`id` int(11) NOT NULL auto_increment,
`aid` int(11) default NULL,
`val` int(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `z_auctions` (
`id` int(11) NOT NULL auto_increment,
`player_name` varchar(255) default NULL,
`item_id` int(11) default NULL,
`item_name` varchar(255) default NULL,
`count` int(11) default NULL,
`cost` int(11) default NULL,
`date` int(11) default NULL,
`date_expire` int(11) default NULL,
`account_id` int(11) default NULL,
`active` int(11) default '0',
`count_now` int(11) default '0',
`des` text,
`smiles` int(11) default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `z_purcharsers` (
`id` int(11) NOT NULL auto_increment,
`player_name` varchar(255) default NULL,
`auction_id` int(11) default NULL,
`count` int(11) default NULL,
`date` int(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `z_account_depotitems` (
`id` int(11) NOT NULL auto_increment,
`account_id` int(11) NOT NULL,
`item_id` int(11) NOT NULL,
`count` int(11) NOT NULL,
`added` int(15) NOT NULL,
`item_name` varchar(255) collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `z_account_communication` (
`id` int(11) NOT NULL auto_increment,
`player_id` int(11) NOT NULL,
`item_id` int(11) NOT NULL,
`count` int(11) NOT NULL,
`added` int(15) NOT NULL,
`done` int(15) NOT NULL,
`alle` int(11) NOT NULL default '0',
`account_id` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
ALTER TABLE accounts ADD last_auction INT(11) default '0'
ALTER TABLE accounts ADD last_acc_action INT(11) default '0'
ALTER TABLE accounts ADD balance INT(11) default '0'
b) PHP:
auctions.php: (look on attachments. File is just too long xD)
account_depot.php: (same)
index.php:
You know where:
PHP:
case "account_store";
$subtopic = "account_store";
$topic = "Your Account Store";
include("account_depot.php");
break;
case "auctions";
$topic = "Auctions";
$subtopic = "auctions";
include("auctions.php");
break;
Also add a link on ur site to ?subtopic=auctions and ?subtopic=account_store
Configuration:
in auctions.php:
PHP:
function replaceImage($id, $imgdir='images/items')
in account_depot.php
PHP:
function replaceImage($id, $imgdir='images/items')
Images
Copy folder auctions to /images/
b) LUA:
1.Open folder lua/
Copy all as it should be.
Open Account_Depot.lua in movements.
Change mailBoxPos to any mailbox position on your map in Account_Depot.lua in Movements and auction.lua Globalevents scripts.
now globalevents.xml:
PHP:
<globalevent name="slots" interval="34000" event="script" value="auction_s.lua"/>
<globalevent name="auction" interval="36000" event="script" value="auction.lua"/>
movements.xml
PHP:
<movevent type="AddItem" tileitem="1" actionid="22000" event="script" value="account_depot.lua"/>
Add npc Margot a place to Spawn
Create Somewhere (i this the best fit near dp) Some item(the best is coal basin xD) and add to it Actionid 22000
I this it is all.
2. How does it Works?:
Just Look:
I put MPA to coal Basin.
and now you can make an auction or just take it back do depot:
And the hot Margot:
3. Common Problems:
Q: Parcels doens't works
A: Make sure that scripts in movements and globalevents are set good mailBoxPos. If they do then You propably have Diffrent ID of Depot and Town. Or you just didn't execute a query. There is also another reason Timing in globalevents.xml. Make sere that u need seconds or miliseconds (default set to ms)
Q: Does this script store information about special atributes eg: other name, attack, def etc?
A: At the moment, no. It just takes ID and name of item. Possibly change in future updates.
Ufff.. Finally the end. I'd like to thanks:
Richux for a place to test it !
Chojrak His idea about mailBox.
Please, post your opinion
Regards
QuaS~
Changelog:
Code:
patch 1.18: SQL vulnerable fixed. Problem with missing ';' at end of queries (account_depot.php fixed too [ver 1.21]). Thanks Chojrak for telling me this bug.
patch 1.17: Added replaceImage. If image doesn't exist then show default image.
patch 1.16: Some visual changes.
patch 1.15: Post vulnerable fixed. Sorry richux xP
Attachments
-
auction_quas.rar34.5 KB · Views: 176 · VirusTotal
Last edited: