mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* added quests to search
* added forgotten localizations
This commit is contained in:
@@ -5,6 +5,8 @@ if (!defined('AOWOW_REVISION'))
|
|||||||
|
|
||||||
class ItemList extends BaseType
|
class ItemList extends BaseType
|
||||||
{
|
{
|
||||||
|
use ListviewHelper;
|
||||||
|
|
||||||
public static $type = TYPE_ITEM;
|
public static $type = TYPE_ITEM;
|
||||||
|
|
||||||
public $tooltip = '';
|
public $tooltip = '';
|
||||||
@@ -34,6 +36,15 @@ class ItemList extends BaseType
|
|||||||
// readdress itemset .. is wrong for virtual sets
|
// readdress itemset .. is wrong for virtual sets
|
||||||
if ($pieceToSet && isset($pieceToSet[$this->id]))
|
if ($pieceToSet && isset($pieceToSet[$this->id]))
|
||||||
$this->json[$this->id]['itemset'] = $pieceToSet[$this->id];
|
$this->json[$this->id]['itemset'] = $pieceToSet[$this->id];
|
||||||
|
|
||||||
|
// unify those pesky masks
|
||||||
|
$_ = $this->curTpl['AllowableClass'];
|
||||||
|
if ($_ < 0 || ($_ & CLASS_MASK_ALL) == CLASS_MASK_ALL)
|
||||||
|
$this->templates[$this->id]['AllowableClass'] = 0;
|
||||||
|
|
||||||
|
$_ = $this->curTpl['AllowableRace'];
|
||||||
|
if ($_ < 0 || ($_ & RACE_MASK_ALL) == RACE_MASK_ALL)
|
||||||
|
$this->templates[$this->id]['AllowableRace'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->reset(); // restore 'iterator'
|
$this->reset(); // restore 'iterator'
|
||||||
@@ -134,13 +145,15 @@ class ItemList extends BaseType
|
|||||||
if ($x = $this->curTpl['ContainerSlots'])
|
if ($x = $this->curTpl['ContainerSlots'])
|
||||||
$data[$this->id]['nslots'] = $x;
|
$data[$this->id]['nslots'] = $x;
|
||||||
|
|
||||||
|
$_ = $this->curTpl['AllowableRace'];
|
||||||
|
if ($_ && $_ & RACE_MASK_ALLIANCE != RACE_MASK_ALLIANCE && $_ & RACE_MASK_HORDE != RACE_MASK_HORDE)
|
||||||
|
$data[$this->id]['reqrace'] = $_;
|
||||||
|
|
||||||
if (!in_array($this->curTpl['AllowableRace'], [-1, 0]) && $this->curTpl['AllowableRace'] & RACE_MASK_ALL != RACE_MASK_ALL &&
|
if ($_ = $this->curTpl['AllowableClass'])
|
||||||
$this->curTpl['AllowableRace'] & RACE_MASK_ALLIANCE != RACE_MASK_ALLIANCE && $this->curTpl['AllowableRace'] & RACE_MASK_HORDE != RACE_MASK_HORDE)
|
$data[$this->id]['reqclass'] = $_; // $data[$this->id]['classes'] ??
|
||||||
$data[$this->id]['reqrace'] = $this->curTpl['AllowableRace'];
|
|
||||||
|
|
||||||
if (!in_array($this->curTpl['AllowableClass'], [-1, 0]) && $this->curTpl['AllowableClass'] & CLASS_MASK_ALL != CLASS_MASK_ALL)
|
if ($this->curTpl['Flags'] & ITEM_FLAG_HEROIC)
|
||||||
$data[$this->id]['reqclass'] = $this->curTpl['AllowableClass']; // $data[$this->id]['classes'] ??
|
$data[$this->id]['heroic'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* even more complicated crap
|
/* even more complicated crap
|
||||||
@@ -486,6 +499,7 @@ class ItemList extends BaseType
|
|||||||
|
|
||||||
// required races
|
// required races
|
||||||
if ($races = Lang::getRaceString($this->curTpl['AllowableRace']))
|
if ($races = Lang::getRaceString($this->curTpl['AllowableRace']))
|
||||||
|
if ($races['side'] != SIDE_BOTH)
|
||||||
$x .= Lang::$game['races'].Lang::$colon.$races['name'].'<br />';
|
$x .= Lang::$game['races'].Lang::$colon.$races['name'].'<br />';
|
||||||
|
|
||||||
// required honorRank (not used anymore)
|
// required honorRank (not used anymore)
|
||||||
@@ -876,7 +890,7 @@ class ItemList extends BaseType
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->json[$this->id] as $k => $v)
|
foreach ($this->json[$this->id] as $k => $v)
|
||||||
if (!isset($v) || $v === "false" || (!in_array($k, ['classs', 'subclass', 'quality']) && $v == "0"))
|
if (!isset($v) || $v === "false" || (!in_array($k, ['classs', 'subclass', 'quality', 'side']) && $v == "0"))
|
||||||
unset($this->json[$this->id][$k]);
|
unset($this->json[$this->id][$k]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1049,7 +1063,7 @@ class ItemList extends BaseType
|
|||||||
|
|
||||||
// clear zero-values afterwards
|
// clear zero-values afterwards
|
||||||
foreach ($json as $k => $v)
|
foreach ($json as $k => $v)
|
||||||
if (!isset($v) || $v === "false" || (!in_array($k, ['classs', 'subclass', 'quality']) && $v == "0"))
|
if (!isset($v) || $v === "false" || (!in_array($k, ['classs', 'subclass', 'quality', 'side']) && $v == "0"))
|
||||||
unset($json[$k]);
|
unset($json[$k]);
|
||||||
|
|
||||||
$this->json[$json['id']] = $json;
|
$this->json[$json['id']] = $json;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class QuestList extends BaseType
|
|||||||
public $cat2 = 0;
|
public $cat2 = 0;
|
||||||
|
|
||||||
protected $setupQuery = 'SELECT *, id AS ARRAY_KEY FROM quest_template qt LEFT JOIN locales_quest lq ON qt.Id = lq.entry WHERE [filter] [cond] ORDER BY Id ASC';
|
protected $setupQuery = 'SELECT *, id AS ARRAY_KEY FROM quest_template qt LEFT JOIN locales_quest lq ON qt.Id = lq.entry WHERE [filter] [cond] ORDER BY Id ASC';
|
||||||
protected $matchQuery = 'SELECT COUNT(1) FROM quest_template WHERE [filter] [cond]';
|
protected $matchQuery = 'SELECT COUNT(1) FROM quest_template qt LEFT JOIN locales_quest lq ON qt.Id = lq.entry WHERE [filter] [cond]';
|
||||||
|
|
||||||
// parent::__construct does the job
|
// parent::__construct does the job
|
||||||
|
|
||||||
@@ -61,11 +61,13 @@ class QuestList extends BaseType
|
|||||||
return Util::localizedString($n, 'title');
|
return Util::localizedString($n, 'title');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function RewardXP($QuestLevel, $XPId)
|
public static function getXPReward($questLevel, $xpId)
|
||||||
{
|
{
|
||||||
if ($xp = DB::Aowow()->SelectCell('SELECT Field?d FROM ?_questxp WHERE Id = ?d', $XPId, $QuestLevel)) {
|
if (!is_numeric($xpId) || $xpId < 0 || $xpId > 8)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if ($xp = DB::Aowow()->selectCell('SELECT Field?d FROM ?_questxp WHERE Id = ?d', $xpId, $questLevel))
|
||||||
return $xp;
|
return $xp;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -102,7 +104,9 @@ class QuestList extends BaseType
|
|||||||
'level' => $this->curTpl['Level'],
|
'level' => $this->curTpl['Level'],
|
||||||
'reqlevel' => $this->curTpl['MinLevel'],
|
'reqlevel' => $this->curTpl['MinLevel'],
|
||||||
'name' => $this->getField('Title', true),
|
'name' => $this->getField('Title', true),
|
||||||
'side' => Util::sideByRaceMask($this->curTpl['RequiredRaces'])
|
'side' => Util::sideByRaceMask($this->curTpl['RequiredRaces']),
|
||||||
|
'wflags' => 0x0,
|
||||||
|
'xp' => self::getXPReward($this->curTpl['Level'], $this->curTpl['RewardXPId'])
|
||||||
);
|
);
|
||||||
|
|
||||||
$rewards = [];
|
$rewards = [];
|
||||||
@@ -121,8 +125,37 @@ class QuestList extends BaseType
|
|||||||
if ($choices)
|
if ($choices)
|
||||||
$data[$this->id]['itemchoices'] = $choices;
|
$data[$this->id]['itemchoices'] = $choices;
|
||||||
|
|
||||||
if ($this->curTpl['RewardTitleId'])
|
if ($_ = $this->curTpl['RewardTitleId'])
|
||||||
$data[$this->id]['titlereward'] = $this->curTpl['RewardTitleId'];
|
$data[$this->id]['titlereward'] = $_;
|
||||||
|
|
||||||
|
if ($_ = $this->curTpl['Type'])
|
||||||
|
$data[$this->id]['type'] = $_;
|
||||||
|
|
||||||
|
if ($_ = $this->curTpl['RequiredClasses'])
|
||||||
|
$data[$this->id]['reqclass'] = $_;
|
||||||
|
|
||||||
|
if ($_ = $this->curTpl['RequiredRaces'])
|
||||||
|
$data[$this->id]['reqrace'] = $_;
|
||||||
|
|
||||||
|
if ($_ = $this->curTpl['RewardOrRequiredMoney'])
|
||||||
|
if ($_ > 0)
|
||||||
|
$data[$this->id]['money'] = $_;
|
||||||
|
|
||||||
|
if ($this->curTpl['Flags'] & 0x1000)
|
||||||
|
$data[$this->id]['daily'] = true;
|
||||||
|
|
||||||
|
if ($this->curTpl['Flags'] & 0x8000)
|
||||||
|
$data[$this->id]['weekly'] = true;
|
||||||
|
|
||||||
|
// flags & 64: Hostile - there are quests, that flag the player for pvp when taken .. where is that set..?
|
||||||
|
if ($this->curTpl['Flags'] & 0x4000) // Unavailable (todo (med): get disables)
|
||||||
|
{
|
||||||
|
$data[$this->id]['historical'] = true; // post 5.0
|
||||||
|
$data[$this->id]['wflags'] |= 0x1; // pre 5.0
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->curTpl['Flags'] & 0x80000) // Auto Accept
|
||||||
|
$data[$this->id]['wflags'] |= 0x20;
|
||||||
|
|
||||||
// todo reprewards .. accesses QuestFactionReward.dbc
|
// todo reprewards .. accesses QuestFactionReward.dbc
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -400,6 +400,7 @@ class Lang
|
|||||||
public static $error;
|
public static $error;
|
||||||
|
|
||||||
public static $search;
|
public static $search;
|
||||||
|
public static $profiler;
|
||||||
public static $compare;
|
public static $compare;
|
||||||
public static $talent;
|
public static $talent;
|
||||||
|
|
||||||
@@ -1722,16 +1723,19 @@ class Util
|
|||||||
|
|
||||||
public static function sideByRaceMask($race)
|
public static function sideByRaceMask($race)
|
||||||
{
|
{
|
||||||
if (!$race || $race == RACE_MASK_ALL) // Any
|
// Any
|
||||||
|
if (!$race || ($race & RACE_MASK_ALL) == RACE_MASK_ALL)
|
||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
if ($race & RACE_MASK_HORDE) // Horde
|
// Horde
|
||||||
|
if ($race & RACE_MASK_HORDE && !($race & RACE_MASK_ALLIANCE))
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
if ($race & RACE_MASK_ALLIANCE) // Alliance
|
// Alliance
|
||||||
|
if ($race & RACE_MASK_ALLIANCE && !($race & RACE_MASK_HORDE))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function asHex($val)
|
public static function asHex($val)
|
||||||
|
|||||||
@@ -68,6 +68,8 @@ $lang = array(
|
|||||||
'applyFilter' => "Filter anwenden",
|
'applyFilter' => "Filter anwenden",
|
||||||
'resetForm' => "Formular zurücksetzen",
|
'resetForm' => "Formular zurücksetzen",
|
||||||
'refineSearch' => "Tipp: Präzisiere deine Suche mit Durchsuchen einer <a href=\"javascript:;\" id=\"fi_subcat\">Unterkategorie</a>.",
|
'refineSearch' => "Tipp: Präzisiere deine Suche mit Durchsuchen einer <a href=\"javascript:;\" id=\"fi_subcat\">Unterkategorie</a>.",
|
||||||
|
'clear' => "leeren",
|
||||||
|
'exactMatch' => "Exakt passend",
|
||||||
|
|
||||||
// infobox
|
// infobox
|
||||||
'unavailable' => "Nicht für Spieler verfügbar",
|
'unavailable' => "Nicht für Spieler verfügbar",
|
||||||
@@ -116,6 +118,8 @@ $lang = array(
|
|||||||
'pets' => "Begleiter",
|
'pets' => "Begleiter",
|
||||||
'petCalc' => "Begleiterrechner",
|
'petCalc' => "Begleiterrechner",
|
||||||
'requires' => "Benötigt %s",
|
'requires' => "Benötigt %s",
|
||||||
|
'profile' => "",
|
||||||
|
'profiles' => "Profile",
|
||||||
'requires2' => "Benötigt",
|
'requires2' => "Benötigt",
|
||||||
'reqLevel' => "Benötigt Stufe %s",
|
'reqLevel' => "Benötigt Stufe %s",
|
||||||
'reqLevelHlm' => "Benötigt Stufe %s",
|
'reqLevelHlm' => "Benötigt Stufe %s",
|
||||||
@@ -297,8 +301,8 @@ $lang = array(
|
|||||||
'_conveyBonus' => "Das Tragen mehrerer Gegenstände aus diesem Set gewährt Eurem Charakter Boni.",
|
'_conveyBonus' => "Das Tragen mehrerer Gegenstände aus diesem Set gewährt Eurem Charakter Boni.",
|
||||||
'_pieces' => "Teile",
|
'_pieces' => "Teile",
|
||||||
'_unavailable' => "Dieses Ausrüstungsset ist nicht für Spieler verfügbar.",
|
'_unavailable' => "Dieses Ausrüstungsset ist nicht für Spieler verfügbar.",
|
||||||
'_type' => "Art",
|
|
||||||
'_tag' => "Tag",
|
'_tag' => "Tag",
|
||||||
|
'_type' => "Art",
|
||||||
|
|
||||||
'notes' => array(
|
'notes' => array(
|
||||||
null, "Dungeon-Set 1", "Dungeon-Set 2", "Tier 1 Raid-Set",
|
null, "Dungeon-Set 1", "Dungeon-Set 2", "Tier 1 Raid-Set",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ $lang = array(
|
|||||||
'numSQL' => "Number of MySQL queries",
|
'numSQL' => "Number of MySQL queries",
|
||||||
'timeSQL' => "Time of MySQL queries",
|
'timeSQL' => "Time of MySQL queries",
|
||||||
'noJScript' => "<b>This site makes extensive use of JavaScript.</b><br />Please <a href=\"https://www.google.com/support/adsense/bin/answer.py?answer=12654\" target=\"_blank\">enable JavaScript</a> in your browser.",
|
'noJScript' => "<b>This site makes extensive use of JavaScript.</b><br />Please <a href=\"https://www.google.com/support/adsense/bin/answer.py?answer=12654\" target=\"_blank\">enable JavaScript</a> in your browser.",
|
||||||
'profiles' => "Your Characters",
|
'profiles' => "My Profiles",
|
||||||
'pageNotFound' => "This %s doesn't exist.",
|
'pageNotFound' => "This %s doesn't exist.",
|
||||||
'gender' => "Gender",
|
'gender' => "Gender",
|
||||||
'sex' => [null, 'Male', 'Female'],
|
'sex' => [null, 'Male', 'Female'],
|
||||||
@@ -63,6 +63,8 @@ $lang = array(
|
|||||||
'applyFilter' => "Apply filter",
|
'applyFilter' => "Apply filter",
|
||||||
'resetForm' => "Reset Form",
|
'resetForm' => "Reset Form",
|
||||||
'refineSearch' => "Tip: Refine your search by browsing a <a href=\"javascript:;\" id=\"fi_subcat\">subcategory</a>.",
|
'refineSearch' => "Tip: Refine your search by browsing a <a href=\"javascript:;\" id=\"fi_subcat\">subcategory</a>.",
|
||||||
|
'clear' => "clear",
|
||||||
|
'exactMatch' => "Exact match",
|
||||||
|
|
||||||
// infobox
|
// infobox
|
||||||
'unavailable' => "Not available to players",
|
'unavailable' => "Not available to players",
|
||||||
@@ -110,6 +112,8 @@ $lang = array(
|
|||||||
'pet' => "Pet",
|
'pet' => "Pet",
|
||||||
'pets' => "Hunter Pets",
|
'pets' => "Hunter Pets",
|
||||||
'petCalc' => "Hunter Pet Calculator",
|
'petCalc' => "Hunter Pet Calculator",
|
||||||
|
'profile' => "profile",
|
||||||
|
'profiles' => "Profiles",
|
||||||
'requires' => "Requires %s",
|
'requires' => "Requires %s",
|
||||||
'requires2' => "Requires",
|
'requires2' => "Requires",
|
||||||
'reqLevel' => "Requires Level %s",
|
'reqLevel' => "Requires Level %s",
|
||||||
@@ -119,7 +123,6 @@ $lang = array(
|
|||||||
'school' => "School",
|
'school' => "School",
|
||||||
'spell' => "spell",
|
'spell' => "spell",
|
||||||
'spells' => "Spells",
|
'spells' => "Spells",
|
||||||
'type' => "Type",
|
|
||||||
'valueDelim' => " to ",
|
'valueDelim' => " to ",
|
||||||
'zone' => "zone",
|
'zone' => "zone",
|
||||||
'zones' => "Zones",
|
'zones' => "Zones",
|
||||||
@@ -294,6 +297,7 @@ $lang = array(
|
|||||||
'_pieces' => "pieces",
|
'_pieces' => "pieces",
|
||||||
'_unavailable' => "This item set is not available to players.",
|
'_unavailable' => "This item set is not available to players.",
|
||||||
'_tag' => "Tag",
|
'_tag' => "Tag",
|
||||||
|
'_type' => "Type",
|
||||||
|
|
||||||
'notes' => array(
|
'notes' => array(
|
||||||
null, "Dungeon Set 1", "Dungeon Set 2", "Tier 1 Raid Set",
|
null, "Dungeon Set 1", "Dungeon Set 2", "Tier 1 Raid Set",
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ $lang = array(
|
|||||||
'applyFilter' => "Aplicar filtro",
|
'applyFilter' => "Aplicar filtro",
|
||||||
'resetForm' => "Reiniciar formulario",
|
'resetForm' => "Reiniciar formulario",
|
||||||
'refineSearch' => "Sugerencia: Refina tu búsqueda llendo a una <a href=\"javascript:;\" id=\"fi_subcat\">subcategoría</a>.",
|
'refineSearch' => "Sugerencia: Refina tu búsqueda llendo a una <a href=\"javascript:;\" id=\"fi_subcat\">subcategoría</a>.",
|
||||||
|
'clear' => "borrar",
|
||||||
|
'exactMatch' => "Coincidencia exacta",
|
||||||
|
|
||||||
// infobox
|
// infobox
|
||||||
'unavailable' => "No está disponible a los jugadores",
|
'unavailable' => "No está disponible a los jugadores",
|
||||||
@@ -107,6 +109,8 @@ $lang = array(
|
|||||||
'pet' => "Mascota",
|
'pet' => "Mascota",
|
||||||
'pets' => "Mascotas de cazador",
|
'pets' => "Mascotas de cazador",
|
||||||
'petCalc' => "Calculadora de mascotas",
|
'petCalc' => "Calculadora de mascotas",
|
||||||
|
'profile' => "",
|
||||||
|
'profiles' => "Perfiles",
|
||||||
'requires' => "Requiere %s",
|
'requires' => "Requiere %s",
|
||||||
'requires2' => "Requiere",
|
'requires2' => "Requiere",
|
||||||
'reqLevel' => "Necesitas ser de nivel %s",
|
'reqLevel' => "Necesitas ser de nivel %s",
|
||||||
@@ -116,7 +120,6 @@ $lang = array(
|
|||||||
'school' => "Escuela",
|
'school' => "Escuela",
|
||||||
'spell' => "hechizo",
|
'spell' => "hechizo",
|
||||||
'spells' => "Hechizos",
|
'spells' => "Hechizos",
|
||||||
'type' => "Tipo",
|
|
||||||
'valueDelim' => " - ",
|
'valueDelim' => " - ",
|
||||||
'zone' => "zona",
|
'zone' => "zona",
|
||||||
'zones' => "Zonas",
|
'zones' => "Zonas",
|
||||||
@@ -252,6 +255,7 @@ $lang = array(
|
|||||||
'_pieces' => "piezas",
|
'_pieces' => "piezas",
|
||||||
'_unavailable' => "Este conjunto de objetos no está disponible para jugadores.",
|
'_unavailable' => "Este conjunto de objetos no está disponible para jugadores.",
|
||||||
'_tag' => "Etiqueta",
|
'_tag' => "Etiqueta",
|
||||||
|
'_type' => "Tipo",
|
||||||
|
|
||||||
'notes' => array(
|
'notes' => array(
|
||||||
null, "Set de mazmorra 1", "Set de mazmorra 2", "Set de banda tier 1",
|
null, "Set de mazmorra 1", "Set de mazmorra 2", "Set de banda tier 1",
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ $lang = array(
|
|||||||
'applyFilter' => "Appliquer le filtre",
|
'applyFilter' => "Appliquer le filtre",
|
||||||
'resetForm' => "Rétablir",
|
'resetForm' => "Rétablir",
|
||||||
'refineSearch' => "Astuce : Affinez votre recherche en utilisant une <a href=\"javascript:;\" id=\"fi_subcat\">sous-catégorie</a>.",
|
'refineSearch' => "Astuce : Affinez votre recherche en utilisant une <a href=\"javascript:;\" id=\"fi_subcat\">sous-catégorie</a>.",
|
||||||
|
'clear' => "effacer",
|
||||||
|
'exactMatch' => "Concordance exacte",
|
||||||
|
|
||||||
// infobox
|
// infobox
|
||||||
'unavailable' => "Non disponible aux joueurs",
|
'unavailable' => "Non disponible aux joueurs",
|
||||||
@@ -107,6 +109,8 @@ $lang = array(
|
|||||||
'pet' => "Familier",
|
'pet' => "Familier",
|
||||||
'pets' => "Familiers de chasseur",
|
'pets' => "Familiers de chasseur",
|
||||||
'petCalc' => "Calculateur de familiers",
|
'petCalc' => "Calculateur de familiers",
|
||||||
|
'profile' => "",
|
||||||
|
'profiles' => "Profils",
|
||||||
'requires' => "%s requis",
|
'requires' => "%s requis",
|
||||||
'requires2' => "Requiert",
|
'requires2' => "Requiert",
|
||||||
'reqLevel' => "Niveau %s requis",
|
'reqLevel' => "Niveau %s requis",
|
||||||
@@ -116,7 +120,6 @@ $lang = array(
|
|||||||
'school' => "École",
|
'school' => "École",
|
||||||
'spell' => "sort",
|
'spell' => "sort",
|
||||||
'spells' => "Sorts",
|
'spells' => "Sorts",
|
||||||
'type' => "Type",
|
|
||||||
'valueDelim' => " - ",
|
'valueDelim' => " - ",
|
||||||
'zone' => "zone",
|
'zone' => "zone",
|
||||||
'zones' => "Zones",
|
'zones' => "Zones",
|
||||||
@@ -251,6 +254,7 @@ $lang = array(
|
|||||||
'_pieces' => "pièces",
|
'_pieces' => "pièces",
|
||||||
'_unavailable' => "Cet objet n'est plus disponible aux joueurs.",
|
'_unavailable' => "Cet objet n'est plus disponible aux joueurs.",
|
||||||
'_tag' => "Étiquette",
|
'_tag' => "Étiquette",
|
||||||
|
'_type' => "Type",
|
||||||
|
|
||||||
'notes' => array(
|
'notes' => array(
|
||||||
null, "Ensemble de donjon 1", "Ensemble de donjon 2", "Ensemble de raid palier 1",
|
null, "Ensemble de donjon 1", "Ensemble de donjon 2", "Ensemble de raid palier 1",
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ $lang = array(
|
|||||||
'applyFilter' => "Применить фильтр",
|
'applyFilter' => "Применить фильтр",
|
||||||
'resetForm' => "Очистить форму",
|
'resetForm' => "Очистить форму",
|
||||||
'refineSearch' => "Совет: Уточните поиск, добавив <a href=\"javascript:;\" id=\"fi_subcat\">подкатегорию</a>.",
|
'refineSearch' => "Совет: Уточните поиск, добавив <a href=\"javascript:;\" id=\"fi_subcat\">подкатегорию</a>.",
|
||||||
|
'clear' => "Очистить",
|
||||||
|
'exactMatch' => "Полное совпадение",
|
||||||
|
|
||||||
// infobox
|
// infobox
|
||||||
'unavailable' => "Недоступно игрокам",
|
'unavailable' => "Недоступно игрокам",
|
||||||
@@ -106,6 +108,8 @@ $lang = array(
|
|||||||
'mechAbbr' => "Механика",
|
'mechAbbr' => "Механика",
|
||||||
'pet' => "Питомец",
|
'pet' => "Питомец",
|
||||||
'pets' => "Питомцы охотников",
|
'pets' => "Питомцы охотников",
|
||||||
|
'profile' => "",
|
||||||
|
'profiles' => "Профили",
|
||||||
'petCalc' => "Расчёт умений питомцев",
|
'petCalc' => "Расчёт умений питомцев",
|
||||||
'requires' => "Требует %s",
|
'requires' => "Требует %s",
|
||||||
'requires2' => "Требуется:",
|
'requires2' => "Требуется:",
|
||||||
@@ -116,7 +120,6 @@ $lang = array(
|
|||||||
'school' => "Школа",
|
'school' => "Школа",
|
||||||
'spell' => "заклинание",
|
'spell' => "заклинание",
|
||||||
'spells' => "Заклинания",
|
'spells' => "Заклинания",
|
||||||
'type' => "Тип",
|
|
||||||
'valueDelim' => " - ",
|
'valueDelim' => " - ",
|
||||||
'zone' => "игровая зона",
|
'zone' => "игровая зона",
|
||||||
'zones' => "Местности",
|
'zones' => "Местности",
|
||||||
@@ -251,6 +254,7 @@ $lang = array(
|
|||||||
'_pieces' => "частей",
|
'_pieces' => "частей",
|
||||||
'_unavailable' => "Этот набор предметов не доступен игрокам.",
|
'_unavailable' => "Этот набор предметов не доступен игрокам.",
|
||||||
'_tag' => "Тэг",
|
'_tag' => "Тэг",
|
||||||
|
'_type' => "Тип",
|
||||||
|
|
||||||
'notes' => array(
|
'notes' => array(
|
||||||
null, "Комплект подземелий 1", "Комплект подземелий 2", "Рейдовый комплект Tier 1",
|
null, "Комплект подземелий 1", "Комплект подземелий 2", "Рейдовый комплект Tier 1",
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
|||||||
|
|
||||||
// type
|
// type
|
||||||
if ($ty)
|
if ($ty)
|
||||||
$infobox[] = Lang::$game['type'].lang::$colon.Lang::$itemset['types'][$ty];
|
$infobox[] = Lang::$itemset['_type'].lang::$colon.Lang::$itemset['types'][$ty];
|
||||||
|
|
||||||
// tag
|
// tag
|
||||||
if ($ta)
|
if ($ta)
|
||||||
|
|||||||
45
search.php
45
search.php
@@ -34,7 +34,7 @@ if (!defined('AOWOW_REVISION'))
|
|||||||
13: Listview - template: 'spell', id: 'companions', name: LANG.tab_companions,
|
13: Listview - template: 'spell', id: 'companions', name: LANG.tab_companions,
|
||||||
14: Listview - template: 'spell', id: 'mounts', name: LANG.tab_mounts,
|
14: Listview - template: 'spell', id: 'mounts', name: LANG.tab_mounts,
|
||||||
todo 15: Listview - template: 'npc', id: 'npcs', name: LANG.tab_npcs,
|
todo 15: Listview - template: 'npc', id: 'npcs', name: LANG.tab_npcs,
|
||||||
todo 16: Listview - template: 'quest', id: 'quests', name: LANG.tab_quests,
|
16: Listview - template: 'quest', id: 'quests', name: LANG.tab_quests,
|
||||||
17: Listview - template: 'achievement', id: 'achievements', name: LANG.tab_achievements,
|
17: Listview - template: 'achievement', id: 'achievements', name: LANG.tab_achievements,
|
||||||
18: Listview - template: 'achievement', id: 'statistics', name: LANG.tab_statistics,
|
18: Listview - template: 'achievement', id: 'statistics', name: LANG.tab_statistics,
|
||||||
todo 19: Listview - template: 'zone', id: 'zones', name: LANG.tab_zones,
|
todo 19: Listview - template: 'zone', id: 'zones', name: LANG.tab_zones,
|
||||||
@@ -698,7 +698,36 @@ if ($searchMask & 0x4000)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 16 Quests
|
// 16 Quests
|
||||||
// if ($searchMask & 0x8000)
|
if ($searchMask & 0x8000)
|
||||||
|
{
|
||||||
|
$conditions = array(
|
||||||
|
// [['cuFlags', MASK, '&'], 0], // todo (med): identify disabled quests
|
||||||
|
[User::$localeId ? 'Title_loc'.User::$localeId : 'Title', $query], // todo (high): unify name-fields
|
||||||
|
$maxResults
|
||||||
|
);
|
||||||
|
|
||||||
|
$quests = new QuestList($conditions);
|
||||||
|
|
||||||
|
if ($data = $quests->getListviewData())
|
||||||
|
{
|
||||||
|
$quests->addGlobalsToJScript($smarty);
|
||||||
|
|
||||||
|
$found['quest'] = array(
|
||||||
|
'type' => TYPE_QUEST,
|
||||||
|
'appendix' => ' (Quest)',
|
||||||
|
'matches' => $quests->getMatches(),
|
||||||
|
'file' => 'quest',
|
||||||
|
'data' => $data,
|
||||||
|
'params' => ['tabs' => '$myTabs']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($quests->getMatches() > $maxResults)
|
||||||
|
{
|
||||||
|
$found['quest']['params']['note'] = '$'.sprintf(Util::$narrowResultString, 'LANG.lvnote_questsfound', $quests->getMatches(), $maxResults);
|
||||||
|
$found['quest']['params']['_truncated'] = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 17 Achievements
|
// 17 Achievements
|
||||||
if ($searchMask & 0x10000)
|
if ($searchMask & 0x10000)
|
||||||
@@ -726,7 +755,7 @@ if ($searchMask & 0x10000)
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$myTabs',
|
'tabs' => '$myTabs',
|
||||||
'visibleCols' => "\$['category']"
|
'visibleCols' => "$['category']"
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -760,8 +789,8 @@ if ($searchMask & 0x20000)
|
|||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => [
|
||||||
'tabs' => '$myTabs',
|
'tabs' => '$myTabs',
|
||||||
'visibleCols' => "\$['category']",
|
'visibleCols' => "$['category']",
|
||||||
'hiddenCols' => "\$['side', 'points', 'rewards']",
|
'hiddenCols' => "$['side', 'points', 'rewards']",
|
||||||
'name' => '$LANG.tab_statistics',
|
'name' => '$LANG.tab_statistics',
|
||||||
'id' => 'statistics'
|
'id' => 'statistics'
|
||||||
]
|
]
|
||||||
@@ -803,9 +832,7 @@ if ($searchMask & 0x400000)
|
|||||||
'matches' => $pets->getMatches(),
|
'matches' => $pets->getMatches(),
|
||||||
'file' => 'pet',
|
'file' => 'pet',
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
'params' => [
|
'params' => ['tabs' => '$myTabs']
|
||||||
'tabs' => '$myTabs',
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($pets->getMatches() > $maxResults)
|
if ($pets->getMatches() > $maxResults)
|
||||||
@@ -960,7 +987,7 @@ if ($searchMask & SEARCH_TYPE_JSON)
|
|||||||
}
|
}
|
||||||
else if ($searchMask & SEARCH_TYPE_OPEN)
|
else if ($searchMask & SEARCH_TYPE_OPEN)
|
||||||
{
|
{
|
||||||
// this one is funny: we want 10 results, ideally equally destributed over each type
|
// this one is funny: we want 10 results, ideally equally distributed over each type
|
||||||
$foundTotal = 0;
|
$foundTotal = 0;
|
||||||
$maxResults = 10;
|
$maxResults = 10;
|
||||||
$names = [];
|
$names = [];
|
||||||
|
|||||||
@@ -23,8 +23,18 @@
|
|||||||
{/if}
|
{/if}
|
||||||
classs:{$curr.classs},
|
classs:{$curr.classs},
|
||||||
subclass:{$curr.subclass},
|
subclass:{$curr.subclass},
|
||||||
|
side:{$curr.side},
|
||||||
|
{if isset($curr.reqclass)}
|
||||||
|
reqclass:{$curr.reqclass},
|
||||||
|
{/if}
|
||||||
|
{if isset($curr.reqrace)}
|
||||||
|
reqrace:{$curr.reqrace},
|
||||||
|
{/if}
|
||||||
|
{if isset($curr.heroic)}
|
||||||
|
heroic:1,
|
||||||
|
{/if}
|
||||||
{if isset($curr.maxcount)}
|
{if isset($curr.maxcount)}
|
||||||
{if $curr.maxcount>1}
|
{if $curr.maxcount > 1}
|
||||||
stack:[{$curr.mincount},{$curr.maxcount}],
|
stack:[{$curr.mincount},{$curr.maxcount}],
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -17,9 +17,15 @@
|
|||||||
id:'{$curr.id}',
|
id:'{$curr.id}',
|
||||||
name:'{$curr.name|escape:"quotes"}',
|
name:'{$curr.name|escape:"quotes"}',
|
||||||
level:'{$curr.level}',
|
level:'{$curr.level}',
|
||||||
{if ($curr.reqlevel)}
|
{if isset($curr.reqlevel)}
|
||||||
reqlevel:{$curr.reqlevel},
|
reqlevel:{$curr.reqlevel},
|
||||||
{/if}
|
{/if}
|
||||||
|
{if isset($curr.reqclass)}
|
||||||
|
reqclass:{$curr.reqclass},
|
||||||
|
{/if}
|
||||||
|
{if isset($curr.reqrace)}
|
||||||
|
reqrace:{$curr.reqrace},
|
||||||
|
{/if}
|
||||||
side:'{$curr.side}'
|
side:'{$curr.side}'
|
||||||
{if isset($curr.itemrewards)}
|
{if isset($curr.itemrewards)}
|
||||||
,itemrewards:[
|
,itemrewards:[
|
||||||
@@ -37,7 +43,7 @@
|
|||||||
{/section}
|
{/section}
|
||||||
]
|
]
|
||||||
{/if}
|
{/if}
|
||||||
{if isset($curr.xp)}
|
{if $curr.xp}
|
||||||
,xp:{$curr.xp}
|
,xp:{$curr.xp}
|
||||||
{/if}
|
{/if}
|
||||||
{if isset($curr.titlereward)}
|
{if isset($curr.titlereward)}
|
||||||
@@ -55,11 +61,14 @@
|
|||||||
{if isset($curr.type)}
|
{if isset($curr.type)}
|
||||||
,type:{$curr.type}
|
,type:{$curr.type}
|
||||||
{/if}
|
{/if}
|
||||||
{if isset($curr.Daily)}
|
{if isset($curr.daily)}
|
||||||
,daily:1
|
,daily:1
|
||||||
{/if}
|
{/if}
|
||||||
{if isset($curr.flags)}
|
{if isset($curr.weekly)}
|
||||||
,wflags:$curr.flags {* wflags: &1: disabled/historical; &32: AutoAccept; &64: Hostile(?) *}
|
,weekly:1
|
||||||
|
{/if}
|
||||||
|
{if $curr.wflags}
|
||||||
|
,wflags:{$curr.wflags} {* wflags: &1: disabled/historical; &32: AutoAccept; &64: Hostile(?) *}
|
||||||
{/if}
|
{/if}
|
||||||
{rdelim}
|
{rdelim}
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
{if $smarty.foreach.i.last}{else},{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user