Core/Scripts: Missing spawn after boss Varos and Urom deaths.Needed for a quest chain also.

This commit is contained in:
w1sht0l1v3
2011-12-13 13:58:03 +02:00
parent bd82427d65
commit f96d46260e
5 changed files with 47 additions and 2 deletions

View File

@@ -289,6 +289,7 @@ public:
void JustDied(Unit* /*killer*/)
{
_JustDied();
DoCast(me, SPELL_DEATH_SPELL, true); // we cast the spell as triggered or the summon effect does not occur
}
void LeaveCombat()

View File

@@ -144,8 +144,8 @@ public:
void JustDied(Unit* /*killer*/)
{
_JustDied();
Talk(SAY_DEATH);
DoCast(me, SPELL_DEATH_SPELL, true); // we cast the spell as triggered or the summon effect does not occur
}
private:
bool firstCoreEnergize;

View File

@@ -50,6 +50,12 @@ enum Drakes
NPC_ETERNOS = 27659
};
enum Says
{
SAY_VAROS = 0,
SAY_UROM = 1
};
class npc_oculus_drake : public CreatureScript
{
public:
@@ -174,7 +180,38 @@ public:
};
class npc_image_belgaristrasz : public CreatureScript
{
public:
npc_image_belgaristrasz() : CreatureScript("npc_image_belgaristrasz") { }
struct npc_image_belgaristraszAI : public ScriptedAI
{
npc_image_belgaristraszAI(Creature* creature) : ScriptedAI(creature) {}
void IsSummonedBy(Unit* summoner)
{
if (summoner->GetEntry() == NPC_VAROS)
{
Talk(SAY_VAROS);
me->DespawnOrUnsummon(60000);
}
if (summoner->GetEntry() == NPC_UROM)
{
Talk(SAY_UROM);
me->DespawnOrUnsummon(60000);
}
}
};
CreatureAI* GetAI(Creature* creature) const
{
return new npc_image_belgaristraszAI(creature);
}
};
void AddSC_oculus()
{
new npc_oculus_drake();
new npc_image_belgaristrasz();
}

View File

@@ -71,6 +71,7 @@ enum OculusWorldStates
enum OculusSpells
{
SPELL_CENTRIFUGE_SHIELD = 50053
SPELL_CENTRIFUGE_SHIELD = 50053,
SPELL_DEATH_SPELL = 50415
};
#endif