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:
Stefano Borzì
2016-09-22 21:21:22 +02:00
committed by Shin
parent c0590a5cfc
commit 431704c7e2
5 changed files with 233 additions and 51 deletions

View File

@@ -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;
}