Skip to content
Permalink
Browse files

[c3128] Fix some small details on quest 836

(based on commit [3128] - 00d5fcf)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information...
xfurry committed Jul 19, 2015
1 parent 8137ded commit f22e7bb023e867111c908f60bc8cc557bb7c5d23
Showing with 19 additions and 2 deletions.
  1. +18 −1 scripts/eastern_kingdoms/hinterlands.cpp
  2. +1 −1 sd2_revision_nr.h
@@ -51,7 +51,13 @@ struct npc_00x09hlAI : public npc_escortAI
{
npc_00x09hlAI(Creature* pCreature) : npc_escortAI(pCreature) { Reset(); }

void Reset() override { }
uint8 m_uiSummonCount;

void Reset() override
{
if (!HasEscortState(STATE_ESCORT_ESCORTING))
m_uiSummonCount = 0;
}

void WaypointReached(uint32 uiPointId) override
{
@@ -76,24 +82,35 @@ struct npc_00x09hlAI : public npc_escortAI
switch (uiPointId)
{
case 27:
if (m_uiSummonCount >= 3)
break;

for (uint8 i = 0; i < 3; ++i)
{
float fX, fY, fZ;
m_creature->GetRandomPoint(147.927444f, -3851.513428f, 130.893f, 7.0f, fX, fY, fZ);

m_creature->SummonCreature(NPC_MARAUDING_OWL, fX, fY, fZ, 0.0f, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 25000);
++m_uiSummonCount;
}
break;
case 44:
if (m_uiSummonCount >= 6)
break;

for (uint8 i = 0; i < 3; ++i)
{
float fX, fY, fZ;
m_creature->GetRandomPoint(-141.151581f, -4291.213867f, 120.130f, 7.0f, fX, fY, fZ);

m_creature->SummonCreature(NPC_VILE_AMBUSHER, fX, fY, fZ, 0.0f, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 25000);
++m_uiSummonCount;
}
break;
}

// make sure we always have the right stand state
m_creature->SetStandState(UNIT_STAND_STATE_STAND);
}

void Aggro(Unit* pWho) override
@@ -1,4 +1,4 @@
#ifndef __SD2_REVISION_NR_H__
#define __SD2_REVISION_NR_H__
#define SD2_REVISION_NR "3127"
#define SD2_REVISION_NR "3128"
#endif // __SD2_REVISION_NR_H__

0 comments on commit f22e7bb

Please sign in to comment.
You can’t perform that action at this time.