mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/Fixup
* fix fetching creature spawns from world
This commit is contained in:
1
setup/sql/updates/1763850348_01.sql
Normal file
1
setup/sql/updates/1763850348_01.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `aowow_dbversion` SET `sql` = CONCAT(IFNULL(`sql`, ''), ' spawns');
|
||||
@@ -217,8 +217,7 @@ CLISetup::registerSetup("sql", new class extends SetupScript
|
||||
'SELECT c.`guid`, ?d AS `type`, c.`id` AS `typeId`, c.`map`, c.`position_x` AS `posX`, c.`position_y` AS `posY`, c.`spawntimesecs` AS `respawn`, c.`spawnMask`, c.`phaseMask`, c.`zoneId` AS `areaId`, IFNULL(ca.`path_id`, IFNULL(cta.`path_id`, 0)) AS `pathId`
|
||||
FROM creature c
|
||||
LEFT JOIN creature_addon ca ON ca.guid = c.guid
|
||||
LEFT JOIN creature_template_addon cta ON cta.entry = c.id
|
||||
GROUP BY c.id',
|
||||
LEFT JOIN creature_template_addon cta ON cta.entry = c.id',
|
||||
Type::NPC
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user