Scripts/Gilneas: some initial work on chapter 2

* implement intro event for chapter 2
* added support for entering phase 181 after completion
This commit is contained in:
Ovahlord
2018-03-29 15:39:07 +02:00
parent 30aaf4c1f9
commit 58d0cd8a8c
5 changed files with 3303 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
/*
* Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/>
*
* 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
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "gilneas.h"
#include "ScriptMgr.h"
#include "CombatAI.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "Player.h"
#include "PassiveAI.h"
#include "PhasingHandler.h"
#include "ScriptedCreature.h"
#include "SpellInfo.h"
#include "SpellScript.h"
#include "TemporarySummon.h"
#include "Vehicle.h"
#include "GameObjectAI.h"
#include "GameObject.h"
/*######
## Quest 14320 - In Need of Ingredients
######*/
enum GilneasInvasionCamera
{
CINEMATIC_FORSAKEN_INVASION = 168
};
class go_gilneas_invasion_camera : public GameObjectScript
{
public:
go_gilneas_invasion_camera() : GameObjectScript("go_gilneas_invasion_camera") { }
struct go_gilneas_invasion_cameraAI : public GameObjectAI
{
go_gilneas_invasion_cameraAI(GameObject* go) : GameObjectAI(go) { }
bool OnReportUse(Player* player) override
{
player->SendCinematicStart(CINEMATIC_FORSAKEN_INVASION);
return true;
}
};
GameObjectAI* GetAI(GameObject* go) const override
{
return new go_gilneas_invasion_cameraAI(go);
}
};
void AddSC_gilneas_c2()
{
new go_gilneas_invasion_camera();
}

View File

@@ -76,6 +76,7 @@ void AddSC_boss_captain_cookie();
void AddSC_boss_vanessa_van_cleef();
void AddSC_deadmines();
void AddSC_gilneas_c1(); //Gilneas
void AddSC_gilneas_c2();
void AddSC_gnomeregan(); //Gnomeregan
void AddSC_instance_gnomeregan();
void AddSC_instance_grim_batol(); //Grim Batol
@@ -283,6 +284,7 @@ void AddEasternKingdomsScripts()
AddSC_boss_vanessa_van_cleef();
AddSC_deadmines();
AddSC_gilneas_c1(); //Gilneas
AddSC_gilneas_c2();
AddSC_gnomeregan(); //Gnomeregan
AddSC_instance_gnomeregan();
AddSC_instance_grim_batol(); //Grim Batol