Merge branch 'master' into 4.3.4

Conflicts:
	src/server/game/AI/EventAI/CreatureEventAI.h
	src/server/game/AI/EventAI/CreatureEventAIMgr.h
	src/server/game/Achievements/AchievementMgr.cpp
	src/server/game/DungeonFinding/LFGMgr.h
	src/server/game/Entities/Creature/Creature.h
	src/server/game/Entities/Object/Updates/UpdateData.cpp
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Entities/Player/Player.h
	src/server/game/Grids/Notifiers/GridNotifiers.h
	src/server/game/Grids/ObjectGridLoader.h
	src/server/game/Spells/SpellInfo.h
	src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp
	src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp
	src/server/scripts/EasternKingdoms/ZulAman/boss_janalai.cpp
	src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp
	src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
	src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp
	src/server/scripts/EasternKingdoms/ZulGurub/boss_jindo.cpp
	src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
	src/server/scripts/EasternKingdoms/zone_burning_steppes.cpp
	src/server/scripts/EasternKingdoms/zone_hinterlands.cpp
	src/server/scripts/EasternKingdoms/zone_silverpine_forest.cpp
	src/server/scripts/EasternKingdoms/zone_tirisfal_glades.cpp
	src/server/scripts/Kalimdor/zone_azshara.cpp
	src/server/scripts/Kalimdor/zone_darkshore.cpp
	src/server/scripts/Kalimdor/zone_desolace.cpp
	src/server/scripts/Kalimdor/zone_mulgore.cpp
	src/server/scripts/Kalimdor/zone_orgrimmar.cpp
	src/server/scripts/Kalimdor/zone_stonetalon_mountains.cpp
	src/server/scripts/Kalimdor/zone_tanaris.cpp
	src/server/scripts/Kalimdor/zone_thousand_needles.cpp
	src/tools/map_extractor/System.cpp
	src/tools/map_extractor/mpq_libmpq.cpp
	src/tools/map_extractor/mpq_libmpq04.h
	src/tools/vmap4_extractor/loadlib/loadlib.h
	src/tools/vmap4_extractor/mpq_libmpq.cpp
	src/tools/vmap4_extractor/mpq_libmpq04.h
This commit is contained in:
Spp committed 2013-11-08 10:29:51 +01:00
commit 990e4c7851
484 files changed
+3938 -2160

No files matched your search

