Database/World: made the database structure similar to TrinityCore (#154)
* Database/World: date the database structure similar to TrinityCore * Updated ObjectMgr.cpp * Moved sql update to pending_db_world directory
This commit is contained in:
@@ -182,11 +182,12 @@ void LFGMgr::LoadLFGDungeons(bool reload /* = false */)
|
||||
}
|
||||
|
||||
// Fill teleport locations from DB
|
||||
QueryResult result = WorldDatabase.Query("SELECT dungeonId, position_x, position_y, position_z, orientation FROM lfg_entrances");
|
||||
// 0 1 2 3 4
|
||||
QueryResult result = WorldDatabase.Query("SELECT dungeonId, position_x, position_y, position_z, orientation FROM lfg_dungeon_template");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outError(">> Loaded 0 lfg entrance positions. DB table `lfg_entrances` is empty!");
|
||||
sLog->outError(">> Loaded 0 lfg entrance positions. DB table `lfg_dungeon_template` is empty!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -199,7 +200,7 @@ void LFGMgr::LoadLFGDungeons(bool reload /* = false */)
|
||||
LFGDungeonContainer::iterator dungeonItr = LfgDungeonStore.find(dungeonId);
|
||||
if (dungeonItr == LfgDungeonStore.end())
|
||||
{
|
||||
sLog->outError("table `lfg_entrances` contains coordinates for wrong dungeon %u", dungeonId);
|
||||
sLog->outError("table `lfg_dungeon_template` contains coordinates for wrong dungeon %u", dungeonId);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user