aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/CMakeLists.txt6
-rw-r--r--src/bindings/scripts/VC90/90ScriptDev2.vcproj20
-rw-r--r--src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_dalronn.cpp97
-rw-r--r--src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_ingvar.cpp106
-rw-r--r--src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald.cpp96
-rw-r--r--src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/def_keep.h10
-rw-r--r--src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/instance_keep.cpp98
7 files changed, 1 insertions, 432 deletions
diff --git a/src/bindings/scripts/CMakeLists.txt b/src/bindings/scripts/CMakeLists.txt
index b226fee627c..b3aa1bfd17d 100644
--- a/src/bindings/scripts/CMakeLists.txt
+++ b/src/bindings/scripts/CMakeLists.txt
@@ -387,11 +387,7 @@ SET(trinityscript_LIB_SRCS
scripts/zone/utgarde_keep/utgarde_keep/boss_keleseth.cpp
scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp
scripts/zone/utgarde_keep/utgarde_keep/boss_ingvar_the_plunderer.cpp
- scripts/zone/utgarde_keep/utgarde_keep/instance_keep.cpp
- scripts/zone/utgarde_keep/utgarde_keep/boss_dalronn.cpp
- scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald.cpp
- scripts/zone/utgarde_keep/utgarde_keep/boss_ingvar.cpp
- scripts/zone/utgarde_keep/utgarde_keep/def_keep.h
+ scripts/zone/utgarde_keep/utgarde_keep/def_utgarde_keep.h
scripts/zone/utgarde_keep/utgarde_pinnacle/instance_pinnacle.cpp
scripts/zone/utgarde_keep/utgarde_pinnacle/boss_skadi.cpp
scripts/zone/utgarde_keep/utgarde_pinnacle/boss_ymiron.cpp
diff --git a/src/bindings/scripts/VC90/90ScriptDev2.vcproj b/src/bindings/scripts/VC90/90ScriptDev2.vcproj
index 7f3699d76cc..d7795cb0e66 100644
--- a/src/bindings/scripts/VC90/90ScriptDev2.vcproj
+++ b/src/bindings/scripts/VC90/90ScriptDev2.vcproj
@@ -1144,14 +1144,6 @@
Name="Utgarde Keep"
>
<File
- RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\boss_dalronn.cpp"
- >
- </File>
- <File
- RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\boss_ingvar.cpp"
- >
- </File>
- <File
RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\boss_ingvar_the_plunderer.cpp"
>
</File>
@@ -1160,26 +1152,14 @@
>
</File>
<File
- RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\boss_skarvald.cpp"
- >
- </File>
- <File
RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\boss_skarvald_dalronn.cpp"
>
</File>
<File
- RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\def_keep.h"
- >
- </File>
- <File
RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\def_utgarde_keep.h"
>
</File>
<File
- RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\instance_keep.cpp"
- >
- </File>
- <File
RelativePath="..\scripts\zone\utgarde_keep\utgarde_keep\instance_utgarde_keep.cpp"
>
</File>
diff --git a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_dalronn.cpp b/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_dalronn.cpp
deleted file mode 100644
index 76d51041e9e..00000000000
--- a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_dalronn.cpp
+++ /dev/null
@@ -1,97 +0,0 @@
-/* Script Data Start
-SDName: Boss dalronn
-SDAuthor: LordVanMartin
-SD%Complete:
-SDComment:
-SDCategory:
-Script Data End */
-
-/*** SQL START ***
-update creature_template set scriptname = 'boss_dalronn' where entry = '';
-*** SQL END ***/
-#include "precompiled.h"
-
-//Spells
-#define SPELL_DEBILITATE 43650
-#define SPELL_SHADOWBOLT 43649
-#define SPELL_SHADOWBOLT_2 59575
-#define SPELL_SUMMON_SKELETONS 52611 //Trigger Spell: 52612, summons NPC (28878)
-#define SPELL_SKARVALD_GHOST 48613 //When Skarvald dies
-
-//Yell
-#define SAY_AGGRO -1574005
-#define SAY_KILL -1574006
-#define SAY_DEATH_1 -1574007
-#define SAY_DEATH_2 -1574008
-#define SAY_RAISES -1574009
-
-struct TRINITY_DLL_DECL boss_dalronnAI : public ScriptedAI
-{
- boss_dalronnAI(Creature *c) : ScriptedAI(c) {}
-
- uint32 killed;
- uint64 Skarvald;
-
- void Reset()
- {
- Skarvald = 0;
- }
- void Aggro(Unit* who)
- {
- DoScriptText(SAY_AGGRO, m_creature);
- }
- void AttackStart(Unit* who) {}
- void MoveInLineOfSight(Unit* who) {}
- void UpdateAI(const uint32 diff)
- {
- //Return since we have no target
- if(!UpdateVictim())
- return;
-
- if (Skarvald)
- {
- Creature* Skravald_m = ((Creature*)Unit::GetUnit((*m_creature), Skarvald));
- if (Skravald_m)
- {
- if (!Skravald_m->isAlive())
- {
- DoCast(Skravald_m,SPELL_SKARVALD_GHOST);
- DoScriptText(SAY_RAISES, m_creature);
- }
- }
- }
-
- DoMeleeAttackIfReady();
- }
- void JustDied(Unit* killer)
- {
- killed++;
- //On first death resurected instatly by Skarvald as a ghost, having the same abilities as when alive and is unatackable
- //If Skarvald dies first, Dalron resurects him and says "SAY_RAISES"
- if(killed ==2)
- DoScriptText(SAY_DEATH_2,m_creature);
- else
- DoScriptText(SAY_DEATH_1,m_creature);
- }
- void KilledUnit(Unit *victim)
- {
- if(victim == m_creature)
- return;
- DoScriptText(SAY_KILL, m_creature);
- }
-};
-
-CreatureAI* GetAI_boss_dalronn(Creature *_Creature)
-{
- return new boss_dalronnAI (_Creature);
-}
-
-void AddSC_boss_dalronn()
-{
- Script *newscript;
-
- newscript = new Script;
- newscript->Name="boss_dalronn";
- newscript->GetAI = GetAI_boss_dalronn;
- newscript->RegisterSelf();
-}
diff --git a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_ingvar.cpp b/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_ingvar.cpp
deleted file mode 100644
index c5e281d459d..00000000000
--- a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_ingvar.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-/* Script Data Start
-SDName: Boss ingvar
-SDAuthor: LordVanMartin
-SD%Complete:
-SDComment:
-SDCategory:
-Script Data End */
-
-/*** SQL START ***
-update creature_template set scriptname = 'boss_ingvar' where entry = '';
-*** SQL END ***/
-#include "precompiled.h"
-
-//phase 1 Human
-#define SPELL_STAGGERING_ROAR 42708
-#define SPELL_DREADFUL_ROAR 42729
-#define SPELL_SMASH 42669
-#define SPELL_ENRAGE 42705
-#define SPELL_CLEAVE 42724
-//whed killed in phase1 is resurected by Annhylde the Caller and becomes Undead
-//only in phase 2
-#define INGVAR_RESURECTION_VISUAL 24012
-#define INGVAR_UNDEAD 23980
-#define INGVAR_IMAGE 31584
-#define INGVAR_THROW_TARGET 23996
-#define INGVAR_THROW_DUMMY 23997
-
-#define TRANSFORM_INGVAR 42796
-#define INGVAR_FEIGN_DEATH 42795
-#define NPC_ANNHYLDE_THE_CALLER 24068
-#define SPELL_WOE_STRIKE 42730
-#define SPELL_DARK_SMASH 42723
-#define SPELL_SHADOW_AXE 42748
-
-//Yell
-#define SAY_AGGRO -1574015
-#define SAY_KILL -1574016
-#define SAY_DEATH -1574017
-#define SAY_ATTACK_1 -1574018
-#define SAY_ATTACK_2 -1574019
-#define SAY_ATTACK_3 -1574020
-#define SAY_ATTACK_4 -1574021
-#define SAY_PHASE2_AGGRO -1574022
-#define SAY_PHASE2_KILL -1574023
-#define SAY_PHASE2_DEATH -1574024
-#define SAY_ANNHYLDE_THE_CALLER_RESURECTION -1574025
-
-struct TRINITY_DLL_DECL boss_ingvarAI : public ScriptedAI
-{
- boss_ingvarAI(Creature *c) : ScriptedAI(c) {}
-
- uint32 phase;
-
- void Reset() {}
- void Aggro(Unit* who)
- {
- if(phase ==1)
- DoScriptText(SAY_AGGRO, m_creature);
- if(phase ==2)
- DoScriptText(SAY_PHASE2_AGGRO, m_creature);
- }
- void AttackStart(Unit* who) {}
- void MoveInLineOfSight(Unit* who) {}
- void UpdateAI(const uint32 diff)
- {
- //Return since we have no target
- if(!UpdateVictim())
- return;
-
- phase =1;
-
- DoMeleeAttackIfReady();
- }
- void JustDied(Unit* killer)
- {
- if(phase ==1)
- DoScriptText(SAY_DEATH, m_creature);
- if(phase ==2)
- DoScriptText(SAY_PHASE2_DEATH, m_creature);
- }
- void KilledUnit(Unit *victim)
- {
- if(victim == m_creature)
- return;
- if(phase == 1)
- DoScriptText(SAY_KILL, m_creature);
- //remove all auras, set unatackable and untargetable an begin resurection event and set to phase 2
- if(phase ==2)
- DoScriptText(SAY_PHASE2_KILL, m_creature);
- }
-};
-
-CreatureAI* GetAI_boss_ingvar(Creature *_Creature)
-{
- return new boss_ingvarAI (_Creature);
-}
-
-void AddSC_boss_ingvar()
-{
- Script *newscript;
-
- newscript = new Script;
- newscript->Name="boss_ingvar";
- newscript->GetAI = GetAI_boss_ingvar;
- newscript->RegisterSelf();
-}
diff --git a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald.cpp b/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald.cpp
deleted file mode 100644
index 4b7a0bb03de..00000000000
--- a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-/* Script Data Start
-SDName: Boss skarvald
-SDAuthor: LordVanMartin
-SD%Complete:
-SDComment:
-SDCategory:
-Script Data End */
-
-/*** SQL START ***
-update creature_template set scriptname = 'boss_skarvald' where entry = '';
-*** SQL END ***/
-#include "precompiled.h"
-
-//Spells
-#define SPELL_CHARGE 43651 //randomly charges anyone but tank WoWradio video 14s afer aggro, and then every 5s change target
-#define SPELL_ENRAGE 48193
-#define SPELL_STONE_STRIKE 48583
-#define SPELL_DALRON_GHOST 48612 //When Dalron dies
-
-//Yells
-#define SAY_AGGRO -1574010
-#define SAY_KILL -1574011
-#define SAY_DEATH_1 -1574012
-#define SAY_DEATH_2 -1574013
-#define SAY_RAISES -1574014
-
-struct TRINITY_DLL_DECL boss_skarvaldAI : public ScriptedAI
-{
- boss_skarvaldAI(Creature *c) : ScriptedAI(c) {}
-
- uint32 kiled;
- uint64 Dalronn;
-
- void Reset()
- {
- Dalronn = 0;
- }
- void Aggro(Unit* who)
- {
- DoScriptText(SAY_AGGRO, m_creature);
- }
- void AttackStart(Unit* who) {}
- void MoveInLineOfSight(Unit* who) {}
- void UpdateAI(const uint32 diff)
- {
- //Return since we have no target
- if(!UpdateVictim())
- return;
-
- if (Dalronn)
- {
- Creature* Dalronn_m = ((Creature*)Unit::GetUnit((*m_creature), Dalronn));
- if (Dalronn_m)
- {
- if (!Dalronn_m->isAlive())
- {
- DoCast(Dalronn_m,SPELL_DALRON_GHOST);
- DoScriptText(SAY_RAISES, m_creature);
- }
- }
- }
-
- DoMeleeAttackIfReady();
- }
- void JustDied(Unit* killer)
- {
- kiled++;
- //On first death resurected instatly by Dalron as a ghost, having the same abilities as when alive and is unatackable
- //If Dalron dies first, Skarvald resurects him and says "SAY_RAISES"
- if(kiled ==2)
- DoScriptText(SAY_DEATH_2,m_creature);
- else
- DoScriptText(SAY_DEATH_1,m_creature);
- }
- void KilledUnit(Unit *victim)
- {
- if(victim == m_creature)
- return;
- DoScriptText(SAY_KILL, m_creature);
- }
-};
-
-CreatureAI* GetAI_boss_skarvald(Creature *_Creature)
-{
- return new boss_skarvaldAI (_Creature);
-}
-
-void AddSC_boss_skarvald()
-{
- Script *newscript;
-
- newscript = new Script;
- newscript->Name="boss_skarvald";
- newscript->GetAI = GetAI_boss_skarvald;
- newscript->RegisterSelf();
-}
diff --git a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/def_keep.h b/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/def_keep.h
deleted file mode 100644
index 3d2572c6020..00000000000
--- a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/def_keep.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef DEF_KEEP_H
-#define DEF_KEEP_H
-
-#define DATA_DALRONDEAD 1
-#define DATA_DALRON_DEATH 2
-#define DATA_SKARVALDDEAD 3
-#define DATA_SKARVALD_DEATH 4
-#define DATA_DALRON 5
-#define DATA_SKARVALD 6
-#endif
diff --git a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/instance_keep.cpp b/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/instance_keep.cpp
deleted file mode 100644
index 22baa5ac1fb..00000000000
--- a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/instance_keep.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-#include "precompiled.h"
-#include "def_keep.h"
-
-struct TRINITY_DLL_DECL instance_keep : public ScriptedInstance
-{
- instance_keep(Map *Map) : ScriptedInstance(Map) {Initialize();};
-
- uint64 Skarvald,
- Skarvald_ghost,
- Dalronn,
- Dalronn_ghost,
- Annhylde_thr_caller,
- Ingvar,
- Ingvar_undead;
- bool IsBossDied[2];
-
- void Initialize()
- {
- Skarvald = 0;
- Skarvald_ghost = 0;
- Dalronn =0;
- Dalronn_ghost =0;
- Annhylde_thr_caller =0;
- Ingvar =0;
- Ingvar_undead =0;
- IsBossDied[0] = false;
- IsBossDied[1] = false;
- }
-
- bool IsEncounterInProgress() const
- {
- //not active
- return false;
- }
-
- void OnCreatureCreate(Creature *creature, uint32 creature_entry)
- {
- switch(creature->GetEntry())
- {
- case 24200: Dalronn = creature->GetGUID(); break;
- case 27389: Dalronn_ghost = creature->GetGUID(); break;
- case 24201: Skarvald = creature->GetGUID(); break;
- case 27390: Skarvald_ghost = creature->GetGUID(); break;
- case 24068: Annhylde_thr_caller = creature->GetGUID(); break;
- case 23954: Ingvar = creature->GetGUID(); break;
- case 23980: Ingvar_undead = creature->GetGUID(); break;
- }
- }
-
- uint32 GetData(uint32 type)
- {
- switch(type)
- {
- case DATA_SKARVALDDEAD:
- if(IsBossDied[0])
- return 1;
- break;
- case DATA_DALRONDEAD:
- if(IsBossDied[1])
- return 1;
- break;
- }
-
- return 0;
- }
-
- uint64 GetData64 (uint32 identifier)
- {
- return 0;
- }
-
- void SetData(uint32 type, uint32 data)
- {
- switch(type)
- {
- case DATA_SKARVALD_DEATH:
- IsBossDied[0] = true;
- break;
- case DATA_DALRON_DEATH:
- IsBossDied[0] = true;
- break;
- }
- }
-};
-
-InstanceData* GetInstanceData_instance_keep(Map* map)
-{
- return new instance_keep(map);
-}
-
-void AddSC_instance_keep()
-{
- Script *newscript;
- newscript = new Script;
- newscript->Name = "instance_keep";
- newscript->GetInstanceData = GetInstanceData_instance_keep;
- newscript->RegisterSelf();
-}