QueryCache port

partial port of:
(ae9d01a324)
(dd1aa64563)
This commit is contained in:
funjoker
2019-07-27 02:52:13 +02:00
committed by Shauren
parent 4380fe2751
commit b4d30bb92c
18 changed files with 492 additions and 383 deletions

View File

@@ -336,14 +336,14 @@ public:
float x, y, z;
uint32 mapId;
if (QuestPOIVector const* poiData = sObjectMgr->GetQuestPOIVector(questID))
if (QuestPOIData const* poiData = sObjectMgr->GetQuestPOIData(questID))
{
auto data = poiData->front();
auto data = poiData->QuestPOIBlobDataStats.front();
mapId = data.MapID;
x = data.points.front().X;
y = data.points.front().Y;
x = data.QuestPOIBlobPointStats.front().X;
y = data.QuestPOIBlobPointStats.front().Y;
}
else
{

View File

@@ -456,6 +456,7 @@ public:
sObjectMgr->CheckCreatureTemplate(cInfo);
}
sObjectMgr->InitializeQueriesData(QUERY_DATA_CREATURES);
handler->SendGlobalGMSysMessage("Creature template reloaded.");
return true;
}
@@ -538,6 +539,7 @@ public:
{
TC_LOG_INFO("misc", "Re-Loading Quest Templates...");
sObjectMgr->LoadQuests();
sObjectMgr->InitializeQueriesData(QUERY_DATA_QUESTS);
handler->SendGlobalGMSysMessage("DB table `quest_template` (quest definitions) reloaded.");
/// dependent also from `gameobject` but this table not reloaded anyway
@@ -721,6 +723,7 @@ public:
{
TC_LOG_INFO("misc", "Re-Loading Quest POI ..." );
sObjectMgr->LoadQuestPOI();
sObjectMgr->InitializeQueriesData(QUERY_DATA_POIS);
handler->SendGlobalGMSysMessage("DB Table `quest_poi` and `quest_poi_points` reloaded.");
return true;
}