Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] as example you mean this

[DiscordArchive] as example you mean this

[DiscordArchive] as example you mean this

rektbyfaith
Administrator
0
07-13-2025, 10:56 AM
#1
Archived author: Crane • Posted: 2025-07-13T10:56:53.302000+00:00
Original source

as example you mean this

```void OnUnitDeath(Unit* unit) override
{
if (!playerDied && unit->IsPlayer() && IsEncounterInProgress())
{
playerDied = true;
SaveToDB();
}

if (Creature* creature = unit->ToCreature())
if (creature->GetEntry() == NPC_BIGGLESWORTH)
{
// Loads Kel'Thuzad's grid. We need this as he must be active in order for his texts to work.
instance->LoadGrid(3749.67f, -5114.06f);
if (Creature* kelthuzad = instance->GetCreature(KelthuzadGUID))
kelthuzad->AI()->Talk(SAY_KELTHUZAD_CAT_DIED);
}
}
```
if you kill the cat ?
rektbyfaith
07-13-2025, 10:56 AM #1

Archived author: Crane • Posted: 2025-07-13T10:56:53.302000+00:00
Original source

as example you mean this

```void OnUnitDeath(Unit* unit) override
{
if (!playerDied && unit->IsPlayer() && IsEncounterInProgress())
{
playerDied = true;
SaveToDB();
}

if (Creature* creature = unit->ToCreature())
if (creature->GetEntry() == NPC_BIGGLESWORTH)
{
// Loads Kel'Thuzad's grid. We need this as he must be active in order for his texts to work.
instance->LoadGrid(3749.67f, -5114.06f);
if (Creature* kelthuzad = instance->GetCreature(KelthuzadGUID))
kelthuzad->AI()->Talk(SAY_KELTHUZAD_CAT_DIED);
}
}
```
if you kill the cat ?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)