Squashed playerbot custom changes

This commit is contained in:
bash
2026-01-06 16:32:49 +01:00
parent 65c79c90f1
commit e054ef3249
198 changed files with 2774 additions and 1387 deletions

View File

@@ -434,6 +434,11 @@ bool StartDB()
if (!loader.Load())
return false;
if (!sScriptMgr->OnDatabasesLoading())
{
return false;
}
///- Get the realm Id from the configuration file
realm.Id.Realm = sConfigMgr->GetOption<uint32>("RealmID", 1);
if (!realm.Id.Realm)
@@ -479,6 +484,8 @@ void StopDB()
WorldDatabase.Close();
LoginDatabase.Close();
sScriptMgr->OnDatabasesClosing();
MySQL::Library_End();
}
@@ -569,6 +576,8 @@ void WorldUpdateLoop()
CharacterDatabase.WarnAboutSyncQueries(true);
WorldDatabase.WarnAboutSyncQueries(true);
sScriptMgr->OnDatabaseWarnAboutSyncQueries(true);
///- While we have not World::m_stopEvent, update the world
while (!World::IsStopped())
{
@@ -598,6 +607,8 @@ void WorldUpdateLoop()
#endif
}
sScriptMgr->OnDatabaseWarnAboutSyncQueries(false);
LoginDatabase.WarnAboutSyncQueries(false);
CharacterDatabase.WarnAboutSyncQueries(false);
WorldDatabase.WarnAboutSyncQueries(false);