mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Fix dataset tools for linux
This commit is contained in:
2
setup/tools/dataset/enchants.php
Normal file → Executable file
2
setup/tools/dataset/enchants.php
Normal file → Executable file
@@ -127,7 +127,7 @@ if (!defined('AOWOW_REVISION'))
|
||||
$ench['jsonequip']['requiredLevel'] = $misc['requiredLevel'];
|
||||
|
||||
// check if the spell has an entry in skill_line_ability -> Source:Profession
|
||||
if ($skill = DB::Aowow()->SelectCell('SELECT skillLineId FROM dbc.skillLineAbility WHERE spellId = ?d', $enchantSpells->id))
|
||||
if ($skill = DB::Aowow()->SelectCell('SELECT skillLineId FROM dbc.skilllineability WHERE spellId = ?d', $enchantSpells->id))
|
||||
{
|
||||
$ench['name'][] = $enchantSpells->getField('name', true);
|
||||
$ench['source'][] = $enchantSpells->id;
|
||||
|
||||
2
setup/tools/dataset/glyphs.php
Normal file → Executable file
2
setup/tools/dataset/glyphs.php
Normal file → Executable file
@@ -42,7 +42,7 @@ if (!defined('AOWOW_REVISION'))
|
||||
?_spell s1 ON
|
||||
s1.Id = i.spellid_1
|
||||
LEFT JOIN
|
||||
?_glyphProperties g ON
|
||||
?_glyphproperties g ON
|
||||
g.Id = s1.effect1MiscValue
|
||||
LEFT JOIN
|
||||
?_spell s2 ON
|
||||
|
||||
8
setup/tools/dataset/pets.php
Normal file → Executable file
8
setup/tools/dataset/pets.php
Normal file → Executable file
@@ -48,16 +48,16 @@ if (!defined('AOWOW_REVISION'))
|
||||
FROM
|
||||
world.creature_template ct
|
||||
JOIN
|
||||
?_factionTemplate ft ON
|
||||
ft.Id = ct.faction_A -- no beast has different faction set for Horde
|
||||
?_factiontemplate ft ON
|
||||
ft.Id = ct.faction -- no beast has different faction set for Horde
|
||||
JOIN
|
||||
dbc.creatureFamily cf ON
|
||||
dbc.creaturefamily cf ON
|
||||
cf.Id = ct.family
|
||||
LEFT JOIN
|
||||
world.locales_creature lc ON
|
||||
lc.entry = ct.entry
|
||||
JOIN
|
||||
dbc.creatureDisplayInfo cdi ON
|
||||
dbc.creaturedisplayinfo cdi ON
|
||||
cdi.id = ct.modelId1
|
||||
WHERE
|
||||
cf.petTalentType <> -1 AND
|
||||
|
||||
2
setup/tools/dataset/statistics.php
Normal file → Executable file
2
setup/tools/dataset/statistics.php
Normal file → Executable file
@@ -40,7 +40,7 @@ if (!defined('AOWOW_REVISION'))
|
||||
);
|
||||
|
||||
foreach ($dataz as $class => &$data)
|
||||
$data[2] = array_values(DB::Aowow()->selectRow('SELECT mle.chance*100 cMle, spl.chance*100 cSpl FROM dbc.gtChanceToMeleeCritBase mle, dbc.gtChanceToSpellCritBase spl WHERE mle.idx = spl.idx AND mle.idx = ?d', $class - 1));
|
||||
$data[2] = array_values(DB::Aowow()->selectRow('SELECT mle.chance*100 cMle, spl.chance*100 cSpl FROM dbc.gtchancetomeleecritbase mle, dbc.gtchancetospellcritbase spl WHERE mle.idx = spl.idx AND mle.idx = ?d', $class - 1));
|
||||
|
||||
return $dataz;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user