Setup/Factions

* fix switched base rep field indizes, causing Profiler to miscalculate
   character standing
 * replace hardcoded sql table prefixes
This commit is contained in:
Sarjuuk
2025-10-20 19:08:55 +02:00
parent 33cd290dc3
commit 14c159c164
6 changed files with 43 additions and 35 deletions

View File

@@ -42,8 +42,8 @@ CLISetup::registerSetup("sql", new class extends SetupScript
$this->dummyGOs = DB::Aowow()->select(
'SELECT l1.`objectId` AS ARRAY_KEY, BIT_OR(l1.`difficulty`) AS "0", IFNULL(l2.`npcId`, l1.`npcId`) AS "1"
FROM aowow_loot_link l1
LEFT JOIN aowow_loot_link l2 ON l1.`objectId` = l2.`objectId` AND l2.`priority` = 1
FROM ?_loot_link l1
LEFT JOIN ?_loot_link l2 ON l1.`objectId` = l2.`objectId` AND l2.`priority` = 1
GROUP BY l1.`objectid`'
);