Add support for quest 4921 (The scent of Lar'Korwi)
Patch by D_Skywalk Fixes issue 1671 --HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
DELETE FROM `areatrigger_scripts` WHERE `entry` BETWEEN 1726 AND 1740;
|
||||||
|
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
|
||||||
|
(1726, 'at_scent_larkorwi'),
|
||||||
|
(1727, 'at_scent_larkorwi'),
|
||||||
|
(1728, 'at_scent_larkorwi'),
|
||||||
|
(1729, 'at_scent_larkorwi'),
|
||||||
|
(1730, 'at_scent_larkorwi'),
|
||||||
|
(1731, 'at_scent_larkorwi'),
|
||||||
|
(1732, 'at_scent_larkorwi'),
|
||||||
|
(1733, 'at_scent_larkorwi'),
|
||||||
|
(1734, 'at_scent_larkorwi'),
|
||||||
|
(1735, 'at_scent_larkorwi'),
|
||||||
|
(1736, 'at_scent_larkorwi'),
|
||||||
|
(1737, 'at_scent_larkorwi'),
|
||||||
|
(1738, 'at_scent_larkorwi'),
|
||||||
|
(1739, 'at_scent_larkorwi'),
|
||||||
|
(1740, 'at_scent_larkorwi');
|
||||||
@@ -181,6 +181,27 @@ bool AreaTrigger_at_stormwright_shelf(Player* pPlayer, const AreaTriggerEntry* /
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*######
|
||||||
|
## at_scent_larkorwi
|
||||||
|
######*/
|
||||||
|
|
||||||
|
enum eScentLarkorwi
|
||||||
|
{
|
||||||
|
QUEST_SCENT_OF_LARKORWI = 4291,
|
||||||
|
NPC_LARKORWI_MATE = 9683
|
||||||
|
};
|
||||||
|
|
||||||
|
bool AreaTrigger_at_scent_larkorwi(Player* pPlayer, const AreaTriggerEntry* pAt)
|
||||||
|
{
|
||||||
|
if (!pPlayer->isDead() && pPlayer->GetQuestStatus(QUEST_SCENT_OF_LARKORWI) == QUEST_STATUS_INCOMPLETE)
|
||||||
|
{
|
||||||
|
if (!pPlayer->FindNearestCreature(NPC_LARKORWI_MATE,15))
|
||||||
|
pPlayer->SummonCreature(NPC_LARKORWI_MATE, pPlayer->GetPositionX()+5, pPlayer->GetPositionY(), pPlayer->GetPositionZ(), 3.3, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 100000);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/*#####
|
/*#####
|
||||||
## at_last_rites
|
## at_last_rites
|
||||||
#####*/
|
#####*/
|
||||||
@@ -252,6 +273,11 @@ void AddSC_areatrigger_scripts()
|
|||||||
newscript->pAreaTrigger = &AreaTrigger_at_stormwright_shelf;
|
newscript->pAreaTrigger = &AreaTrigger_at_stormwright_shelf;
|
||||||
newscript->RegisterSelf();
|
newscript->RegisterSelf();
|
||||||
|
|
||||||
|
newscript = new Script;
|
||||||
|
newscript->Name = "at_scent_larkorwi";
|
||||||
|
newscript->pAreaTrigger = &AreaTrigger_at_scent_larkorwi;
|
||||||
|
newscript->RegisterSelf();
|
||||||
|
|
||||||
newscript = new Script;
|
newscript = new Script;
|
||||||
newscript->Name = "at_last_rites";
|
newscript->Name = "at_last_rites";
|
||||||
newscript->pAreaTrigger = &AreaTrigger_at_last_rites;
|
newscript->pAreaTrigger = &AreaTrigger_at_last_rites;
|
||||||
|
|||||||
Reference in New Issue
Block a user