Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] how check have trigger in game or not ?

[DiscordArchive] how check have trigger in game or not ?

[DiscordArchive] how check have trigger in game or not ?

rektbyfaith
Administrator
0
03-02-2024, 05:26 PM
#1
Archived author: JeimonkAs • Posted: 2024-03-02T17:26:51.696000+00:00
Original source

how check have trigger in game or not ?
rektbyfaith
03-02-2024, 05:26 PM #1

Archived author: JeimonkAs • Posted: 2024-03-02T17:26:51.696000+00:00
Original source

how check have trigger in game or not ?

rektbyfaith
Administrator
0
03-02-2024, 05:33 PM
#2
Archived author: Naddley • Posted: 2024-03-02T17:33:20.950000+00:00
Original source

you can see the position of the AreaTrigger with .debug Areatrigger
rektbyfaith
03-02-2024, 05:33 PM #2

Archived author: Naddley • Posted: 2024-03-02T17:33:20.950000+00:00
Original source

you can see the position of the AreaTrigger with .debug Areatrigger

rektbyfaith
Administrator
0
03-02-2024, 05:36 PM
#3
Archived author: JeimonkAs • Posted: 2024-03-02T17:36:53.092000+00:00
Original source

ty alot )
rektbyfaith
03-02-2024, 05:36 PM #3

Archived author: JeimonkAs • Posted: 2024-03-02T17:36:53.092000+00:00
Original source

ty alot )

rektbyfaith
Administrator
0
03-02-2024, 05:52 PM
#4
Archived author: JeimonkAs • Posted: 2024-03-02T17:52:58.174000+00:00
Original source

```
class into_the_cauldron : public AreaTriggerAI
{
public:
into_the_cauldron(AreaTrigger* areaTrigger) : AreaTriggerAI(areaTrigger) { }

void OnUnitEnter(Unit* unit) override
{
Player* player = unit->ToPlayer();

if (player->GetQuestStatus(64866) == QUEST_STATUS_INCOMPLETE)
{
player->KilledMonsterCredit(181597);

}

}
};

```
can you look at this , what there wrong ?
rektbyfaith
03-02-2024, 05:52 PM #4

Archived author: JeimonkAs • Posted: 2024-03-02T17:52:58.174000+00:00
Original source

```
class into_the_cauldron : public AreaTriggerAI
{
public:
into_the_cauldron(AreaTrigger* areaTrigger) : AreaTriggerAI(areaTrigger) { }

void OnUnitEnter(Unit* unit) override
{
Player* player = unit->ToPlayer();

if (player->GetQuestStatus(64866) == QUEST_STATUS_INCOMPLETE)
{
player->KilledMonsterCredit(181597);

}

}
};

```
can you look at this , what there wrong ?

rektbyfaith
Administrator
0
03-02-2024, 05:56 PM
#5
Archived author: Naddley • Posted: 2024-03-02T17:56:32.329000+00:00
Original source

we have some examples in scripts like zone_mardum. Feel free to try to look at them first
rektbyfaith
03-02-2024, 05:56 PM #5

Archived author: Naddley • Posted: 2024-03-02T17:56:32.329000+00:00
Original source

we have some examples in scripts like zone_mardum. Feel free to try to look at them first

rektbyfaith
Administrator
0
03-02-2024, 05:58 PM
#6
Archived author: JeimonkAs • Posted: 2024-03-02T17:58:00.557000+00:00
Original source

good ty
rektbyfaith
03-02-2024, 05:58 PM #6

Archived author: JeimonkAs • Posted: 2024-03-02T17:58:00.557000+00:00
Original source

good ty

Recently Browsing
 
Recently Browsing