getAlliance($aid); $members = $database->getAllMember($aid); if(!$alidata){ echo "
Alliance not found
"; return; } // calculeaza max dupa ambasada ca fallback $embLevel = 0; $embQ = mysqli_query($GLOBALS["link"], "SELECT MAX(level) as lvl FROM ".TB_PREFIX."bdata b JOIN ".TB_PREFIX."vdata v ON v.wref=b.wid WHERE v.owner=".(int)$alidata['leader']." AND b.type=18"); if($r = mysqli_fetch_assoc($embQ)) $embLevel = (int)$r['lvl']; $calcMax = max(3, $embLevel * 3); ?>

-

Calculat automat: (Ambasada lvl × 3)

Select the bonuses to update. Changing a level cancels its current upgrade and preserves accumulated resources. Level 5 clears remaining resources.

getState($aid) as $btype => $bonus): $bonusType = AllianceBonus::types()[$btype]; ?>

Resources in pool: 0): ?>

Alliance bonuses are disabled or their database table is unavailable.