brick('header'); ?>
brick('announcement'); $this->brick('pageTemplate'); $this->brick('infobox'); ?>
brick('redButtons'); ?>

name; ?>

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): ?> end): echo " \n"; endif; if ($o = $this->objectiveList): foreach ($o as $i => $ol): if (isset($ol['text'])): echo ' \n"; elseif (!empty($ol['proxy'])): // this implies creatures echo ' \n"; elseif (isset($ol['typeStr'])): if (in_array($ol['typeStr'], ['item', 'spell'])): echo ' '; else /* if (in_array($ol['typeStr'], ['npc', 'object', 'faction'])) */: echo ' '; endif; echo '\n"; endif; endforeach; endif; if ($this->suggestedPl): echo ' \n"; endif; ?>

 

".$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 "
\n"; foreach ($block1 as $pId => $name): echo ' \n"; endforeach; echo "
  •  
'.$name."
\n"; if ($block2): // may be empty echo "
\n"; foreach ($block2 as $pId => $name): echo ' \n"; endforeach; echo "
  •  
'.$name."
\n"; endif; echo "
  •  
'.$ol['name'].''.($ol['extraText']).(!empty($ol['qty']) ? ' ('.$ol['qty'].')' : null)."

 

'.Lang::quest('suggestedPl').Lang::main('colon').$this->suggestedPl."
providedItem): echo "
\n"; echo ' '.Lang::quest('providedItem').Lang::main('colon')."\n"; echo " \n"; echo ' '; echo '\n"; ?>
'.$p['name'].''.($p['qty'] ? ' ('.$ol['qty'].')' : null)."
brick('mapper'); if ($this->details): echo '

'.Lang::quest('description')."

\n" . $this->details."\n"; endif; if ($this->requestItems && $this->objectives): ?>

offerReward && ($this->requestItems || $this->objectives)): ?>

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 "
\n"; endif; $this->brick('mail', ['offset' => ++$offset]); if (!empty($this->transfer)): echo "
"; echo "
\n ".$this->transfer."\n"; endif; ?>

brick('lvTabs', ['relTabs' => true]); $this->brick('contribute'); ?>
brick('footer'); ?>