Merge pull request #7 from zackbcom/master

fixed case-sensitivity for linux
This commit is contained in:
Sarjuuk
2014-09-01 15:57:30 +02:00
5 changed files with 9 additions and 9 deletions

View File

@@ -1320,8 +1320,8 @@ class ItemList extends BaseType
$ire = DB::Aowow()->select(' $ire = DB::Aowow()->select('
SELECT i.id AS ARRAY_KEY_1, ire.id AS ARRAY_KEY_2, iet.chance, ire.* SELECT i.id AS ARRAY_KEY_1, ire.id AS ARRAY_KEY_2, iet.chance, ire.*
FROM ?_items i FROM ?_items i
JOIN item_enchantment_template iet ON iet.entry = ABS(i.randomEnchant) JOIN item_enchantment_template iet ON iet.entry = ABS(i.randomenchant)
JOIN ?_itemRandomEnchant ire ON IF(i.randomEnchant > 0, ire.id = iet.ench, ire.id = -iet.ench) JOIN ?_itemrandomenchant ire ON IF(i.randomenchant > 0, ire.id = iet.ench, ire.id = -iet.ench)
WHERE i.id IN (?a)', WHERE i.id IN (?a)',
array_keys($this->templates) array_keys($this->templates)
); );

2
setup/tools/dataset/enchants.php Normal file → Executable file
View File

@@ -127,7 +127,7 @@ if (!defined('AOWOW_REVISION'))
$ench['jsonequip']['requiredLevel'] = $misc['requiredLevel']; $ench['jsonequip']['requiredLevel'] = $misc['requiredLevel'];
// check if the spell has an entry in skill_line_ability -> Source:Profession // 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['name'][] = $enchantSpells->getField('name', true);
$ench['source'][] = $enchantSpells->id; $ench['source'][] = $enchantSpells->id;

2
setup/tools/dataset/glyphs.php Normal file → Executable file
View File

@@ -42,7 +42,7 @@ if (!defined('AOWOW_REVISION'))
?_spell s1 ON ?_spell s1 ON
s1.Id = i.spellid_1 s1.Id = i.spellid_1
LEFT JOIN LEFT JOIN
?_glyphProperties g ON ?_glyphproperties g ON
g.Id = s1.effect1MiscValue g.Id = s1.effect1MiscValue
LEFT JOIN LEFT JOIN
?_spell s2 ON ?_spell s2 ON

8
setup/tools/dataset/pets.php Normal file → Executable file
View File

@@ -48,16 +48,16 @@ if (!defined('AOWOW_REVISION'))
FROM FROM
world.creature_template ct world.creature_template ct
JOIN JOIN
?_factionTemplate ft ON ?_factiontemplate ft ON
ft.Id = ct.faction_A -- no beast has different faction set for Horde ft.Id = ct.faction -- no beast has different faction set for Horde
JOIN JOIN
dbc.creatureFamily cf ON dbc.creaturefamily cf ON
cf.Id = ct.family cf.Id = ct.family
LEFT JOIN LEFT JOIN
world.locales_creature lc ON world.locales_creature lc ON
lc.entry = ct.entry lc.entry = ct.entry
JOIN JOIN
dbc.creatureDisplayInfo cdi ON dbc.creaturedisplayinfo cdi ON
cdi.id = ct.modelId1 cdi.id = ct.modelId1
WHERE WHERE
cf.petTalentType <> -1 AND cf.petTalentType <> -1 AND

2
setup/tools/dataset/statistics.php Normal file → Executable file
View File

@@ -40,7 +40,7 @@ if (!defined('AOWOW_REVISION'))
); );
foreach ($dataz as $class => &$data) 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; return $dataz;
} }