diff --git a/auctionChar.php b/auctionChar.php index a391c41..c5b6733 100644 --- a/auctionChar.php +++ b/auctionChar.php @@ -483,9 +483,20 @@ if ($auction['characterAuction']) { AND `p`.`group_id` = 1 LIMIT 1 ;"); - if (isset($player['online']) && $player['online'] == 0) { - if (isset($player['alreadyInAuction']) && $player['alreadyInAuction'] == 0) { - $status = true; + // Verify storage account ID exist + $storage_account = mysql_select_single(" + SELECT `id` + FROM `accounts` + WHERE `id`={$auction['storage_account_id']} + LIMIT 1; + "); + if ($storage_account === false) { + data_dump($auction, false, "Configured storage_account_id in config.php does not exist!"); + } else { + if (isset($player['online']) && $player['online'] == 0) { + if (isset($player['alreadyInAuction']) && $player['alreadyInAuction'] == 0) { + $status = true; + } } } } diff --git a/config.php b/config.php index 323bf19..ed543b4 100644 --- a/config.php +++ b/config.php @@ -919,7 +919,7 @@ 'characterAuction' => false, // Enable/disable this system // Account ID of the account that stores players in the auction. // Make sure storage account has a very secure password! - 'storage_account_id' => 5, // Separate secure account ID, not your GM. + 'storage_account_id' => 500000, // Separate secure account ID, not your GM. 'step' => 5, // Minimum amount someone can raise a bid by 'step_duration' => 1 * 60 * 60, // When bidding over someone else, extend bid period by 1 hour. 'lowestLevel' => 20, // Minimum level of sold character