SelectRow(' SELECT name, name_loc2, name_loc3, name_loc6, name_loc8 FROM creature_template ct LEFT JOIN locales_creature lc ON lc.entry = ct.entry WHERE ct.entry = ?d', $id ); return Util::localizedString($n, 'name'); } public function renderTooltip() { if (!$this->curTpl) return null; if (isset($this->tooltips[$this->id])) return $this->tooltips[$this->id]; $level = '??'; $type = $this->curTpl['type']; $row3 = [Lang::$game['level']]; $fam = $this->curTpl['family']; // todo (low): rework, when factions are implemented $fac = DB::Aowow()->selectRow('SELECT * FROM dbc.faction f JOIN dbc.factionTemplate ft ON f.id = ft.factionId WHERE ft.id = ?d AND NOT f.reputationFlags1 & 0x4 AND f.reputationIndex <> -1', $this->curTpl['faction_A']); if (!($this->curTpl['type_flags'] & 0x4)) { $level = $this->curTpl['minlevel']; if ($level != $this->curTpl['maxlevel']) $level .= ' - '.$this->curTpl['maxlevel']; } $row3[] = $level; if ($type) $row3[] = Lang::$game['ct'][$type]; $row3[] = '('.Lang::$npc['rank'][$this->curTpl['rank']].')'; $x = ''; $x .= ''; if ($sn = $this->getField('subname', true)) $x .= ''; $x .= ''; if ($type == 1 && $fam) // 1: Beast $x .= ''; if ($fac) $x .= ''; $x .= '
'.$this->getField('name', true).'
'.$sn.'
'.implode(' ', $row3).'
'.Lang::$game['fa'][$fam].'
'.Util::localizedString($fac, 'name').'
'; $this->tooltips[$this->id] = $x; return $x; } public function getListviewData() { } public function addGlobalsToJScript(&$refs) { } public function addRewardsToJScript(&$refs) { } } ?>