Skip to content

Commit

Permalink
Areatrigger for quest 12575
Browse files Browse the repository at this point in the history
corrected
  • Loading branch information
Grz3s authored and killerwife committed Sep 24, 2023
1 parent eaa1c1d commit 2cfa1ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/game/AI/ScriptDevAI/scripts/world/areatrigger_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,22 @@ enum
{
QUEST_MISTWHISPER_TREASURE = 12575,
NPC_TARTEK = 28105,
NPC_ZEPTEK = 28399,
};

// 5030
bool AreaTrigger_at_spearborn_encampment(Player* pPlayer, AreaTriggerEntry const* pAt)
bool AreaTrigger_at_spearborn_encampment(Player* pPlayer, AreaTriggerEntry const* /*pAt*/)
{
if (pPlayer->GetQuestStatus(QUEST_MISTWHISPER_TREASURE) == QUEST_STATUS_INCOMPLETE &&
pPlayer->GetReqKillOrCastCurrentCount(QUEST_MISTWHISPER_TREASURE, NPC_TARTEK) == 0)
{
// can only spawn one at a time, it's not a too good solution
// can only spawn one at a time
if (GetClosestCreatureWithEntry(pPlayer, NPC_TARTEK, 50.0f))
return false;
if (GetClosestCreatureWithEntry(pPlayer, NPC_ZEPTEK, 50.0f))
return false;

pPlayer->SummonCreature(NPC_TARTEK, pAt->x, pAt->y, pAt->z, 0.0f, TEMPSPAWN_TIMED_OOC_OR_DEAD_DESPAWN, MINUTE * IN_MILLISECONDS);
pPlayer->SummonCreature(NPC_ZEPTEK, 6710.399, 5162.64, -20.66248, 4.753422, TEMPSPAWN_TIMED_OOC_OR_DEAD_DESPAWN, MINUTE * IN_MILLISECONDS);
}

return false;
Expand Down

0 comments on commit 2cfa1ae

Please sign in to comment.