From de8d5a9236ab328d69b37910f10b8c64a25f046e Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Fri, 14 Jan 2011 00:59:52 +0100 Subject: Scripts/Borean Tundra: Add Support for areatrigger conditions for Quest: Breaking Through (11898). Thanks to Svannon for original code and joint brainstorming session. Closes issue #194 --- src/server/scripts/World/areatrigger_scripts.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/scripts/World/areatrigger_scripts.cpp b/src/server/scripts/World/areatrigger_scripts.cpp index 8cf17fcff42..456f6bb3753 100644 --- a/src/server/scripts/World/areatrigger_scripts.cpp +++ b/src/server/scripts/World/areatrigger_scripts.cpp @@ -280,7 +280,8 @@ class AreaTrigger_at_scent_larkorwi : public AreaTriggerScript enum eAtLastRites { - QUEST_LAST_RITES = 12019 + QUEST_LAST_RITES = 12019, + QUEST_BREAKING_THROUGH = 11898, }; class AreaTrigger_at_last_rites : public AreaTriggerScript @@ -294,7 +295,10 @@ class AreaTrigger_at_last_rites : public AreaTriggerScript bool OnTrigger(Player* player, AreaTriggerEntry const* trigger) { - if (player->GetQuestStatus(QUEST_LAST_RITES) != QUEST_STATUS_INCOMPLETE) + if (!(player->GetQuestStatus(QUEST_LAST_RITES) == QUEST_STATUS_INCOMPLETE || + player->GetQuestStatus(QUEST_LAST_RITES) == QUEST_STATUS_COMPLETE || + player->GetQuestStatus(QUEST_BREAKING_THROUGH) == QUEST_STATUS_INCOMPLETE || + player->GetQuestStatus(QUEST_BREAKING_THROUGH) == QUEST_STATUS_COMPLETE)) return false; WorldLocation pPosition; -- cgit v1.2.3