mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
DB/Structure (thx @Carbenium for the heads up & suggestions)
* adapted structure to TDB 335.59 * dropped questItem[1-6] fields from ?_creature and ?_object (why were they even there) - removed a function-stub from Util (already forgot, what it was supposed to achieve)
This commit is contained in:
@@ -1010,7 +1010,7 @@ class SpellPage extends GenericPage
|
||||
}
|
||||
|
||||
if ($tt)
|
||||
$list = DB::World()->selectCol('SELECT DISTINCT entry FROM npc_trainer WHERE spell IN (?a) AND entry < 200000', $tt);
|
||||
$list = DB::World()->selectCol('SELECT DISTINCT ID FROM npc_trainer WHERE SpellID IN (?a) AND ID < 200000', $tt);
|
||||
else
|
||||
{
|
||||
$mask = 0;
|
||||
@@ -1019,10 +1019,10 @@ class SpellPage extends GenericPage
|
||||
$mask |= 1 << $idx;
|
||||
|
||||
$list = DB::World()->selectCol('
|
||||
SELECT IF(t1.entry > 200000, t2.entry, t1.entry)
|
||||
SELECT IF(t1.ID > 200000, t2.ID, t1.ID)
|
||||
FROM npc_trainer t1
|
||||
LEFT JOIN npc_trainer t2 ON t2.spell = -t1.entry
|
||||
WHERE t1.spell = ?d',
|
||||
LEFT JOIN npc_trainer t2 ON t2.SpellID = -t1.ID
|
||||
WHERE t1.SpellID IN (?a)',
|
||||
$this->typeId
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user