mangosR2/mangos — Issue #436: Quest 12698
Author: alexat
Created: 2011-10-16 17:21:16+00:00
State: open

This is hacky fix for quest 12698. More generic way will involve writing of custom quest objective handling.

---

diff --git a/src/bindings/ScriptDev2/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp b/src/bindings/ScriptDev2/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp
index 6ffadec..b9e07be 100644
--- a/src/bindings/ScriptDev2/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp
+++ b/src/bindings/ScriptDev2/scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp
@@ -1307,10 +1307,11 @@ CreatureAI* GetAI_npc_eye_of_acherus(Creature* pCreature)
######*/
enum scarletminer
{
+ NPC_SCARLET_GHOUL = 28845,
QUEST_GIFT_THAT_KEEPS_GIVING = 12698,
SPELL_GIFT_OF_THE_HARVESTER_MISSILE = 52481,
- SPELL_SUMMOM_GHOUL = 52490,
- SPELL_SUMMON_GHOST = 52505,
+ SPELL_SUMMOM_GHOUL = 52490,
+ SPELL_SUMMON_GHOST = 52505,
};

struct MANGOS_DLL_DECL mob_scarlet_minerAI : public ScriptedAI
@@ -1340,6 +1341,7 @@ struct MANGOS_DLL_DECL mob_scarlet_minerAI : public ScriptedAI
if (rand()%100 < 35) //35% chance to summon ghoul
{
pCaster->CastSpell(m_creature->GetPositionX(),m_creature->GetPositionY(),m_creature->GetPositionZ(),SPELL_SUMMOM_GHOUL, true);
+ ((Player*)pCaster)->KilledMonsterCredit(NPC_SCARLET_GHOUL); // hack quest credit
}
else
{