Setup/DBC

* index column Id => id
 * why was this exception even there.
 * also DBCs copied directly into aowow_tables should work again
This commit is contained in:
Sarjuuk
2017-04-11 15:29:10 +02:00
parent 6df3a27279
commit b5c7faff65
25 changed files with 281 additions and 192 deletions

View File

@@ -32,7 +32,7 @@ function taxi() // path & nodes
{
if ($_['startNodeId'] == $p['endNodeId'] AND $_['endNodeId'] == $p['startNodeId'])
{
DB::Aowow()->query('DELETE FROM ?_taxipath WHERE Id = ?d', $j);
DB::Aowow()->query('DELETE FROM ?_taxipath WHERE id = ?d', $j);
unset($paths[$j]);
unset($paths[$i]);
break;
@@ -137,13 +137,13 @@ function taxi() // path & nodes
// fetch reactions per faction
$factions = DB::Aowow()->query('
SELECT
Id AS ARRAY_KEY,
id AS ARRAY_KEY,
IF(enemyFactionId1 = 1 OR enemyFactionId2 = 1 OR enemyFactionId3 = 1 OR enemyFactionId4 = 1 OR hostileMask & 0x3, -1, 1) AS reactA,
IF(enemyFactionId1 = 2 OR enemyFactionId2 = 2 OR enemyFactionId3 = 2 OR enemyFactionId4 = 2 OR hostileMask & 0x5, -1, 1) AS reactH
FROM
dbc_factiontemplate
WHERE
Id IN (?a)',
id IN (?a)',
array_column($fNodes, 'faction')
);