mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
feat(Core/Scripting): move all script objects to separated files (#17860)
* feat(Core/Scripts): move all script objects to separated files
* Apply 5bfeabde81
* try gcc build
* again
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "AchievementCriteriaScript.h"
|
||||
#include "BattlegroundAB.h"
|
||||
#include "BattlegroundAV.h"
|
||||
#include "BattlegroundIC.h"
|
||||
@@ -22,7 +23,6 @@
|
||||
#include "BattlegroundWS.h"
|
||||
#include "Creature.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "Vehicle.h"
|
||||
|
||||
class achievement_resilient_victory : public AchievementCriteriaScript
|
||||
|
||||
@@ -15,10 +15,12 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "AccountScript.h"
|
||||
#include "Channel.h"
|
||||
#include "CreatureScript.h"
|
||||
#include "Group.h"
|
||||
#include "Guild.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "PlayerScript.h"
|
||||
|
||||
enum IPLoggingTypes
|
||||
{
|
||||
|
||||
@@ -15,6 +15,12 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "AreaTriggerScript.h"
|
||||
#include "CreatureScript.h"
|
||||
#include "GameTime.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellMgr.h"
|
||||
/* ScriptData
|
||||
SDName: Areatrigger_Scripts
|
||||
SD%Complete: 100
|
||||
@@ -34,12 +40,6 @@ at_brewfest
|
||||
at_area_52_entrance
|
||||
EndContentData */
|
||||
|
||||
#include "GameTime.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellMgr.h"
|
||||
|
||||
// Ours
|
||||
class AreaTrigger_at_voltarus_middle : public AreaTriggerScript
|
||||
{
|
||||
@@ -496,3 +496,4 @@ void AddSC_areatrigger_scripts()
|
||||
new AreaTrigger_at_brewfest();
|
||||
new AreaTrigger_at_area_52_entrance();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,13 +15,14 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "PassiveAI.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "Spell.h"
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "SpellScript.h"
|
||||
#include "SpellScriptLoader.h"
|
||||
#include "TaskScheduler.h"
|
||||
|
||||
//
|
||||
@@ -881,3 +882,4 @@ void AddSC_emerald_dragons()
|
||||
new spell_mark_of_nature();
|
||||
RegisterSpellScript(spell_shadow_bolt_whirl);
|
||||
};
|
||||
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
*/
|
||||
|
||||
#include "Channel.h"
|
||||
#include "CreatureScript.h"
|
||||
#include "Group.h"
|
||||
#include "Guild.h"
|
||||
#include "Log.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "PlayerScript.h"
|
||||
|
||||
class ChatLogScript : public PlayerScript
|
||||
{
|
||||
@@ -142,3 +143,4 @@ void AddSC_chat_log()
|
||||
{
|
||||
new ChatLogScript();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
*/
|
||||
|
||||
#include "CellImpl.h"
|
||||
#include "CreatureScript.h"
|
||||
#include "GameEventMgr.h"
|
||||
#include "GameObjectAI.h"
|
||||
#include "GameObjectScript.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "Spell.h"
|
||||
@@ -1936,3 +1938,4 @@ void AddSC_go_scripts()
|
||||
new go_veil_skith_cage();
|
||||
new go_bells();
|
||||
}
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@ guard_shattrath_aldor
|
||||
guard_shattrath_scryer
|
||||
EndContentData */
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "GuardAI.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SpellInfo.h"
|
||||
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "ItemScript.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "Spell.h"
|
||||
/* ScriptData
|
||||
SDName: Item_Scripts
|
||||
SD%Complete: 100
|
||||
@@ -28,11 +33,6 @@ item_gor_dreks_ointment(i30175) Protecting Our Own(q10488)
|
||||
item_only_for_flight Items which should only useable while flying
|
||||
EndContentData */
|
||||
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "Spell.h"
|
||||
|
||||
/*#####
|
||||
# item_only_for_flight
|
||||
#####*/
|
||||
@@ -256,3 +256,4 @@ void AddSC_item_scripts()
|
||||
new item_captured_frog();
|
||||
new item_generic_limit_chance_above_60();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ SDComment: Should be replaced with core based AI
|
||||
SDCategory: Creatures
|
||||
EndScriptData */
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "PassiveAI.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
|
||||
#define GENERIC_CREATURE_COOLDOWN 5000
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "GameEventMgr.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
|
||||
|
||||
@@ -15,6 +15,12 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "GameObjectScript.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "SpellInfo.h"
|
||||
/* ScriptData
|
||||
SDName: Npc_Professions
|
||||
SD%Complete: 80
|
||||
@@ -22,12 +28,6 @@ SDComment: Provides learn/unlearn/relearn-options for professions. Not supported
|
||||
SDCategory: NPCs
|
||||
EndScriptData */
|
||||
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "SpellInfo.h"
|
||||
|
||||
/*
|
||||
A few notes for future developement:
|
||||
- A full implementation of gossip for GO's is required. They must have the same scripting capabilities as creatures. Basically,
|
||||
@@ -1375,3 +1375,4 @@ void AddSC_npc_professions()
|
||||
new npc_prof_tailor();
|
||||
new go_evil_book_for_dummies();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
#include "npc_stave_of_ancients.h"
|
||||
#include "CreatureGroups.h"
|
||||
#include "CreatureScript.h"
|
||||
#include "GameTime.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "Spell.h"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#ifndef NPC_STAVE_OF_ANCIENTS_H
|
||||
#define NPC_STAVE_OF_ANCIENTS_H
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "CreatureScript.h"
|
||||
#include "ScriptedCreature.h"
|
||||
|
||||
enum Common
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "CellImpl.h"
|
||||
#include "Chat.h"
|
||||
#include "CombatAI.h"
|
||||
#include "CreatureScript.h"
|
||||
#include "CreatureTextMgr.h"
|
||||
#include "GameEventMgr.h"
|
||||
#include "GameTime.h"
|
||||
@@ -25,7 +26,6 @@
|
||||
#include "ObjectMgr.h"
|
||||
#include "PassiveAI.h"
|
||||
#include "Pet.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedEscortAI.h"
|
||||
#include "ScriptedGossip.h"
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "PlayerScript.h"
|
||||
|
||||
enum ApprenticeAnglerQuestEnum
|
||||
{
|
||||
@@ -70,3 +71,4 @@ void AddSC_player_scripts()
|
||||
{
|
||||
new QuestApprenticeAnglerPlayerScript();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,10 +15,11 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CreatureScript.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Player.h"
|
||||
#include "PlayerScript.h"
|
||||
#include "QueryResult.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
class ServerMailReward : public PlayerScript
|
||||
{
|
||||
@@ -49,3 +50,4 @@ void AddSC_server_mail()
|
||||
{
|
||||
new ServerMailReward();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user