mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
fixed AzthPlgLoader
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#include "AzthCustomPlgLoader.h"
|
||||
#include "AzthPlgLoader.h"
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
#include "AzthCustomPlgLoader.h"
|
||||
|
||||
#ifndef AZTH_PLG_LOADER_CPP
|
||||
#define AZTH_PLG_LOADER_CPP
|
||||
|
||||
/* This is where custom AzerothShard function scripts declarations should be added. */
|
||||
// void AddSC_azth_commandscript();
|
||||
// void AddSC_CrossFactionGroups();
|
||||
// void AddSC_azth_player_plg();
|
||||
// void AddSC_Custom_Rates();
|
||||
// void AddSC_PWS_Transmogrification();
|
||||
// void AddSC_CS_Transmogrification();
|
||||
// void AddSC_npc_1v1arena();
|
||||
|
||||
void AddAzthCustomScripts() {
|
||||
/* This is where custom AzerothShard scripts should be added. */
|
||||
// AddSC_azth_commandscript();
|
||||
// AddSC_CrossFactionGroups();
|
||||
// AddSC_azth_player_plg();
|
||||
// AddSC_Custom_Rates();
|
||||
// AddSC_PWS_Transmogrification();
|
||||
// AddSC_CS_Transmogrification();
|
||||
// AddSC_npc_1v1arena();
|
||||
}
|
||||
|
||||
|
||||
#endif /* AZTH_PLG_LOADER_CPP */
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
void AddAzthCustomScripts();
|
||||
@@ -1,13 +1,29 @@
|
||||
#include "AzthPlgLoader.h"
|
||||
#include "Log.h"
|
||||
|
||||
#ifndef SCRIPTLOADER_CPP
|
||||
#define SCRIPTLOADER_CPP
|
||||
|
||||
/* This is where custom AzerothShard function scripts declarations should be added. */
|
||||
// void AddSC_azth_commandscript();
|
||||
// void AddSC_CrossFactionGroups();
|
||||
// void AddSC_azth_player_plg();
|
||||
// void AddSC_Custom_Rates();
|
||||
// void AddSC_PWS_Transmogrification();
|
||||
// void AddSC_CS_Transmogrification();
|
||||
// void AddSC_npc_1v1arena();
|
||||
|
||||
void AddAzthScripts()
|
||||
{
|
||||
sLog->outString("Loading AzerothShard Plugins...");
|
||||
/* This is where custom AzerothShard scripts should be added. */
|
||||
// AddSC_azth_commandscript();
|
||||
// AddSC_CrossFactionGroups();
|
||||
// AddSC_azth_player_plg();
|
||||
// AddSC_Custom_Rates();
|
||||
// AddSC_PWS_Transmogrification();
|
||||
// AddSC_CS_Transmogrification();
|
||||
// AddSC_npc_1v1arena();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C)
|
||||
* Copyright (C)
|
||||
* Copyright (C)
|
||||
* Copyright (C)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -33,6 +33,9 @@
|
||||
#include "Player.h"
|
||||
#include "WorldPacket.h"
|
||||
|
||||
// [AZTH]
|
||||
#include "PluginsLoader.h"
|
||||
|
||||
// This is the global static registry of scripts.
|
||||
/*template<class TScript>
|
||||
class ScriptRegistry
|
||||
@@ -178,6 +181,9 @@ void ScriptMgr::Initialize()
|
||||
sLog->outString("Loading C++ scripts");
|
||||
|
||||
FillSpellSummary();
|
||||
|
||||
AddAzthScripts(); // [AZTH] Loading AzerothShard Scripts
|
||||
|
||||
AddScripts();
|
||||
CheckIfScriptsInDatabaseExist();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user