ALTER TABLE `players` ADD `auction_balance` INT( 11 ) NOT NULL DEFAULT '0';
oraz
CREATE TABLE `auction_system` (
`id` int(11) NOT NULL auto_increment,
`player` int(11),
`item_id` int(11),
`item_name` varchar(255),
`count` int(11),
`cost` int(11),
`date` int(11),
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
** Część PHP **
Robimy plik auctionsystem.php i wklejamy do niego:
Instruction |
Commands!offer add, itemName, itemPrice, itemCountexample: !offer add, plate armor, 500, 1 !offer buy, AuctionID example: !offer buy, 1943 !offer remove, AuctionID example: !offer remove, 1943 !offer withdraw Use this command to get money for sold items. |
Auctions |
Currently is no one active Auction. |
System created by vDk.
'; } else { foreach($auctions as $auction) { $players++; if(is_int($players / 2)) $bgcolor = $config['site']['lightborder']; else $bgcolor = $config['site']['darkborder']; $cost = round($auction['cost']/1000, 2); $content .= 'System created by vDk.
'; } ?>