mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 11:19:22 +02:00
House bidding fix
This commit is contained in:
parent
7a79460c1c
commit
c197b4de4f
@ -20,6 +20,8 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
|
|||||||
$bid_char = (int)$bid_char;
|
$bid_char = (int)$bid_char;
|
||||||
$bid_amount = (int)$bid_amount;
|
$bid_amount = (int)$bid_amount;
|
||||||
$player = mysql_select_single("SELECT `id`, `account_id`, `name`, `level`, `balance` FROM `players` WHERE `id`='$bid_char' LIMIT 1;");
|
$player = mysql_select_single("SELECT `id`, `account_id`, `name`, `level`, `balance` FROM `players` WHERE `id`='$bid_char' LIMIT 1;");
|
||||||
|
|
||||||
|
if (user_logged_in() === true && $player['account_id'] == $session_user_id) {
|
||||||
// Does player have or need premium?
|
// Does player have or need premium?
|
||||||
$premstatus = $config['houseConfig']['requirePremium'];
|
$premstatus = $config['houseConfig']['requirePremium'];
|
||||||
if ($premstatus) {
|
if ($premstatus) {
|
||||||
@ -80,6 +82,7 @@ if ($house !== false && $config['TFSVersion'] === 'TFS_10') {
|
|||||||
} else echo "<b><font color='red'>Your character is to low level, must be higher level than ", $config['houseConfig']['levelToBuyHouse']-1 ," to buy a house.</font></b>";
|
} else echo "<b><font color='red'>Your character is to low level, must be higher level than ", $config['houseConfig']['levelToBuyHouse']-1 ," to buy a house.</font></b>";
|
||||||
} else echo "<b><font color='red'>You cannot have more houses.</font></b>";
|
} else echo "<b><font color='red'>You cannot have more houses.</font></b>";
|
||||||
} else echo "<b><font color='red'>You need premium account to purchase houses.</font></b>";
|
} else echo "<b><font color='red'>You need premium account to purchase houses.</font></b>";
|
||||||
|
} else echo "<b><font color='red'>You may only bid on houses for characters on your account.</font></b>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTML structure and logic
|
// HTML structure and logic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user