['class' => 'r1', 'name' => LUMBER],
2 => ['class' => 'r2', 'name' => CLAY],
3 => ['class' => 'r3', 'name' => IRON],
4 => ['class' => 'r4', 'name' => CROP],
];
?>
resarray['f'.$id];?>
plus):?>
|
>
|
|
>
|
'.NOT_ENOUGH_RESOURCES.'';
elseif (isset($_GET['e2'])) echo '
'.INVALID_OFFER.'
';
elseif (isset($_GET['e3'])) echo '
'.NOT_ENOUGH_MERCHANTS.'
';
?>
|
|
|
|
|
|
onsale;
$totalOffers = count($offers);
if ($totalOffers > 0) {
$end = min($u + 40, $totalOffers);
for ($i = $u; $i < $end; $i++) {
if (!isset($offers[$i])) continue;
$offer = $offers[$i];
$reqMerc = max(1, (int)ceil($offer['wamt'] / $market->maxcarry));
$vref = (int)$offer['vref'];
$owner = (int)$database->getVillageField($vref, "owner");
$username = htmlspecialchars($database->getUserField($owner, "username", 0));
$villagename = htmlspecialchars($database->getVillageField($vref, "name"));
$hasRes = true;
switch ($offer['wtype']) {
case 1: $hasRes = $village->awood > $offer['wamt']; break;
case 2: $hasRes = $village->aclay > $offer['wamt']; break;
case 3: $hasRes = $village->airon > $offer['wamt']; break;
case 4: $hasRes = $village->acrop > $offer['wamt']; break;
}
?>
|
|
|
getTimeFormat($offer['duration']);?> |
|
$market->merchantAvail()):?>
|
access != BANNED):?>
|
|
'.NO_AVAILABLE_OFFERS.' | ';
}
?>
|
«';
else echo '«';
if ($next >= $totalOffers) echo '»';
else echo '»';
?>
|