mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Fixes
* resolve more spellEffects/Auras * fixed item filter with multiple upgrade items * localized unknown spellAura/Effects text * remove unreferenced error code from image setup
This commit is contained in:
@@ -165,9 +165,9 @@ class SmartAI
|
|||||||
|
|
||||||
if ($q)
|
if ($q)
|
||||||
{
|
{
|
||||||
$owner = DB::Aowow()->select(sprintf('SELECT `type` AS "0", `typeId` AS "1" FROM ?_spawns WHERE (%s)', implode(') OR (', $q)));
|
$owner = DB::Aowow()->select(sprintf('SELECT `type`, `typeId` FROM ?_spawns WHERE (%s)', implode(') OR (', $q)));
|
||||||
foreach ($owner as [$ty, $id])
|
foreach ($owner as $o)
|
||||||
$result[$ty][] = $id;
|
$result[$o['type']][] = $o['typeId'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1995,7 +1995,7 @@ class ItemListFilter extends Filter
|
|||||||
'cr' => [FILTER_V_RANGE, [1, 177], true ], // criteria ids
|
'cr' => [FILTER_V_RANGE, [1, 177], true ], // criteria ids
|
||||||
'crs' => [FILTER_V_LIST, [FILTER_ENUM_NONE, FILTER_ENUM_ANY, [0, 99999]], true ], // criteria operators
|
'crs' => [FILTER_V_LIST, [FILTER_ENUM_NONE, FILTER_ENUM_ANY, [0, 99999]], true ], // criteria operators
|
||||||
'crv' => [FILTER_V_REGEX, '/[\p{C};:%\\\\]/ui', true ], // criteria values - only printable chars, no delimiters
|
'crv' => [FILTER_V_REGEX, '/[\p{C};:%\\\\]/ui', true ], // criteria values - only printable chars, no delimiters
|
||||||
'upg' => [FILTER_V_RANGE, [1, 999999], true ], // upgrade item ids
|
'upg' => [FILTER_V_REGEX, '/[^\d:]/ui', false], // upgrade item ids
|
||||||
'gb' => [FILTER_V_LIST, [0, 1, 2, 3], false], // search result grouping
|
'gb' => [FILTER_V_LIST, [0, 1, 2, 3], false], // search result grouping
|
||||||
'na' => [FILTER_V_REGEX, '/[\p{C};%\\\\]/ui', false], // name - only printable chars, no delimiter
|
'na' => [FILTER_V_REGEX, '/[\p{C};%\\\\]/ui', false], // name - only printable chars, no delimiter
|
||||||
'ma' => [FILTER_V_EQUAL, 1, false], // match any / all filter
|
'ma' => [FILTER_V_EQUAL, 1, false], // match any / all filter
|
||||||
@@ -2103,7 +2103,7 @@ class ItemListFilter extends Filter
|
|||||||
// upgrade for [form only]
|
// upgrade for [form only]
|
||||||
if (isset($_v['upg']))
|
if (isset($_v['upg']))
|
||||||
{
|
{
|
||||||
$_ = DB::Aowow()->selectCol('SELECT id as ARRAY_KEY, slot FROM ?_items WHERE class IN (2, 3, 4) AND id IN (?a)', (array)$_v['upg']);
|
$_ = DB::Aowow()->selectCol('SELECT id as ARRAY_KEY, slot FROM ?_items WHERE class IN (2, 3, 4) AND id IN (?a)', explode(':', $_v['upg']));
|
||||||
if ($_ === null)
|
if ($_ === null)
|
||||||
{
|
{
|
||||||
unset($_v['upg']);
|
unset($_v['upg']);
|
||||||
|
|||||||
@@ -1092,10 +1092,10 @@ class SpellList extends BaseType
|
|||||||
$effIdx = 1;
|
$effIdx = 1;
|
||||||
|
|
||||||
// cache at least some lookups.. should be moved to single spellList :/
|
// cache at least some lookups.. should be moved to single spellList :/
|
||||||
if ($lookup && !isset($this->refSpells[$lookup]))
|
if ($lookup && $lookup != $this->id && !isset($this->refSpells[$lookup]))
|
||||||
$this->refSpells[$lookup] = new SpellList(array(['s.id', $lookup]));
|
$this->refSpells[$lookup] = new SpellList(array(['s.id', $lookup]));
|
||||||
|
|
||||||
$srcSpell = $lookup ? $this->refSpells[$lookup] : $this;
|
$srcSpell = $lookup && $lookup != $this->id ? $this->refSpells[$lookup] : $this;
|
||||||
if ($srcSpell->error)
|
if ($srcSpell->error)
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
|
|||||||
@@ -96,15 +96,6 @@ class Lang
|
|||||||
$var = $var[$arg];
|
$var = $var[$arg];
|
||||||
}
|
}
|
||||||
|
|
||||||
// meh :x
|
|
||||||
if ($var === null && $prop == 'spell' && count($args) == 1)
|
|
||||||
{
|
|
||||||
if ($args[0] == 'effects')
|
|
||||||
$var = self::$$prop['unkEffect'];
|
|
||||||
else if ($args[0] == 'auras')
|
|
||||||
$var = self::$$prop['unkAura'];
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::vspf($var, $vspfArgs);
|
return self::vspf($var, $vspfArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ $lang = array(
|
|||||||
'si' => [1 => "Allianz", -1 => "Nur für Allianz", 2 => "Horde", -2 => "Nur für Horde", 3 => "Beide"],
|
'si' => [1 => "Allianz", -1 => "Nur für Allianz", 2 => "Horde", -2 => "Nur für Horde", 3 => "Beide"],
|
||||||
'resistances' => [null, 'Heiligwiderstand', 'Feuerwiderstand', 'Naturwiderstand', 'Frostwiderstand', 'Schattenwiderstand', 'Arkanwiderstand'],
|
'resistances' => [null, 'Heiligwiderstand', 'Feuerwiderstand', 'Naturwiderstand', 'Frostwiderstand', 'Schattenwiderstand', 'Arkanwiderstand'],
|
||||||
'sc' => ["Körperlich", "Heilig", "Feuer", "Natur", "Frost", "Schatten", "Arkan"],
|
'sc' => ["Körperlich", "Heilig", "Feuer", "Natur", "Frost", "Schatten", "Arkan"],
|
||||||
'dt' => [null, "Magie", "Fluch", "Krankheit", "Gift", "Verstohlenheit", "Unsichtbarkeit", null, null, "Wut"],
|
'dt' => [null, "Magie", "Fluch", "Krankheit", "Gift", "Verstohlenheit", "Unsichtbarkeit", "Magie, Fluch, Krankheit, Gift", "Zauber (NSC)", "Wut"],
|
||||||
'cl' => [null, "Krieger", "Paladin", "Jäger", "Schurke", "Priester", "Todesritter", "Schamane", "Magier", "Hexenmeister", null, "Druide"],
|
'cl' => [null, "Krieger", "Paladin", "Jäger", "Schurke", "Priester", "Todesritter", "Schamane", "Magier", "Hexenmeister", null, "Druide"],
|
||||||
'ra' => [-2 => "Horde", -1 => "Allianz", null, "Mensch", "Orc", "Zwerg", "Nachtelf", "Untoter", "Tauren", "Gnom", "Troll", null, "Blutelf", "Draenei"],
|
'ra' => [-2 => "Horde", -1 => "Allianz", null, "Mensch", "Orc", "Zwerg", "Nachtelf", "Untoter", "Tauren", "Gnom", "Troll", null, "Blutelf", "Draenei"],
|
||||||
'rep' => ["Hasserfüllt", "Feindselig", "Unfreundlich", "Neutral", "Freundlich", "Wohlwollend", "Respektvoll", "Ehrfürchtig"],
|
'rep' => ["Hasserfüllt", "Feindselig", "Unfreundlich", "Neutral", "Freundlich", "Wohlwollend", "Respektvoll", "Ehrfürchtig"],
|
||||||
@@ -1625,7 +1625,7 @@ $lang = array(
|
|||||||
89 => "Verwendbar, während Ihr verängstigt seid",
|
89 => "Verwendbar, während Ihr verängstigt seid",
|
||||||
65 => "Braucht alle Ressourcen auf"
|
65 => "Braucht alle Ressourcen auf"
|
||||||
),
|
),
|
||||||
'unkEffect' => 'Unknown Effect',
|
'unkEffect' => 'Unknown Effect (%1$d)',
|
||||||
'effects' => array(
|
'effects' => array(
|
||||||
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
||||||
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
||||||
@@ -1656,7 +1656,7 @@ $lang = array(
|
|||||||
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
||||||
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
||||||
),
|
),
|
||||||
'unkAura' => 'Unknown Aura',
|
'unkAura' => 'Unknown Aura (%1$d)',
|
||||||
'auras' => array(
|
'auras' => array(
|
||||||
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
||||||
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
||||||
|
|||||||
@@ -377,10 +377,10 @@ $lang = array(
|
|||||||
'gl' => [null, "Major", "Minor"], // MAJOR_GLYPH, MINOR_GLYPH
|
'gl' => [null, "Major", "Minor"], // MAJOR_GLYPH, MINOR_GLYPH
|
||||||
'si' => [1 => "Alliance", -1 => "Alliance only", 2 => "Horde", -2 => "Horde only", 3 => "Both"],
|
'si' => [1 => "Alliance", -1 => "Alliance only", 2 => "Horde", -2 => "Horde only", 3 => "Both"],
|
||||||
'resistances' => [null, 'Holy Resistance', 'Fire Resistance', 'Nature Resistance', 'Frost Resistance', 'Shadow Resistance', 'Arcane Resistance'], // RESISTANCE?_NAME
|
'resistances' => [null, 'Holy Resistance', 'Fire Resistance', 'Nature Resistance', 'Frost Resistance', 'Shadow Resistance', 'Arcane Resistance'], // RESISTANCE?_NAME
|
||||||
'dt' => [null, "Magic", "Curse", "Disease", "Poison", "Stealth", "Invisibility", null, null, "Enrage"], // SpellDispalType.dbc
|
'dt' => [null, "Magic", "Curse", "Disease", "Poison", "Stealth", "Invisibility", "Magic, Curse, Disease, Poison", "Spell (NPC)", "Enrage"], // SpellDispalType.dbc
|
||||||
'sc' => ["Physical", "Holy", "Fire", "Nature", "Frost", "Shadow", "Arcane"], // STRING_SCHOOL_*
|
'sc' => ["Physical", "Holy", "Fire", "Nature", "Frost", "Shadow", "Arcane"], // STRING_SCHOOL_*
|
||||||
'cl' => [null, "Warrior", "Paladin", "Hunter", "Rogue", "Priest", "Death Knight", "Shaman", "Mage", "Warlock", null, "Druid"], // ChrClasses.dbc
|
'cl' => [null, "Warrior", "Paladin", "Hunter", "Rogue", "Priest", "Death Knight", "Shaman", "Mage", "Warlock", null, "Druid"], // ChrClasses.dbc
|
||||||
'ra' => [-2 => "Horde", -1 => "Alliance", null, "Human", "Orc", "Dwarf", "Night Elf", "Undead", "Tauren", "Gnome", "Troll", null, "Blood Elf", "Draenei"], // ChrRaces.dbc
|
'ra' => [-2 => "Horde", -1 => "Alliance", null, "Human", "Orc", "Dwarf", "Night Elf", "Undead", "Tauren", "Gnome", "Troll", null, "Blood Elf", "Draenei"], // ChrRaces.dbc
|
||||||
'rep' => ["Hated", "Hostile", "Unfriendly", "Neutral", "Friendly", "Honored", "Revered", "Exalted"], // FACTION_STANDING_LABEL*
|
'rep' => ["Hated", "Hostile", "Unfriendly", "Neutral", "Friendly", "Honored", "Revered", "Exalted"], // FACTION_STANDING_LABEL*
|
||||||
'st' => array( // SpellShapeshiftForm.dbc // with minor deviations on 27, 28
|
'st' => array( // SpellShapeshiftForm.dbc // with minor deviations on 27, 28
|
||||||
"Default", "Cat Form", "Tree of Life", "Travel Form", "Aquatic Form", "Bear From",
|
"Default", "Cat Form", "Tree of Life", "Travel Form", "Aquatic Form", "Bear From",
|
||||||
@@ -1625,7 +1625,7 @@ $lang = array(
|
|||||||
89 => "Usable while feared",
|
89 => "Usable while feared",
|
||||||
65 => "Uses all power"
|
65 => "Uses all power"
|
||||||
),
|
),
|
||||||
'unkEffect' => 'Unknown Effect',
|
'unkEffect' => 'Unknown Effect (%1$d)',
|
||||||
'effects' => array(
|
'effects' => array(
|
||||||
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
||||||
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
||||||
@@ -1656,7 +1656,7 @@ $lang = array(
|
|||||||
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
||||||
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
||||||
),
|
),
|
||||||
'unkAura' => 'Unknown Aura',
|
'unkAura' => 'Unknown Aura (%1$d)',
|
||||||
'auras' => array(
|
'auras' => array(
|
||||||
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
||||||
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ $lang = array(
|
|||||||
'si' => [1 => "Alianza", -1 => "Alianza solamente", 2 => "Horda", -2 => "Horda solamente", 3 => "Ambos"],
|
'si' => [1 => "Alianza", -1 => "Alianza solamente", 2 => "Horda", -2 => "Horda solamente", 3 => "Ambos"],
|
||||||
'resistances' => [null, 'Resistencia a lo Sagrado', 'v', 'Resistencia a la Naturaleza', 'Resistencia a la Escarcha', 'Resistencia a las Sombras', 'Resistencia a lo Arcano'],
|
'resistances' => [null, 'Resistencia a lo Sagrado', 'v', 'Resistencia a la Naturaleza', 'Resistencia a la Escarcha', 'Resistencia a las Sombras', 'Resistencia a lo Arcano'],
|
||||||
'sc' => ["Física", "Sagrado", "Fuego", "Naturaleza", "Escarcha", "Sombras", "Arcano"],
|
'sc' => ["Física", "Sagrado", "Fuego", "Naturaleza", "Escarcha", "Sombras", "Arcano"],
|
||||||
'dt' => [null, "Magia", "Maldición", "Enfermedad", "Veneno", "Sigilo", "Invisibilidad", null, null, "Enfurecer"],
|
'dt' => [null, "Magia", "Maldición", "Enfermedad", "Veneno", "Sigilo", "Invisibilidad", "Magia, Maldición, Enfermedad, Veneno", "Hechizo (PNJ)", "Enfurecer"],
|
||||||
'cl' => [null, "Guerrero", "Paladín", "Cazador", "Pícaro", "Sacerdote", "Caballero de la Muerte", "Chamán", "Mago", "Brujo", null, "Druida"],
|
'cl' => [null, "Guerrero", "Paladín", "Cazador", "Pícaro", "Sacerdote", "Caballero de la Muerte", "Chamán", "Mago", "Brujo", null, "Druida"],
|
||||||
'ra' => [-2 => "Horda", -1 => "Alianza", null, "Humano", "Orco", "Enano", "Elfo de la noche", "No-muerto", "Tauren", "Gnomo", "Trol ", null, "Blood Elf", "Elfo de sangre"],
|
'ra' => [-2 => "Horda", -1 => "Alianza", null, "Humano", "Orco", "Enano", "Elfo de la noche", "No-muerto", "Tauren", "Gnomo", "Trol ", null, "Blood Elf", "Elfo de sangre"],
|
||||||
'rep' => ["Odiado", "Hostil", "Adverso", "Neutral", "Amistoso", "Honorable", "Reverenciado", "Exaltado"],
|
'rep' => ["Odiado", "Hostil", "Adverso", "Neutral", "Amistoso", "Honorable", "Reverenciado", "Exaltado"],
|
||||||
@@ -1625,7 +1625,7 @@ $lang = array(
|
|||||||
89 => "Utilizable mientras se esta aterrorizado",
|
89 => "Utilizable mientras se esta aterrorizado",
|
||||||
65 => "Utiliza todo el poder"
|
65 => "Utiliza todo el poder"
|
||||||
),
|
),
|
||||||
'unkEffect' => 'Unknown Effect',
|
'unkEffect' => 'Unknown Effect (%1$d)',
|
||||||
'effects' => array(
|
'effects' => array(
|
||||||
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
||||||
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
||||||
@@ -1656,7 +1656,7 @@ $lang = array(
|
|||||||
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
||||||
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
||||||
),
|
),
|
||||||
'unkAura' => 'Unknown Aura',
|
'unkAura' => 'Unknown Aura (%1$d)',
|
||||||
'auras' => array(
|
'auras' => array(
|
||||||
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
||||||
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ $lang = array(
|
|||||||
'gl' => [null, "Majeur", "Mineur"],
|
'gl' => [null, "Majeur", "Mineur"],
|
||||||
'si' => [1 => "Alliance", -1 => "Alliance seulement", 2 => "Horde", -2 => "Horde seulement", 3 => "Les deux"],
|
'si' => [1 => "Alliance", -1 => "Alliance seulement", 2 => "Horde", -2 => "Horde seulement", 3 => "Les deux"],
|
||||||
'resistances' => [null, 'Résistance au Sacré', 'Résistance au Feu', 'Résistance à la Nature', 'Résistance au Givre', 'Résistance à l\'Ombre', 'Résistance aux Arcanes'],
|
'resistances' => [null, 'Résistance au Sacré', 'Résistance au Feu', 'Résistance à la Nature', 'Résistance au Givre', 'Résistance à l\'Ombre', 'Résistance aux Arcanes'],
|
||||||
'dt' => [null, "Magie", "Malédiction", "Maladie", "Poison", "Camouflage", "Invisibilité", null, null, "Enrager"],
|
'dt' => [null, "Magie", "Malédiction", "Maladie", "Poison", "Camouflage", "Invisibilité", "Magie, Malédiction, Maladie, Poison", "Sort (PNJ)", "Enrager"],
|
||||||
'sc' => ["Physique", "Sacré", "Feu", "Nature", "Givre", "Ombre", "Arcane"],
|
'sc' => ["Physique", "Sacré", "Feu", "Nature", "Givre", "Ombre", "Arcane"],
|
||||||
'cl' => [null, "Guerrier", "Paladin", "Chasseur", "Voleur", "Prêtre", "DeathChevalier de la mort", "Chaman", "Mage", "Démoniste", null, "Druide"],
|
'cl' => [null, "Guerrier", "Paladin", "Chasseur", "Voleur", "Prêtre", "DeathChevalier de la mort", "Chaman", "Mage", "Démoniste", null, "Druide"],
|
||||||
'ra' => [-2 => "Horde", -1 => "Alliance", null, "Humain", "Orc", "Nain", "Elfe de la nuit", "Mort-vivant", "Tauren", "Gnome", "Troll", null, "Elfe de sang", "Draeneï"],
|
'ra' => [-2 => "Horde", -1 => "Alliance", null, "Humain", "Orc", "Nain", "Elfe de la nuit", "Mort-vivant", "Tauren", "Gnome", "Troll", null, "Elfe de sang", "Draeneï"],
|
||||||
@@ -1625,7 +1625,7 @@ $lang = array(
|
|||||||
89 => "Utilisable sous l'effet de peur",
|
89 => "Utilisable sous l'effet de peur",
|
||||||
65 => "Utilise toute la puissance"
|
65 => "Utilise toute la puissance"
|
||||||
),
|
),
|
||||||
'unkEffect' => 'Unknown Effect',
|
'unkEffect' => 'Unknown Effect (%1$d)',
|
||||||
'effects' => array(
|
'effects' => array(
|
||||||
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
||||||
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
||||||
@@ -1656,7 +1656,7 @@ $lang = array(
|
|||||||
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
||||||
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
||||||
),
|
),
|
||||||
'unkAura' => 'Unknown Aura',
|
'unkAura' => 'Unknown Aura (%1$d)',
|
||||||
'auras' => array(
|
'auras' => array(
|
||||||
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
||||||
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ $lang = array(
|
|||||||
'gl' => array(null, "Большой", "Малый"),
|
'gl' => array(null, "Большой", "Малый"),
|
||||||
'si' => array(1 => "Альянс", -1 => "Альянс только", 2 => "Орда", -2 => "Орда только", null, 3 => "Обе"),
|
'si' => array(1 => "Альянс", -1 => "Альянс только", 2 => "Орда", -2 => "Орда только", null, 3 => "Обе"),
|
||||||
'resistances' => array(null, "Сопротивление светлой магии", "Сопротивление огню", "Сопротивление силам природы", "Сопротивление магии льда", "Сопротивление темной магии", "Сопротивление тайной магии"),
|
'resistances' => array(null, "Сопротивление светлой магии", "Сопротивление огню", "Сопротивление силам природы", "Сопротивление магии льда", "Сопротивление темной магии", "Сопротивление тайной магии"),
|
||||||
'dt' => array(null, "Магия", "Проклятие", "Болезнь", "Яд", "Незаметность", "Невидимость", null, null, "Исступление"),
|
'dt' => array(null, "Магия", "Проклятие", "Болезнь", "Яд", "Незаметность", "Невидимость", "Магия, Проклятие, Болезнь, Яд", "Заклинание (НИП)", "Исступление"),
|
||||||
'sc' => array("Физический урон", "Свет", "Огонь", "природа", "Лед", "Тьма", "Тайная магия"),
|
'sc' => array("Физический урон", "Свет", "Огонь", "природа", "Лед", "Тьма", "Тайная магия"),
|
||||||
'cl' => array(null, "Воин", "Паладин", "Охотник", "Разбойник", "Жрец", "Рыцарь смерти", "Шаман", "Маг", "Чернокнижник", null, "Друид"),
|
'cl' => array(null, "Воин", "Паладин", "Охотник", "Разбойник", "Жрец", "Рыцарь смерти", "Шаман", "Маг", "Чернокнижник", null, "Друид"),
|
||||||
'ra' => array(-2 => "Орда", -1 => "Альянс", null, "Человек", "Орк", "Дворф", "Ночной эльф", "Нежить", "Таурен", "Гном", "Тролль", null, "Эльф крови", "Дреней"),
|
'ra' => array(-2 => "Орда", -1 => "Альянс", null, "Человек", "Орк", "Дворф", "Ночной эльф", "Нежить", "Таурен", "Гном", "Тролль", null, "Эльф крови", "Дреней"),
|
||||||
@@ -1625,7 +1625,7 @@ $lang = array(
|
|||||||
89 => "usablefearedМожет быть использовано, пока наложен Страх",
|
89 => "usablefearedМожет быть использовано, пока наложен Страх",
|
||||||
65 => "Использует ресурс полностью"
|
65 => "Использует ресурс полностью"
|
||||||
),
|
),
|
||||||
'unkEffect' => 'Unknown Effect',
|
'unkEffect' => 'Unknown Effect (%1$d)',
|
||||||
'effects' => array(
|
'effects' => array(
|
||||||
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
/*0-5 */ 'None', 'Instakill', 'School Damage', 'Dummy', 'Portal Teleport', 'Teleport Units',
|
||||||
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
/*6+ */ 'Apply Aura', 'Environmental Damage', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
||||||
@@ -1656,7 +1656,7 @@ $lang = array(
|
|||||||
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
||||||
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
||||||
),
|
),
|
||||||
'unkAura' => 'Unknown Aura',
|
'unkAura' => 'Unknown Aura (%1$d)',
|
||||||
'auras' => array(
|
'auras' => array(
|
||||||
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
/*0- */ 'None', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
||||||
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ $lang = array(
|
|||||||
'gl' => [null, "大", "小"],
|
'gl' => [null, "大", "小"],
|
||||||
'si' => [1 => "联盟", -1 => "仅限联盟", 2 => "部落", -2 => "仅限部落", 3 => "双方"],
|
'si' => [1 => "联盟", -1 => "仅限联盟", 2 => "部落", -2 => "仅限部落", 3 => "双方"],
|
||||||
'resistances' => [null, '神圣抗性', '火焰抗性', '自然抗性', '冰霜抗性', '暗影抗性', '奥术抗性'],
|
'resistances' => [null, '神圣抗性', '火焰抗性', '自然抗性', '冰霜抗性', '暗影抗性', '奥术抗性'],
|
||||||
'dt' => [null, "魔法", "诅咒", "疾病", "中毒", "潜行", "隐形", null, null, "激怒"],
|
'dt' => [null, "魔法", "诅咒", "疾病", "中毒", "潜行", "隐形", "魔法, 诅咒, 疾病, 中毒", "法术 (NPC)", "激怒"],
|
||||||
'sc' => ["物理", "神圣", "火焰", "自然", "冰霜", "暗影", "奥术"],
|
'sc' => ["物理", "神圣", "火焰", "自然", "冰霜", "暗影", "奥术"],
|
||||||
'cl' => [null, "战士", "圣骑士", "猎人", "潜行者", "牧师", "死亡骑士", "萨满祭司", "法师", "术士", null, "德鲁伊"],
|
'cl' => [null, "战士", "圣骑士", "猎人", "潜行者", "牧师", "死亡骑士", "萨满祭司", "法师", "术士", null, "德鲁伊"],
|
||||||
'ra' => [-2 => "部落", -1 => "联盟", null, "人类", "兽人", "矮人", "暗夜精灵", "亡灵", "牛头人", "侏儒", "巨魔", null, "血精灵", "德莱尼"],
|
'ra' => [-2 => "部落", -1 => "联盟", null, "人类", "兽人", "矮人", "暗夜精灵", "亡灵", "牛头人", "侏儒", "巨魔", null, "血精灵", "德莱尼"],
|
||||||
@@ -1624,7 +1624,7 @@ $lang = array(
|
|||||||
89 => "恐惧时可用",
|
89 => "恐惧时可用",
|
||||||
65 => "消耗所有力量"
|
65 => "消耗所有力量"
|
||||||
),
|
),
|
||||||
'unkEffect' => '未知效果',
|
'unkEffect' => '未知效果 (%1$d)',
|
||||||
'effects' => array(
|
'effects' => array(
|
||||||
/*0-5 */ '无', '杀死', '类型伤害', 'Dummy', '传送门', '传送单位',
|
/*0-5 */ '无', '杀死', '类型伤害', 'Dummy', '传送门', '传送单位',
|
||||||
/*6+ */ '应用光环', '环境伤害', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
/*6+ */ '应用光环', '环境伤害', 'Drain Power', 'Drain Health', 'Heal', 'Bind',
|
||||||
@@ -1655,7 +1655,7 @@ $lang = array(
|
|||||||
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
/*156+ */ 'Add Socket to Item', 'Create Tradeskill Item', 'Milling', 'Rename Pet', null, 'Change Talent Spec. Count',
|
||||||
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
/*162-167*/ 'Activate Talent Spec.', null, 'Remove Aura', null, null, 'Update Player Phase'
|
||||||
),
|
),
|
||||||
'unkAura' => '未知光环',
|
'unkAura' => '未知光环 (%1$d)',
|
||||||
'auras' => array(
|
'auras' => array(
|
||||||
/*0- */ '无', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
/*0- */ '无', 'Bind Sight', 'Possess', 'Periodic Damage - Flat', 'Dummy',
|
||||||
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
/*5+ */ 'Confuse', 'Charm', 'Fear', 'Periodic Heal', 'Mod Attack Speed',
|
||||||
|
|||||||
@@ -1555,6 +1555,14 @@ class SpellPage extends GenericPage
|
|||||||
$itemIdx = $this->subject->canCreateItem();
|
$itemIdx = $this->subject->canCreateItem();
|
||||||
$perfItem = DB::World()->selectRow('SELECT * FROM skill_perfect_item_template WHERE spellId = ?d', $this->typeId);
|
$perfItem = DB::World()->selectRow('SELECT * FROM skill_perfect_item_template WHERE spellId = ?d', $this->typeId);
|
||||||
|
|
||||||
|
$fmtStaffTT = function($text, $tip)
|
||||||
|
{
|
||||||
|
if (User::isInGroup(U_GROUP_EMPLOYEE))
|
||||||
|
return sprintf(Util::$dfnString, $tip, $text);
|
||||||
|
else
|
||||||
|
return $text;
|
||||||
|
};
|
||||||
|
|
||||||
// Iterate through all effects:
|
// Iterate through all effects:
|
||||||
for ($i = 1; $i < 4; $i++)
|
for ($i = 1; $i < 4; $i++)
|
||||||
{
|
{
|
||||||
@@ -1633,9 +1641,9 @@ class SpellPage extends GenericPage
|
|||||||
|
|
||||||
// Effect Name
|
// Effect Name
|
||||||
if ($_ = Lang::spell('effects', $effId))
|
if ($_ = Lang::spell('effects', $effId))
|
||||||
$foo['name'] = (User::isInGroup(U_GROUP_EMPLOYEE) ? sprintf(Util::$dfnString, 'EffectId: '.$effId, $_) : Lang::spell('effects', $effId)).Lang::main('colon');
|
$foo['name'] = $fmtStaffTT($_, 'Effect'.Lang::main('colon').$effId).Lang::main('colon');
|
||||||
else
|
else
|
||||||
$foo['name'] = 'Unknow Effect (#'.$effId.')';
|
$foo['name'] = Lang::spell('unkEffect', [$effId]);
|
||||||
|
|
||||||
if ($this->subject->getField('effect'.$i.'RadiusMax') > 0)
|
if ($this->subject->getField('effect'.$i.'RadiusMax') > 0)
|
||||||
$foo['radius'] = $this->subject->getField('effect'.$i.'RadiusMax');
|
$foo['radius'] = $this->subject->getField('effect'.$i.'RadiusMax');
|
||||||
@@ -1669,28 +1677,25 @@ class SpellPage extends GenericPage
|
|||||||
case 30: // Energize
|
case 30: // Energize
|
||||||
case 62: // Power Burn
|
case 62: // Power Burn
|
||||||
case 137: // Energize Pct
|
case 137: // Energize Pct
|
||||||
$_ = Lang::spell('powerTypes', $effMV);
|
if ($_ = Lang::spell('powerTypes', $effMV))
|
||||||
if ($_ && User::isInGroup(U_GROUP_EMPLOYEE))
|
$foo['name'] .= $fmtStaffTT('('.$_.')', 'MiscValue'.Lang::main('colon').$effMV);
|
||||||
$_ = sprintf(Util::$dfnString, 'MiscValue'.Lang::main('colon').$effMV, $_);
|
else
|
||||||
else if (!$_)
|
$foo['name'] .= '('.$effMV.')';
|
||||||
$_ = $effMV;
|
|
||||||
|
|
||||||
if ($effMV == POWER_RAGE || $effMV == POWER_RUNIC_POWER)
|
if ($effMV == POWER_RAGE || $effMV == POWER_RUNIC_POWER)
|
||||||
$foo['value'] = ($effDS && $effDS != 1 ? (($effBP + 1) / 10).Lang::game('valueDelim') : null).(($effBP + $effDS) / 10);
|
$foo['value'] = ($effDS && $effDS != 1 ? (($effBP + 1) / 10).Lang::game('valueDelim') : null).(($effBP + $effDS) / 10);
|
||||||
|
|
||||||
$foo['name'] .= ' ('.$_.')';
|
|
||||||
break;
|
break;
|
||||||
case 11: // Bind
|
case 11: // Bind
|
||||||
if (!$effMV && User::isInGroup(U_GROUP_EMPLOYEE))
|
if ($effMV <= 0)
|
||||||
$foo['name'] .= sprintf(Util::$dfnString, 'MiscValue'.Lang::main('colon').$effMV, '(current zone)');
|
$foo['name'] .= $fmtStaffTT('('.Lang::spell('currentArea').')', 'MiscValue'.Lang::main('colon').$effMV);
|
||||||
else if (!$effMV)
|
|
||||||
$foo['name'] .= '('.Lang::spell('currentArea').')';
|
|
||||||
else if ($_ = ZoneList::getName($effMV))
|
else if ($_ = ZoneList::getName($effMV))
|
||||||
$foo['name'] .= '(<a href="?zone='.$effMV.'">'.$_.'</a>)';
|
$foo['name'] .= '(<a href="?zone='.$effMV.'">'.$_.'</a>)';
|
||||||
else
|
else
|
||||||
$foo['name'] .= Util::ucFirst(Lang::game('zone')).' #'.$effMV;;
|
$foo['name'] .= Util::ucFirst(Lang::game('zone')).' #'.$effMV;
|
||||||
break;
|
break;
|
||||||
case 16: // QuestComplete
|
case 16: // Complete Quest
|
||||||
|
case 139: // Abandon Quest
|
||||||
if ($_ = QuestList::getName($effMV))
|
if ($_ = QuestList::getName($effMV))
|
||||||
$foo['name'] .= '(<a href="?quest='.$effMV.'">'.$_.'</a>)';
|
$foo['name'] .= '(<a href="?quest='.$effMV.'">'.$_.'</a>)';
|
||||||
else
|
else
|
||||||
@@ -1711,13 +1716,11 @@ class SpellPage extends GenericPage
|
|||||||
$foo['name'] .= $_;
|
$foo['name'] .= $_;
|
||||||
break;
|
break;
|
||||||
case 33: // Open Lock
|
case 33: // Open Lock
|
||||||
$_ = $effMV ? Lang::spell('lockType', $effMV) : $effMV;
|
if ($effMV && ($_ = Lang::spell('lockType', $effMV)))
|
||||||
if ($_ && User::isInGroup(U_GROUP_EMPLOYEE))
|
$foo['name'] .= ' ('.$fmtStaffTT($_, 'MiscValue'.Lang::main('colon').$effMV).')';
|
||||||
$_ = sprintf(Util::$dfnString, 'MiscValue'.Lang::main('colon').$effMV, $_);
|
else
|
||||||
else if (!$_)
|
$foo['name'] .= ' ('.$effMV.')';
|
||||||
$_ = $effMV;
|
|
||||||
|
|
||||||
$foo['name'] .= ' ('.$_.')';
|
|
||||||
break;
|
break;
|
||||||
case 53: // Enchant Item Perm
|
case 53: // Enchant Item Perm
|
||||||
case 54: // Enchant Item Temp
|
case 54: // Enchant Item Temp
|
||||||
@@ -1990,6 +1993,7 @@ class SpellPage extends GenericPage
|
|||||||
case 39: // School Immunity
|
case 39: // School Immunity
|
||||||
case 40: // Damage Immunity
|
case 40: // Damage Immunity
|
||||||
case 50: // Mod Critical Healing Amount
|
case 50: // Mod Critical Healing Amount
|
||||||
|
case 52: // Mod Physical Crit Chance
|
||||||
case 57: // Mod Spell Crit Chance
|
case 57: // Mod Spell Crit Chance
|
||||||
case 69: // School Absorb
|
case 69: // School Absorb
|
||||||
case 71: // Mod Spell Crit Chance School
|
case 71: // Mod Spell Crit Chance School
|
||||||
@@ -2166,7 +2170,7 @@ class SpellPage extends GenericPage
|
|||||||
|
|
||||||
}
|
}
|
||||||
else if ($effAura > 0)
|
else if ($effAura > 0)
|
||||||
$foo['name'] .= 'Unknown Aura ('.$effAura.')';
|
$foo['name'] .= Lang::spell('unkAura', [$effAura]);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -268,9 +268,6 @@ if (!CLI)
|
|||||||
if (count(array_filter(array_column($paths, 2))) != count($paths))
|
if (count(array_filter(array_column($paths, 2))) != count($paths))
|
||||||
{
|
{
|
||||||
CLI::write('one or more required directories are missing:', CLI::LOG_ERROR);
|
CLI::write('one or more required directories are missing:', CLI::LOG_ERROR);
|
||||||
foreach ($missing as $m)
|
|
||||||
CLI::write(' - '.$m, CLI::LOG_ERROR);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -245,9 +245,6 @@ if (!CLI)
|
|||||||
if (count(array_filter(array_column($paths, 5))) != count($paths))
|
if (count(array_filter(array_column($paths, 5))) != count($paths))
|
||||||
{
|
{
|
||||||
CLI::write('one or more required directories are missing:', CLI::LOG_ERROR);
|
CLI::write('one or more required directories are missing:', CLI::LOG_ERROR);
|
||||||
foreach ($missing as $m)
|
|
||||||
CLI::write(' - '.$m, CLI::LOG_ERROR);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user