+1 -1
View File
@@ -1654,7 +1654,7 @@ public:
// Output III. LANG_PINFO_BANNED if ban exists and is applied
if (banTime >= 0)
handler->PSendSysMessage(LANG_PINFO_BANNED, banType.c_str(), banTime > 0 ? secsToTimeString(banTime - time(NULL), true).c_str() : "permanently", banReason.c_str(), bannedBy.c_str());
handler->PSendSysMessage(LANG_PINFO_BANNED, banType.c_str(), banReason.c_str(), banTime > 0 ? secsToTimeString(banTime - time(NULL), true).c_str() : "permanently", bannedBy.c_str());
// Output IV. LANG_PINFO_MUTED if mute is applied
if (muteTime > 0)
@@ -634,8 +634,8 @@ public:
}
}
void EnterCombat(Unit* who) OVERRIDE {}
void Reset() OVERRIDE {}
void EnterCombat(Unit* who) OVERRIDE { }
void Reset() OVERRIDE { }
void JustDied(Unit* killer) OVERRIDE
{
@@ -804,7 +804,7 @@ public:
}
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void JustDied(Unit* slayer) OVERRIDE
{
@@ -1019,7 +1019,7 @@ public:
break;
}
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void JustDied(Unit* slayer) OVERRIDE
{
@@ -1127,8 +1127,8 @@ public:
{
npc_tobias_seecherAI(Creature* creature) : npc_escortAI(creature) { }
void EnterCombat(Unit* who) OVERRIDE {}
void Reset() OVERRIDE {}
void EnterCombat(Unit* who) OVERRIDE { }
void Reset() OVERRIDE { }
void JustDied(Unit* killer) OVERRIDE
{
@@ -47,7 +47,7 @@ public:
Spirit_Timer = 24000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SummonSpirits(Unit* victim)
{
@@ -57,7 +57,7 @@ public:
EnvelopingWeb_Timer = 16000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -55,7 +55,7 @@ public:
Medics = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SummonAdds(Unit* victim)
{
@@ -49,7 +49,7 @@ public:
Frenzy_Timer =0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -54,7 +54,7 @@ public:
ShadowShield_Timer = 8000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -53,7 +53,7 @@ public:
WarStomp_Timer =0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -56,7 +56,7 @@ public:
Smite_Timer = 8000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -218,7 +218,7 @@ public:
}
}
void JustSummoned(Creature* /*summon*/) OVERRIDE {}
void JustSummoned(Creature* /*summon*/) OVERRIDE { }
void SetData(uint32 type, uint32 data) OVERRIDE
{
@@ -171,7 +171,6 @@ set(scripts_STAT_SRCS
EasternKingdoms/ScarletMonastery/boss_herod.cpp
EasternKingdoms/ScarletMonastery/boss_scorn.cpp
EasternKingdoms/zone_undercity.cpp
EasternKingdoms/zone_silvermoon_city.cpp
EasternKingdoms/zone_loch_modan.cpp
EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp
EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
@@ -90,7 +90,7 @@ public:
ResetTimer = 2000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void KilledUnit(Unit* /*victim*/) OVERRIDE
{
@@ -142,7 +142,7 @@ public:
me->SetVisible(true);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void KilledUnit(Unit* /*victim*/) OVERRIDE
{
@@ -462,7 +462,7 @@ public:
struct boss_baron_rafe_dreugerAI : public boss_moroes_guestAI
{
//Retr Pally
boss_baron_rafe_dreugerAI(Creature* creature) : boss_moroes_guestAI(creature){}
boss_baron_rafe_dreugerAI(Creature* creature) : boss_moroes_guestAI(creature){ }
uint32 HammerOfJustice_Timer;
uint32 SealOfCommand_Timer;
@@ -589,7 +589,7 @@ public:
struct boss_lady_keira_berrybuckAI : public boss_moroes_guestAI
{
//Holy Pally
boss_lady_keira_berrybuckAI(Creature* creature) : boss_moroes_guestAI(creature) {}
boss_lady_keira_berrybuckAI(Creature* creature) : boss_moroes_guestAI(creature) { }
uint32 Cleanse_Timer;
uint32 GreaterBless_Timer;
@@ -117,9 +117,9 @@ public:
uint64 malchezaar;
InfernalPoint *point;
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -529,7 +529,7 @@ public:
CastTimer = 2000 + (rand()%3000);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -156,9 +156,9 @@ public:
SacrificeGUID = 0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
@@ -185,7 +185,7 @@ public:
struct npc_fiendish_portalAI : public PassiveAI
{
npc_fiendish_portalAI(Creature* creature) : PassiveAI(creature), summons(me){}
npc_fiendish_portalAI(Creature* creature) : PassiveAI(creature), summons(me){ }
SummonList summons;
@@ -230,7 +230,7 @@ public:
me->ApplySpellImmune(0, IMMUNITY_SCHOOL, SPELL_SCHOOL_MASK_FIRE, true);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -249,7 +249,7 @@ public:
YipTimer = 10000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -733,7 +733,7 @@ public:
MoveTimer = 1000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE
@@ -1073,7 +1073,7 @@ public:
RomuloDead = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* who) OVERRIDE
{
@@ -176,7 +176,7 @@ public:
Start(false, false);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void WaypointReached(uint32 waypointId) OVERRIDE
{
@@ -512,7 +512,7 @@ public:
me->RemoveCorpse();
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MovementInform(uint32 type, uint32 id) OVERRIDE
{
@@ -461,8 +461,8 @@ public:
DoCast(me, SPELL_FLAMESTRIKE2, true);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -509,7 +509,7 @@ public:
FakeDeath = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void DamageTaken(Unit* /*killer*/, uint32 &damage) OVERRIDE
{
@@ -609,8 +609,8 @@ public:
HatchTimer = 10000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -652,7 +652,7 @@ public:
DoCast(me, SPELL_ARCANE_SPHERE_PASSIVE, true);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -334,12 +334,12 @@ public:
{
npc_fel_crystalAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -222,7 +222,7 @@ public:
me->SetDisplayId(me->GetCreatureTemplate()->Modelid2);
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void JustDied(Unit* slayer) OVERRIDE
{
@@ -233,10 +233,10 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
};
};
@@ -1678,10 +1678,10 @@ public:
struct npc_the_lich_king_tirion_dawnAI : public ScriptedAI
{
npc_the_lich_king_tirion_dawnAI(Creature* creature) : ScriptedAI(creature) { Reset(); }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void AttackStart(Unit* /*who*/) { } // very sample, just don't make them aggreesive OVERRIDE
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void JustDied(Unit* /*killer*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE { }
};
};
@@ -58,7 +58,7 @@ public:
Terrify_Timer = 20000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -162,8 +162,8 @@ public:
uint32 delay;
uint32 spell;
uint32 spell2;
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SetType(uint32 _type)
{
switch (Creaturetype = _type)
@@ -254,7 +254,7 @@ public:
laugh = urand(15000, 30000);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SaySound(uint8 textEntry, Unit* target = 0)
{
@@ -821,7 +821,7 @@ public:
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) OVERRIDE
{
@@ -148,9 +148,9 @@ public:
uint32 Start_Timer;
void Reset() OVERRIDE {}
void WaypointReached(uint32 /*waypointId*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void WaypointReached(uint32 /*waypointId*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -61,7 +61,7 @@ public:
FrostNova_Timer = 30000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -69,7 +69,7 @@ public:
DoCast(me, SPELL_ICEARMOR, true);
}
void EnterCombat(Unit* /*who*/)OVERRIDE {}
void EnterCombat(Unit* /*who*/)OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -145,8 +145,8 @@ public:
}
}
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
};
};
@@ -61,7 +61,7 @@ class boss_postmaster_malown : public CreatureScript
{
boss_postmaster_malownAI(Creature* creature) : BossAI(creature, TYPE_MALOWN) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -107,7 +107,7 @@ public:
Talk(SAY_ZAPPED);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
};
};
@@ -155,7 +155,7 @@ public:
Tagged = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SpellHit(Unit* caster, const SpellInfo* spell) OVERRIDE
{
@@ -235,7 +235,7 @@ public:
Tagged = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) OVERRIDE
{
@@ -689,7 +689,7 @@ public:
KillTimer = 15000;
}
void EnterCombat(Unit* /*who*/)OVERRIDE {}
void EnterCombat(Unit* /*who*/)OVERRIDE { }
void SpellHitTarget(Unit* target, const SpellInfo* spell) OVERRIDE
{
@@ -531,7 +531,7 @@ public:
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
me->SetSpeed(MOVE_RUN, 0.8f);
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
DoZoneInCombat();
@@ -565,12 +565,12 @@ public:
me->SetTarget(me->GetGUID());
me->SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, 0.01f); // core bug
}
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
};
};
@@ -525,7 +525,7 @@ public:
struct npc_void_sentinelAI : public ScriptedAI
{
npc_void_sentinelAI(Creature* creature) : ScriptedAI(creature){}
npc_void_sentinelAI(Creature* creature) : ScriptedAI(creature){ }
uint32 PulseTimer;
uint32 VoidBlastTimer;
@@ -62,6 +62,4 @@ enum LiadrinnSpeeches
#define CS_GOSSIP3 "Why did they stop?"
#define CS_GOSSIP4 "Your insight is appreciated."
void AddSC_sunwell_plateau()
{
}
void AddSC_sunwell_plateau() { }
@@ -23,13 +23,6 @@ SDComment:
SDCategory: Burning Steppes
EndScriptData */
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "Player.h"
void AddSC_burning_steppes()
{
@@ -45,9 +45,9 @@ public:
{
npc_ghoul_flayerAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* killer) OVERRIDE
{
@@ -129,7 +129,7 @@ public:
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
};
};
@@ -81,7 +81,7 @@ public:
Summon = false;
}
void EnterCombat(Unit* /*who*/)OVERRIDE {}
void EnterCombat(Unit* /*who*/)OVERRIDE { }
void JustSummoned(Creature* summoned) OVERRIDE
{
@@ -86,7 +86,7 @@ public:
{
npc_00x09hlAI(Creature* creature) : npc_escortAI(creature) { }
void Reset() { }
void Reset() OVERRIDE { }
void WaypointReached(uint32 waypointId)
{
@@ -67,9 +67,9 @@ public:
Timer = 2500;
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -1,115 +0,0 @@
/*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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/>.
*/
/* ScriptData
SDName: Silvermoon_City
SD%Complete: 100
SDComment: Quest support: 9685
SDCategory: Silvermoon City
EndScriptData */
/* ContentData
npc_blood_knight_stillblade
EndContentData */
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Player.h"
#include "SpellInfo.h"
/*#######
# npc_blood_knight_stillblade
#######*/
enum StillbladeData
{
SAY_HEAL = 0,
QUEST_REDEEMING_THE_DEAD = 9685,
SPELL_SHIMMERING_VESSEL = 31225,
SPELL_REVIVE_SELF = 32343,
};
class npc_blood_knight_stillblade : public CreatureScript
{
public:
npc_blood_knight_stillblade() : CreatureScript("npc_blood_knight_stillblade") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_blood_knight_stillbladeAI(creature);
}
struct npc_blood_knight_stillbladeAI : public ScriptedAI
{
npc_blood_knight_stillbladeAI(Creature* creature) : ScriptedAI(creature) { }
uint32 lifeTimer;
bool spellHit;
void Reset() OVERRIDE
{
lifeTimer = 120000;
me->SetStandState(UNIT_STAND_STATE_DEAD);
me->SetUInt32Value(UNIT_FIELD_BYTES_1, 7); // lay down
spellHit = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
{
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE
{
}
void UpdateAI(uint32 diff) OVERRIDE
{
if (me->IsStandState())
{
if (lifeTimer <= diff)
me->AI()->EnterEvadeMode();
else
lifeTimer -= diff;
}
}
void SpellHit(Unit* caster, const SpellInfo* Spellkind) OVERRIDE
{
if (Spellkind->Id != SPELL_SHIMMERING_VESSEL || spellHit)
return;
Player* player = caster->ToPlayer();
if (!player || !player->IsActiveQuest(QUEST_REDEEMING_THE_DEAD))
return;
player->AreaExploredOrEventHappens(QUEST_REDEEMING_THE_DEAD);
DoCast(me, SPELL_REVIVE_SELF);
me->SetStandState(UNIT_STAND_STATE_STAND);
me->SetUInt32Value(UNIT_DYNAMIC_FLAGS, 0);
//me->RemoveAllAuras();
Talk(SAY_HEAL);
spellHit = true;
}
};
};
void AddSC_silvermoon_city()
{
new npc_blood_knight_stillblade();
}
@@ -107,7 +107,7 @@ public:
}
}
void Reset() {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* who)
{
@@ -82,7 +82,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -124,7 +124,7 @@ public:
MultiShotTimer = 10000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void JustSummoned(Creature* summoned) OVERRIDE
{
@@ -246,7 +246,7 @@ public:
EventCast = true;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -174,9 +174,9 @@ public:
{
npc_the_scourge_cauldronAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void DoDie()
{
@@ -393,7 +393,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/)OVERRIDE {}
void EnterCombat(Unit* /*who*/)OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -269,7 +269,7 @@ public:
Talk(SAY_AGGRO, who->GetGUID());
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
};
};
@@ -442,7 +442,7 @@ class spell_ex : public SpellScriptLoader
//bool Validate(SpellInfo const* spellEntry){return true;} OVERRIDE
//bool Load(){return true;}
//void Unload(){}
//void Unload(){ }
//void Function(SpellEffIndex effIndex) //OnEffect += SpellEffectFn(spell_ex_SpellScript::Function, EFFECT_ANY, SPELL_EFFECT_ANY);
//void Function() //OnHit += SpellEffectFn(spell_ex_SpellScript::Function);
@@ -469,7 +469,7 @@ class spell_ex : public SpellScriptLoader
PrepareAuraScript(spell_ex)
//bool Validate(SpellInfo const* spellEntry){return true;} OVERRIDE
//bool Load(){return true;}
//void Unload(){}
//void Unload(){ }
//void spell_ex_SpellScript::Function(AuraEffect const* aurEff, AuraEffectHandleModes mode) //OnEffectApply += AuraEffectApplyFn(spell_ex_SpellScript::Function, EFFECT_ANY, SPELL_AURA_ANY, AURA_EFFECT_HANDLE_REAL);
//void spell_ex_SpellScript::Function(AuraEffect const* aurEff, AuraEffectHandleModes mode) //OnEffectRemove += AuraEffectRemoveFn(spell_ex_SpellScript::Function, EFFECT_ANY, SPELL_AURA_ANY, AURA_EFFECT_HANDLE_REAL);
@@ -108,7 +108,7 @@ public:
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void DamageTaken(Unit* /*done_by*/, uint32 &damage) OVERRIDE
{
@@ -148,11 +148,11 @@ public:
{
npc_doomfireAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void DamageTaken(Unit* /*done_by*/, uint32 &damage) OVERRIDE
{
@@ -195,7 +195,7 @@ public:
TargetGUID = who->GetGUID();
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void DamageTaken(Unit* /*done_by*/, uint32 &damage) OVERRIDE
{
@@ -638,7 +638,7 @@ public:
DoMeleeAttackIfReady();
}
void WaypointReached(uint32 /*waypointId*/) OVERRIDE {}
void WaypointReached(uint32 /*waypointId*/) OVERRIDE { }
};
};
@@ -443,7 +443,7 @@ public:
imol = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void WaypointReached(uint32 waypointId) OVERRIDE
{
@@ -594,7 +594,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -697,7 +697,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -820,7 +820,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -918,7 +918,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -1017,7 +1017,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -1107,7 +1107,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -1206,7 +1206,7 @@ public:
me->SetPosition(x, y, z, 0);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -639,8 +639,8 @@ public:
}
}
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -59,7 +59,7 @@ public:
{
boss_aeonusAI(Creature* creature) : BossAI(creature, TYPE_AEONUS) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -60,7 +60,7 @@ public:
{
boss_chrono_lord_dejaAI(Creature* creature) : BossAI(creature, TYPE_CRONO_LORD_DEJA) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -59,7 +59,7 @@ public:
{
boss_temporusAI(Creature* creature) : BossAI(creature, TYPE_TEMPORUS) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -151,7 +151,7 @@ public:
//ScriptedAI::AttackStart(who);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) OVERRIDE
{
@@ -303,7 +303,7 @@ public:
else mWaveId = 1;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void DoSummonAtRift(uint32 creature_entry)
{
@@ -58,7 +58,7 @@ public:
CorruptForcesTimer = 30000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -61,7 +61,7 @@ public:
Invisible = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void SummonAdds(Unit* victim)
{
@@ -62,7 +62,7 @@ public:
RepulsiveGazeTimer = 23000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -118,7 +118,7 @@ public:
}
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -79,7 +79,7 @@ public:
Enraged = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -229,7 +229,7 @@ class npc_ruul_snowhoof : public CreatureScript
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void Reset() OVERRIDE
{
@@ -95,7 +95,7 @@ public:
me->SetStandState(UNIT_STAND_STATE_SLEEP);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* who) OVERRIDE
@@ -318,12 +318,12 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
};
};
@@ -398,7 +398,7 @@ public:
Talk(SAY_AGGRO, who->GetGUID());
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
};
};
@@ -457,7 +457,7 @@ public:
StartEvent();
}
void EnterCombat(Unit* /*who*/)OVERRIDE {}
void EnterCombat(Unit* /*who*/)OVERRIDE { }
void StartEvent()
{
@@ -614,7 +614,7 @@ public:
struct npc_death_ravagerAI : public ScriptedAI
{
npc_death_ravagerAI(Creature* creature) : ScriptedAI(creature){}
npc_death_ravagerAI(Creature* creature) : ScriptedAI(creature){ }
uint32 RendTimer;
uint32 EnragingBiteTimer;
@@ -54,9 +54,9 @@ public:
{
npc_webbed_creatureAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* killer) OVERRIDE
{
@@ -565,7 +565,7 @@ public:
Talk(SAY_ATTACKED_1, who->GetGUID());
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -15,11 +15,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "Player.h"
void AddSC_orgrimmar()
{
}
@@ -840,7 +840,7 @@ public:
hasTarget = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* /*slayer*/) OVERRIDE;
void UpdateAI(uint32 diff) OVERRIDE
+2 -2
View File
@@ -266,7 +266,7 @@ public:
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void Reset() {}
void Reset() OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -398,7 +398,7 @@ public:
}
}
void Reset(){}
void Reset()OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -68,7 +68,7 @@ public:
{
npc_mistAI(Creature* creature) : FollowerAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void MoveInLineOfSight(Unit* who) OVERRIDE
@@ -121,7 +121,7 @@ public:
{
npc_giltharesAI(Creature* creature) : npc_escortAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void WaypointReached(uint32 waypointId) OVERRIDE
{
@@ -235,7 +235,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -340,7 +340,7 @@ public:
BigWill = 0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* who) OVERRIDE
@@ -357,7 +357,7 @@ public:
}
}
void KilledUnit(Unit* /*victim*/) OVERRIDE {}
void KilledUnit(Unit* /*victim*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -159,7 +159,7 @@ public:
_dialogueArray(dialogueArray),
_currentEntry(NULL),
_actionTimer(0)
{}
{ }
// The array MUST be terminated by {0, 0, 0, 0, 0}
/// Function to initialize the dialogue helper for instances. If not used with instances, GetSpeakerByEntry MUST be overwritten to obtain the speakers
@@ -189,8 +189,8 @@ public:
DoCast(me, SPELL_HEALTHY_MUSHROOM_POTENT_FUNGUS, true);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*victim*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*victim*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -235,12 +235,12 @@ public:
creature->UpdateAllStats();
}
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*victim*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*victim*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
@@ -541,10 +541,10 @@ public:
bool bCasted;
bool bCasted2;
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*victim*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*victim*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE
@@ -325,7 +325,7 @@ public:
struct npc_anub_ar_warriorAI : public ScriptedAI
{
npc_anub_ar_warriorAI(Creature* creature) : ScriptedAI(creature){}
npc_anub_ar_warriorAI(Creature* creature) : ScriptedAI(creature){ }
uint32 uiCleaveTimer;
uint32 uiStrikeTimer;
@@ -1536,8 +1536,8 @@ public:
m_uiHatchEggTimer -= uiDiff;
}
void AttackStart(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
};
@@ -490,7 +490,7 @@ class boss_twilight_halion : public CreatureScript
}
// Never evade
void EnterEvadeMode() OVERRIDE {}
void EnterEvadeMode() OVERRIDE { }
void KilledUnit(Unit* victim) OVERRIDE
{
@@ -1024,8 +1024,8 @@ class npc_meteor_strike_initial : public CreatureScript
}
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void EnterEvadeMode() OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
void EnterEvadeMode() OVERRIDE { }
private:
InstanceScript* _instance;
std::list<Creature*> _meteorList;
@@ -1165,7 +1165,7 @@ class npc_combustion_consumption : public CreatureScript
summoner->CastCustomSpell(_explosionSpell, SPELLVALUE_BASE_POINT0, damage, summoner);
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
private:
InstanceScript* _instance;
@@ -296,7 +296,7 @@ class npc_infernal_volcano : public CreatureScript
me->DespawnOrUnsummon();
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
private:
SummonList _summons;
@@ -400,7 +400,7 @@ class npc_nether_portal : public CreatureScript
me->DespawnOrUnsummon();
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
private:
SummonList _summons;
@@ -124,7 +124,7 @@ class npc_announcer_toc10 : public CreatureScript
pAlly->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
}
void AttackStart(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
};
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
@@ -547,9 +547,9 @@ class npc_tirion_toc : public CreatureScript
_instance = me->GetInstanceScript();
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 uiDiff) OVERRIDE
{
@@ -835,9 +835,9 @@ class npc_garrosh_toc : public CreatureScript
_instance = me->GetInstanceScript();
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 uiDiff) OVERRIDE
{
@@ -919,9 +919,9 @@ class npc_varian_toc : public CreatureScript
_instance = me->GetInstanceScript();
}
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 uiDiff) OVERRIDE
{
@@ -407,7 +407,7 @@ class player_overlord_brandAI : public PlayerAI
me->CastCustomSpell(SPELL_OVERLORD_BRAND_HEAL, SPELLVALUE_BASE_POINT0, int32(addHealth*5.5f), tyrannus, true, NULL, NULL, tyrannus->GetGUID());
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
private:
uint64 _tyrannus;
@@ -56,10 +56,10 @@ public:
{
boss_commander_kolurgAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE
{
@@ -69,7 +69,7 @@ public:
DoMeleeAttackIfReady();
}
void JustDied(Unit* /*killer*/) OVERRIDE {}
void JustDied(Unit* /*killer*/) OVERRIDE { }
};
};
@@ -49,9 +49,9 @@ public:
{
boss_commander_stoutbeardAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE
{
@@ -858,7 +858,7 @@ class npc_pool_of_tar : public CreatureScript
me->CastSpell(me, SPELL_BLAZE, true);
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
@@ -851,7 +851,7 @@ class npc_darkrune_watcher : public CreatureScript
struct npc_darkrune_watcherAI : public ScriptedAI
{
npc_darkrune_watcherAI(Creature* creature) : ScriptedAI(creature){}
npc_darkrune_watcherAI(Creature* creature) : ScriptedAI(creature){ }
uint32 ChainTimer;
uint32 LightTimer;
@@ -900,7 +900,7 @@ class npc_darkrune_guardian : public CreatureScript
struct npc_darkrune_guardianAI : public ScriptedAI
{
npc_darkrune_guardianAI(Creature* creature) : ScriptedAI(creature){}
npc_darkrune_guardianAI(Creature* creature) : ScriptedAI(creature){ }
uint32 StormTimer;
@@ -955,7 +955,7 @@ class npc_darkrune_sentinel : public CreatureScript
struct npc_darkrune_sentinelAI : public ScriptedAI
{
npc_darkrune_sentinelAI(Creature* creature) : ScriptedAI(creature){}
npc_darkrune_sentinelAI(Creature* creature) : ScriptedAI(creature){ }
uint32 HeroicTimer;
uint32 WhirlTimer;
@@ -459,7 +459,7 @@ class npc_xt002_heart : public CreatureScript
SetCombatMovement(false);
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -1047,7 +1047,7 @@ class boss_brain_of_yogg_saron : public CreatureScript
}
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
void DoAction(int32 action) OVERRIDE
{
@@ -1132,7 +1132,7 @@ class npc_ominous_cloud : public CreatureScript
}
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
void DoAction(int32 action) OVERRIDE
{
@@ -1400,7 +1400,7 @@ class npc_influence_tentacle : public CreatureScript
brain->AI()->DoAction(ACTION_TENTACLE_KILLED);
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
private:
InstanceScript* _instance;
@@ -1431,7 +1431,7 @@ class npc_descend_into_madness : public CreatureScript
me->DespawnOrUnsummon();
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
private:
InstanceScript* _instance;
@@ -1544,7 +1544,7 @@ class npc_observation_ring_keeper : public CreatureScript
}
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
@@ -1914,7 +1914,7 @@ class npc_laughing_skull : public CreatureScript
}
// don't evade, otherwise the Lunatic Gaze aura is removed
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
@@ -514,7 +514,7 @@ public:
{
npc_spectatorAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void MovementInform(uint32 motionType, uint32 pointId) OVERRIDE
{
@@ -87,7 +87,7 @@ public:
instance->SetData(DATA_CYANIGOSA_EVENT, IN_PROGRESS);
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -142,7 +142,7 @@ public:
}
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -303,7 +303,7 @@ public:
}
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -206,7 +206,7 @@ public:
return 0;
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 uiDiff) OVERRIDE
@@ -100,7 +100,7 @@ public:
}
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -93,7 +93,7 @@ public:
}
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -152,7 +152,7 @@ public:
}
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 uiDiff) OVERRIDE
@@ -123,7 +123,7 @@ public:
}
}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -578,9 +578,9 @@ public:
bPortalGuardianOrKeeperOrEliteSpawn = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
@@ -1342,7 +1342,7 @@ public:
DoCast(me, SPELL_ARCANE_SPHERE_PASSIVE, true);
}
void EnterCombat(Unit * /*who*/) OVERRIDE {}
void EnterCombat(Unit * /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -64,7 +64,7 @@ public:
struct npc_sinkhole_kill_creditAI : public ScriptedAI
{
npc_sinkhole_kill_creditAI(Creature* creature) : ScriptedAI(creature){}
npc_sinkhole_kill_creditAI(Creature* creature) : ScriptedAI(creature){ }
uint32 phaseTimer;
uint8 phase;
@@ -90,7 +90,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 diff) OVERRIDE
{
@@ -357,9 +357,9 @@ public:
{
npc_nerubar_victimAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* killer) OVERRIDE
@@ -557,8 +557,8 @@ public:
go_caribouGUID = 0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
@@ -672,7 +672,7 @@ public:
struct npc_lurgglbrAI : public npc_escortAI
{
npc_lurgglbrAI(Creature* creature) : npc_escortAI(creature){}
npc_lurgglbrAI(Creature* creature) : npc_escortAI(creature){ }
uint32 IntroTimer;
uint32 IntroPhase;
@@ -2235,9 +2235,9 @@ public:
m_uiTimer = 0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void AttackStart(Unit* /*who*/) OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 uiDiff) OVERRIDE
{
@@ -64,11 +64,11 @@ public:
creature->ApplySpellImmune(0, IMMUNITY_DAMAGE, SPELL_SCHOOL_MASK_MAGIC, true);
}
void Reset()OVERRIDE {}
void Reset()OVERRIDE { }
void EnterCombat(Unit* /*who*/)OVERRIDE {}
void EnterCombat(Unit* /*who*/)OVERRIDE { }
void AttackStart(Unit* /*who*/)OVERRIDE {}
void AttackStart(Unit* /*who*/)OVERRIDE { }
void MoveInLineOfSight(Unit* who) OVERRIDE
@@ -118,7 +118,7 @@ public:
return;
}
void UpdateAI(uint32 /*diff*/)OVERRIDE {}
void UpdateAI(uint32 /*diff*/)OVERRIDE { }
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
@@ -219,7 +219,7 @@ public:
{
npc_mrfloppyAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void EnterCombat(Unit* Who) OVERRIDE
{
@@ -239,9 +239,9 @@ public:
}
}
void EnterEvadeMode() OVERRIDE {}
void EnterEvadeMode() OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void UpdateAI(uint32 /*diff*/) OVERRIDE
@@ -508,87 +508,6 @@ public:
}
};
/*Lightning Sentry - if you kill it when you have your Minion with you, you will get a quest credit*/
enum Sentry
{
//Creature
NPC_LIGHTNING_SENTRY = 26407,
NPC_WAR_GOLEM = 27017,
// Quest
QUEST_OR_MAYBE_WE_DONT_A = 12138,
QUEST_OR_MAYBE_WE_DONT_H = 12198,
// Spell
SPELL_CHARGED_SENTRY_TOTEM = 52703,
SPELL_WAR_GOLEM_CHARGE_CREDIT = 47797,
};
enum SentryEvents
{
EVENT_SENTRY = 1
};
class npc_lightning_sentry : public CreatureScript
{
public:
npc_lightning_sentry() : CreatureScript("npc_lightning_sentry") { }
struct npc_lightning_sentryAI : public ScriptedAI
{
npc_lightning_sentryAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
_events.ScheduleEvent(EVENT_SENTRY, urand(10000, 12000));
}
void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
_events.Update(diff);
while (uint32 eventId = _events.ExecuteEvent())
{
switch (eventId)
{
case EVENT_SENTRY:
DoCast(SPELL_CHARGED_SENTRY_TOTEM);
_events.ScheduleEvent(EVENT_SENTRY, urand(10000, 12000));
break;
default:
break;
}
}
if (!UpdateVictim())
return;
DoMeleeAttackIfReady();
}
void JustDied(Unit* killer) OVERRIDE
{
if (killer->ToPlayer() && killer->ToPlayer()->GetTypeId() == TYPEID_PLAYER)
{
if (me->FindNearestCreature(NPC_WAR_GOLEM, 10.0f, true))
{
if (killer->ToPlayer()->GetQuestStatus(QUEST_OR_MAYBE_WE_DONT_A) == QUEST_STATUS_INCOMPLETE ||
killer->ToPlayer()->GetQuestStatus(QUEST_OR_MAYBE_WE_DONT_H) == QUEST_STATUS_INCOMPLETE)
DoCast(killer, SPELL_WAR_GOLEM_CHARGE_CREDIT);
}
}
}
private:
EventMap _events;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_lightning_sentryAI(creature);
}
};
/*Venture co. Straggler - when you cast Smoke Bomb, he will yell and run away*/
enum SmokeEmOut
{
@@ -838,7 +757,6 @@ void AddSC_grizzly_hills()
new npc_tallhorn_stag();
new npc_amberpine_woodsman();
new npc_wounded_skirmisher();
new npc_lightning_sentry();
new npc_venture_co_straggler();
new npc_lake_frog();
}
@@ -71,7 +71,7 @@ public:
struct npc_Apothecary_HanesAI : public npc_escortAI
{
npc_Apothecary_HanesAI(Creature* creature) : npc_escortAI(creature){}
npc_Apothecary_HanesAI(Creature* creature) : npc_escortAI(creature){ }
uint32 PotTimer;
void Reset() OVERRIDE
@@ -364,7 +364,7 @@ enum TournamentDummy
class npc_tournament_training_dummy : public CreatureScript
{
public:
npc_tournament_training_dummy(): CreatureScript("npc_tournament_training_dummy"){}
npc_tournament_training_dummy(): CreatureScript("npc_tournament_training_dummy"){ }
struct npc_tournament_training_dummyAI : ScriptedAI
{
@@ -483,7 +483,7 @@ class npc_tournament_training_dummy : public CreatureScript
me->SetControlled(true, UNIT_STATE_STUNNED);
}
void MoveInLineOfSight(Unit* /*who*/)OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/)OVERRIDE { }
};
@@ -616,9 +616,9 @@ public:
events.ScheduleEvent(EVENT_SPAWN, 3000);
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/) OVERRIDE { }
void JustSummoned(Creature* Summoned) OVERRIDE
@@ -1073,7 +1073,7 @@ public:
}
}
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void UpdateAI(uint32 /*diff*/) OVERRIDE { }
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
@@ -65,9 +65,9 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void Reset() OVERRIDE {}
void Reset() OVERRIDE { }
void JustDied(Unit* /*killer*/) OVERRIDE
{
@@ -325,9 +325,9 @@ public:
{
npc_icefangAI(Creature* creature) : npc_escortAI(creature) { }
void AttackStart(Unit* /*who*/) OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
void EnterEvadeMode() OVERRIDE {}
void AttackStart(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterEvadeMode() OVERRIDE { }
void PassengerBoarded(Unit* who, int8 /*seatId*/, bool apply) OVERRIDE
{
@@ -141,7 +141,7 @@ public:
DoCast(me, SPELL_KNEEL, true); // Little Hack for kneel - Thanks Illy :P
}
void MoveInLineOfSight(Unit* /*who*/)OVERRIDE {}
void MoveInLineOfSight(Unit* /*who*/)OVERRIDE { }
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) OVERRIDE
Loaded 100 of 484 files, more files were not shown because too many files have changed in this diff. Show more