=$this->h1; ?>
unavailable): ?> =Lang::quest('unavailable'); ?> objectives): echo $this->objectives.PHP_EOL; elseif ($this->requestItems): echo ''.Lang::quest('progress').'
'.PHP_EOL; echo $this->requestItems.PHP_EOL; elseif ($this->offerReward): echo ''.Lang::quest('completion').'
'.PHP_EOL; echo $this->offerReward.PHP_EOL; endif; $iconOffset = 0; if ($this->end || $this->objectiveList): ?>
| '.$objective.' |
|---|---|
| '.$text.''.($qty ? ' ('.$qty.')' : '').' |
| '.$this->end.' |
| '.Lang::quest('suggestedPl', [$this->suggestedPl]).' |
'.Lang::quest('description').'
'.PHP_EOL; echo ' '.$this->details.PHP_EOL; endif; if ($this->requestItems && $this->objectives): ?>=Lang::quest('progress'); ?>
offerReward && ($this->requestItems || $this->objectives)): ?>=Lang::quest('completion'); ?>
rewards): echo ''.Lang::main('rewards').'
'.PHP_EOL; if ($choice): $this->brick('rewards', ['rewTitle' => Lang::quest('rewardChoices'), 'rewards' => $choice, 'offset' => $iconOffset]); $iconOffset += count($choice); endif; if ($spells): if ($choice): echo ' '.PHP_EOL; endif; $this->brick('rewards', ['rewTitle' => $spells['title'], 'rewards' => $spells['cast'], 'offset' => $iconOffset, 'extra' => $spells['extra']]); $iconOffset += count($spells['cast']); endif; if ($items || $money): if ($choice || $spells): echo ' '.PHP_EOL; endif; $this->brick('rewards', array( 'rewTitle' => $choice ? Lang::quest('rewardAlso') : Lang::quest('rewardItems'), 'rewards' => $items ?: null, 'offset' => $iconOffset, 'extra' => $money ?: null )); endif; endif; if ([$xp, $rep, $title, $tp, $honor, $arena] = $this->gains): ?>=Lang::main('gains'); ?>
=Lang::quest('gainsDesc').Lang::main('colon'); ?>- '.sprintf($r['qty'][0] < 0 ? '%s' : '%s', $r['qty'][1]).' '.Lang::npc('repWith').' '.$r['name'].''.PHP_EOL;
endforeach;
endif;
if ($title):
echo '
- '.Lang::quest('rewardTitle', $title).''.PHP_EOL;
endif;
if ($tp):
echo '
- '.Lang::quest('bonusTalents', [$tp]).''.PHP_EOL;
endif;
if ($arena || $honor):
echo '
- '; if ($honor[0]): $a = ''.$honor[0].''; $a = $honor[1] == SIDE_BOTH ? ''.$a.'' : $a; echo ''.$a.''; endif; if ($arena): echo ' '.$arena.''; endif; echo ''.PHP_EOL;
endif;
echo '
'.Lang::nf($xp).' '.Lang::quest('experience').'
'.PHP_EOL;
endif;
if ($rep):
foreach ($rep as $r):
echo '