[DiscordArchive] ```class into_the_cauldron : AreaTriggerAI
[DiscordArchive] ```class into_the_cauldron : AreaTriggerAI
Archived author: JeimonkAs • Posted: 2024-03-01T19:37:17.893000+00:00
Original source
```class into_the_cauldron : AreaTriggerAI
{
public:
into_the_cauldron(AreaTrigger* areaTrigger) : AreaTriggerAI(areaTrigger) {}
void OnPlayerEnter(Player* player, AreaTriggerEntry const*) override
{
//do anything
}
};
``` something like this ?

Archived author: JeimonkAs • Posted: 2024-03-01T19:39:14.328000+00:00
Original source
```if (player->GetQuestStatus(64866) == QUEST_STATUS_INCOMPLETE)``` check quest and check areatrigger zone right?
sry for my bullshit im trying learn something )
Archived author: Telegrill • Posted: 2024-03-01T19:51:44.126000+00:00
Original source
there's no need to check zone because the areatrigger will be spawned at the place you need it
Archived author: Telegrill • Posted: 2024-03-01T19:51:49.474000+00:00
Original source
by checking questStatus is more than enough
Archived author: JeimonkAs • Posted: 2024-03-01T19:57:53.439000+00:00
Original source
```if (player->GetQuestStatus(64866) == QUEST_STATUS_INCOMPLETE)
player->SetQuestObjectiveData(, 1);```
Like this ?
Archived author: Tea • Posted: 2024-03-01T19:58:56.641000+00:00
Original source
do not touch SetQuestObjectiveData function
Archived author: JeimonkAs • Posted: 2024-03-01T20:00:05.809000+00:00
Original source
what better use?