mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
parent
2ff7dd077c
commit
b7ff2616d1
@ -16,7 +16,7 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
|
|||||||
// Bid on house logic
|
// Bid on house logic
|
||||||
$bid_char = getValue($_POST['char']);
|
$bid_char = getValue($_POST['char']);
|
||||||
$bid_amount = getValue($_POST['amount']);
|
$bid_amount = getValue($_POST['amount']);
|
||||||
if ($bid_amount !== false && $bid_char !== false) {
|
if ($bid_amount !== false && $bid_char !== false && $house['bid_end'] > time()) {
|
||||||
$bid_char = (int)$bid_char;
|
$bid_char = (int)$bid_char;
|
||||||
$bid_amount = (int)$bid_amount;
|
$bid_amount = (int)$bid_amount;
|
||||||
|
|
||||||
@ -84,6 +84,7 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
|
|||||||
echo "<br><b>Bid will end on:</b> ". getClock($house['bid_end'], true);
|
echo "<br><b>Bid will end on:</b> ". getClock($house['bid_end'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($house['bid_end'] > time()) {
|
||||||
if (user_logged_in()) {
|
if (user_logged_in()) {
|
||||||
// Your characters, indexed by char_id
|
// Your characters, indexed by char_id
|
||||||
$yourChars = mysql_select_multi("SELECT `id`, `name`, `balance` FROM `players` WHERE `account_id`='". $user_data['id'] ."';");
|
$yourChars = mysql_select_multi("SELECT `id`, `name`, `balance` FROM `players` WHERE `account_id`='". $user_data['id'] ."';");
|
||||||
@ -91,11 +92,6 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
|
|||||||
$charData = array();
|
$charData = array();
|
||||||
foreach ($yourChars as $char) {
|
foreach ($yourChars as $char) {
|
||||||
$charData[$char['id']] = $char;
|
$charData[$char['id']] = $char;
|
||||||
if (get_character_guild_rank($char['id']) > 0) {
|
|
||||||
$guild = get_player_guild_data($char['id']);
|
|
||||||
$charData[$char['id']]['guild'] = $guild['guild_id'];
|
|
||||||
$charData[$char['id']]['guild_rank'] = $guild['rank_level'];
|
|
||||||
} else $charData[$char['id']]['guild'] = '0';
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
@ -112,6 +108,7 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
|
|||||||
<?php
|
<?php
|
||||||
} else echo "<br>You need a character to bid on this house.";
|
} else echo "<br>You need a character to bid on this house.";
|
||||||
} else echo "<br>You need to login before you can bid on houses.";
|
} else echo "<br>You need to login before you can bid on houses.";
|
||||||
|
} else echo "<br><b>Bid has ended! House transaction will proceed next server restart assuming active bidder have sufficient balance.</b>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user