Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] did you add a new script or edit an existing script?

[DiscordArchive] did you add a new script or edit an existing script?

[DiscordArchive] did you add a new script or edit an existing script?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
03-03-2024, 11:00 AM
#1
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?
rektbyfaith
03-03-2024, 11:00 AM #1

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?

rektbyfaith
Administrator
0
03-03-2024, 11:02 AM
#2
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
rektbyfaith
03-03-2024, 11:02 AM #2

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

rektbyfaith
Administrator
0
03-03-2024, 11:02 AM
#3
Archived author: ModoX • Posted: 2024-03-03T11:02:48.742000+00:00
Original source

did you assign the script in areatrigger_create_properties?
rektbyfaith
03-03-2024, 11:02 AM #3

Archived author: ModoX • Posted: 2024-03-03T11:02:48.742000+00:00
Original source

did you assign the script in areatrigger_create_properties?

rektbyfaith
Administrator
0
03-03-2024, 11:02 AM
#4
Archived author: ModoX • Posted: 2024-03-03T11:02:54.720000+00:00
Original source

(in db)
rektbyfaith
03-03-2024, 11:02 AM #4

Archived author: ModoX • Posted: 2024-03-03T11:02:54.720000+00:00
Original source

(in db)

rektbyfaith
Administrator
0
03-03-2024, 11:04 AM
#5
Archived author: JeimonkAs • Posted: 2024-03-03T11:04:22.857000+00:00
Original source

only on areatrigger , i do like zone_mardum
rektbyfaith
03-03-2024, 11:04 AM #5

Archived author: JeimonkAs • Posted: 2024-03-03T11:04:22.857000+00:00
Original source

only on areatrigger , i do like zone_mardum

rektbyfaith
Administrator
0
03-03-2024, 11:05 AM
#6
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`?
rektbyfaith
03-03-2024, 11:05 AM #6

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`?

rektbyfaith
Administrator
0
03-03-2024, 11:05 AM
#7
Archived author: JeimonkAs • Posted: 2024-03-03T11:05:47.104000+00:00
Original source

now yea , w8 restart server for check
rektbyfaith
03-03-2024, 11:05 AM #7

Archived author: JeimonkAs • Posted: 2024-03-03T11:05:47.104000+00:00
Original source

now yea , w8 restart server for check

rektbyfaith
Administrator
0
03-03-2024, 11:07 AM
#8
Archived author: JeimonkAs • Posted: 2024-03-03T11:07:54.541000+00:00
Original source

nothing change
rektbyfaith
03-03-2024, 11:07 AM #8

Archived author: JeimonkAs • Posted: 2024-03-03T11:07:54.541000+00:00
Original source

nothing change

rektbyfaith
Administrator
0
03-03-2024, 11:08 AM
#9
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?
rektbyfaith
03-03-2024, 11:08 AM #9

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?

rektbyfaith
Administrator
0
03-03-2024, 11:09 AM
#10
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
rektbyfaith
03-03-2024, 11:09 AM #10

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

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)