HalfAway
Thanatos
I converted and edited this script to ZnoteAAC because of a request by @zabuzo here:
https://otland.net/threads/help-convert-this-page-to-znote.243672/
The script was orginally created by @vDk.
Code:
Item images is loaded from my images host.
items.************.
Image
http://www.************/talkactionMarket.png
You need to add tables in your database and a in-game talkaction script for your server you can find it here:
https://otland.net/threads/offline-player-to-player-item-trader-auction-system.51447/
https://otland.net/threads/help-convert-this-page-to-znote.243672/
The script was orginally created by @vDk.
Code:
PHP:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
$cache = new Cache('engine/cache/ingmarket');
if ($cache->hasExpired()) {
$inGameAuctions = mysql_select_multi('SELECT `auction_system`.`player`, `auction_system`.`id`, `auction_system`.`item_name`, `auction_system`.`item_id`, `auction_system`.`count`, `auction_system`.`cost`, `auction_system`.`date`, `players`.`name` FROM `auction_system`, `players` WHERE `players`.`id` = `auction_system`.`player` ORDER BY `auction_system`.`id` DESC');
$cache->setContent($inGameAuctions);
$cache->save();
} else {
$inGameAuctions = $cache->load();
}
$players = 0;
?>
<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<th>
<b>Instruction<b>
</th>
</tr>
<tr>
<td align="center">
<h2>Commands</h2><b>!offer add, itemName, itemPrice, itemCount</b><br/>
<small>example: !offer add, plate armor, 500, 1</small><br/><br/>
<b>!offer buy, AuctionID</b><br/><small>example: !offer buy, 1943</small><br /><br/>
<b>!offer remove, AuctionID</b><br/><small>example: !offer remove, 1943</small><br /><br/>
<b>!offer withdraw</b><br/><small>Use this command to get money for sold items.</small>
</td>
</tr>
</table><br/>
<table width="100%" class="table table-striped table-bordered table-condensed">
<tr>
<th align="center">
AuctionID
</td>
<th class="white">
Image
</td>
<th class="white">
Item Name
</td>
<th class="white">
Player
</td>
<th class="white">
Count
</td>
<th class="white">
Price
</td>
<th class="white">
Buy Command
</td>
</tr>
<?php
if ($inGameAuctions) {
foreach($inGameAuctions as $auction) {
$players++;
if(is_int($players / 2)) {
$bgcolor = "black";
} else {
$bgcolor = "grey";
}
$cost = round($auction['cost']/1000, 2);
?>
<tr>
<td>
<?php echo $auction['id']; ?>
</td>
<td>
<img src="http://items.************/<?php echo $auction['item_id']; ?>.gif"/>
</td>
<td>
<?php echo $auction['item_name']; ?>
</td>
<td>
<a href='characterprofile?name=<?php echo $auction['name']; ?>'>
<?php echo $auction['name']; ?>
</a>
</td>
<td>
<?php echo $auction['count']; ?>
</td>
<td>
<?php echo $cost;?>k<br/><small><?php echo $auction['cost']; ?>gp</small>
</td>
<td>
!offer buy, <?php echo $auction['id']; ?>
</td>
</tr>
<?php
}
} else {
echo '<tr><td colspan="7">Currently no auctions exists..</td></tr>';
}
echo '</table>';
echo '<p align="right"><span style="font-size: 9px;">System originally created by <a href="https://otland.net/members/vdk.1553/">vDk</a>. | Converted to ZnoteAAC and edited by <a href="https://otland.net/members/halfaway.142275/">HalfAway</a>.</span></p>';
include 'layout/overall/footer.php'; ?>
Item images is loaded from my images host.
items.************.
Image
http://www.************/talkactionMarket.png
You need to add tables in your database and a in-game talkaction script for your server you can find it here:
https://otland.net/threads/offline-player-to-player-item-trader-auction-system.51447/