aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorModoX <moardox@gmail.com>2023-11-24 21:08:00 +0100
committerGitHub <noreply@github.com>2023-11-24 21:08:00 +0100
commit3f6f683ce4b5f4a95a2d70921de2c80de6b3a8fe (patch)
treef5601a0099a13aacef4bb115679ac51858ac9e42 /src/server/game/Globals/ObjectMgr.cpp
parentb299902881cb6525b5a6cc08c5721c0c1c7401ab (diff)
Core/Waypoints: Drop waypoint_scripts table (#29437)
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 2f4573c7ee0..4aa8e3b7304 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -77,7 +77,6 @@
ScriptMapMap sSpellScripts;
ScriptMapMap sEventScripts;
-ScriptMapMap sWaypointScripts;
std::string GetScriptsTableNameByType(ScriptsType type)
{
@@ -86,7 +85,6 @@ std::string GetScriptsTableNameByType(ScriptsType type)
{
case SCRIPTS_SPELL: res = "spell_scripts"; break;
case SCRIPTS_EVENT: res = "event_scripts"; break;
- case SCRIPTS_WAYPOINT: res = "waypoint_scripts"; break;
default: break;
}
return res;
@@ -99,7 +97,6 @@ ScriptMapMap* GetScriptsMapByType(ScriptsType type)
{
case SCRIPTS_SPELL: res = &sSpellScripts; break;
case SCRIPTS_EVENT: res = &sEventScripts; break;
- case SCRIPTS_WAYPOINT: res = &sWaypointScripts; break;
default: break;
}
return res;
@@ -5962,35 +5959,6 @@ void ObjectMgr::LoadEventScripts()
TC_LOG_INFO("server.loading", ">> Loaded {} event scripts in {} ms", _eventScriptStore.size(), GetMSTimeDiffToNow(oldMSTime));
}
-//Load WP Scripts
-void ObjectMgr::LoadWaypointScripts()
-{
- LoadScripts(SCRIPTS_WAYPOINT);
-
- std::set<uint32> actionSet;
-
- for (ScriptMapMap::const_iterator itr = sWaypointScripts.begin(); itr != sWaypointScripts.end(); ++itr)
- actionSet.insert(itr->first);
-
- WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_DATA_ACTION);
- PreparedQueryResult result = WorldDatabase.Query(stmt);
-
- if (result)
- {
- do
- {
- Field* fields = result->Fetch();
- uint32 action = fields[0].GetUInt32();
-
- actionSet.erase(action);
- }
- while (result->NextRow());
- }
-
- for (std::set<uint32>::iterator itr = actionSet.begin(); itr != actionSet.end(); ++itr)
- TC_LOG_ERROR("sql.sql", "There is no waypoint which links to the waypoint script {}", *itr);
-}
-
void ObjectMgr::LoadSpellScriptNames()
{
uint32 oldMSTime = getMSTime();