=$this->name; ?>
unavailable): ?> =Lang::quest('unavailable'); ?> objectives): echo $this->objectives."\n"; elseif ($this->requestItems): echo ''.Lang::quest('progress')."
\n"; echo $this->requestItems."\n"; elseif ($this->offerReward): echo ''.Lang::quest('completion')."
\n"; echo $this->offerReward."\n"; endif; if ($this->end || $this->objectiveList): ?>
| ".$this->end." | ||||
|---|---|---|---|---|---|
| '.$ol['text']." | ||||
| '.$ol['name'].$ol['extraText'].''.($ol['qty'] > 1 ? ' ('.$ol['qty'].')' : null).' \n";
$block1 = array_slice($ol['proxy'], 0, ceil(count($ol['proxy']) / 2), true);
$block2 = array_slice($ol['proxy'], ceil(count($ol['proxy']) / 2), null, true);
echo "
| ||||
| '; else /* if (in_array($ol['typeStr'], ['npc', 'object', 'faction'])) */: echo ' | |||||
| '.$ol['name'].''.($ol['extraText']).(!empty($ol['qty']) ? ' ('.$ol['qty'].')' : null)." | |||||
| '.Lang::quest('suggestedPl').Lang::main('colon').$this->suggestedPl." |
| '; echo ' | '.$p['name'].''.($p['qty'] ? ' ('.$ol['qty'].')' : null)." |
|---|
'.Lang::quest('description')."
\n" . $this->details."\n"; endif; if ($this->requestItems && $this->objectives): ?>=Lang::quest('progress'); ?>
offerReward && ($this->requestItems || $this->objectives)): ?>=Lang::quest('completion'); ?>
rewards): echo ''.Lang::main('rewards')."
\n"; if (!empty($r['choice'])): $this->brick('rewards', ['rewTitle' => Lang::quest('chooseItems'), 'rewards' => $r['choice'], 'offset' => $offset]); $offset += count($r['choice']); endif; if (!empty($r['spells'])): if (!empty($r['choice'])): echo " \n"; endif; if (!empty($r['spells']['learn'])): $this->brick('rewards', ['rewTitle' => Lang::quest('spellLearn'), 'rewards' => $r['spells']['learn'], 'offset' => $offset, 'extra' => $r['spells']['extra']]); $offset += count($r['spells']['learn']); elseif (!empty($r['spells']['cast'])): $this->brick('rewards', ['rewTitle' => Lang::quest('spellCast'), 'rewards' => $r['spells']['cast'], 'offset' => $offset, 'extra' => $r['spells']['extra']]); $offset += count($r['spells']['cast']); endif; endif; if (!empty($r['items']) || !empty($r['money'])): if (!empty($r['choice']) || !empty($r['spells'])): echo " \n"; endif; $addData = ['rewards' => !empty($r['items']) ? $r['items'] : null, 'offset' => $offset, 'extra' => !empty($r['money']) ? $r['money'] : null]; $addData['rewTitle'] = empty($r['choice']) ? Lang::quest('receiveItems') : Lang::quest('receiveAlso'); $this->brick('rewards', $addData); endif; endif; if ($g = $this->gains): echo ''.Lang::main('gains')."
\n"; echo ' '.Lang::quest('gainsDesc').Lang::main('colon')."\n"; echo "- \n";
if (!empty($g['xp'])):
echo '
- '.Lang::nf($g['xp']).' '.Lang::quest('experience')."\n";
endif;
if (!empty($g['rep'])):
foreach ($g['rep'] as $r):
if ($r['qty'][1] && User::isInGroup(U_GROUP_EMPLOYEE))
$qty = $r['qty'][0] . sprintf(Util::$dfnString, Lang::faction('customRewRate'), ($r['qty'][1] > 0 ? '+' : '').$r['qty'][1]);
else
$qty = array_sum($r['qty']);
echo '
- '.($r['qty'][0] < 0 ? ''.$qty.'' : $qty).' '.Lang::npc('repWith').' '.$r['name']."\n";
endforeach;
endif;
if (!empty($g['title'])):
echo '
- '.Lang::quest('theTitle', [$g['title']])."\n";
endif;
if (!empty($g['tp'])):
echo '
- '.Lang::quest('bonusTalents', [$g['tp']])."\n";
endif;
echo "