[DiscordArchive] did you add a new script or edit an existing script?
[DiscordArchive] did you add a new script or edit an existing script?
Archived author: ModoX • Posted: 2024-03-03T11:00:43.961000+00:00
Original source
did you add a new script or edit an existing script?
Archived author: JeimonkAs • Posted: 2024-03-03T11:02:13.318000+00:00
Original source
i add new script for checking how work my areatrigger
```enum ITCQuestData{
QUEST_INTO_THE_CAULDON = 64866,
KILL_CREDIT_INTO_THE_CAULDON = 181597,
};
struct into_the_cauldron : AreaTriggerAI
{
into_the_cauldron(AreaTrigger* areatrigger) : AreaTriggerAI(areatrigger) {}
void OnUnitEnter(Unit* unit) override
{
Player* player = unit->ToPlayer();
//if (!player || player->GetQuestStatus(QUEST_INTO_THE_CAULDON) != QUEST_STATUS_INCOMPLETE)
// return;
//player->KilledMonsterCredit(KILL_CREDIT_INTO_THE_CAULDON);
player->AddItem(213274 , 1);
}
};
void AddSC_zone_the_forbidden_reach()
{
RegisterSpellScript(spell_dracthyr_login);
new scene_dracthyr_evoker_intro();
RegisterSpellScript(spell_dracthyr_summon_dervishian);
new quest_awaken_dracthyr();
RegisterAreaTriggerAI(at_dracthyr_stasis_feedback);
RegisterAreaTriggerAI(into_the_cauldron);
}
```
for first time this work and when i enter to areatrigger i got item , but now nothing going on
Archived author: ModoX • Posted: 2024-03-03T11:02:48.742000+00:00
Original source
did you assign the script in areatrigger_create_properties?
Archived author: ModoX • Posted: 2024-03-03T11:02:54.720000+00:00
Original source
(in db)
Archived author: JeimonkAs • Posted: 2024-03-03T11:04:22.857000+00:00
Original source
only on areatrigger , i do like zone_mardum
Archived author: ModoX • Posted: 2024-03-03T11:05:30.610000+00:00
Original source
so you set `ScriptName` in `areatrigger_create_properties` to `into_the_cauldron`?
Archived author: JeimonkAs • Posted: 2024-03-03T11:05:47.104000+00:00
Original source
now yea , w8 restart server for check
Archived author: JeimonkAs • Posted: 2024-03-03T11:07:54.541000+00:00
Original source
nothing change
Archived author: ModoX • Posted: 2024-03-03T11:08:16.269000+00:00
Original source
if you do `.debug areatrigger` is the areatrigger visible and triggers a message if you run into it?
Archived author: JeimonkAs • Posted: 2024-03-03T11:09:29.972000+00:00
Original source
the areatrigger worked once, then I thought that was it, everything was working again, changed it to completing the quest, then restarted the server and again at 0, then returned it again to issuing weapons, but now that doesn’t work either)
I'm such a stupid nightmare