Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] But the boss can assign a custom AI script to the creatures he spawns?

[DiscordArchive] But the boss can assign a custom AI script to the creatures he spawns?

[DiscordArchive] But the boss can assign a custom AI script to the creatures he spawns?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
10-22-2023, 05:32 PM
#11
Archived author: Kitzunu • Posted: 2023-10-22T17:32:56.392000+00:00
Original source

Correct
rektbyfaith
10-22-2023, 05:32 PM #11

Archived author: Kitzunu • Posted: 2023-10-22T17:32:56.392000+00:00
Original source

Correct

rektbyfaith
Administrator
0
10-22-2023, 07:34 PM
#12
Archived author: KJack • Posted: 2023-10-22T19:34:01.333000+00:00
Original source

Is this the right way to override the AI setting of "SmartAI" in the DB?

```c++
// only if the bat rider was successfully created
if (Creature* batRider = me->SummonCreature(NPC_BAT_RIDER, SpawnBatRider, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000))
{
// this creature (14750) is the same creature as the trash ones on the ground
// we need to override the DB's setting of SmartAI
batRider->SetAI(new npc_batrider(batRider));
batRider->AI()->DoZoneInCombat();
}
```
rektbyfaith
10-22-2023, 07:34 PM #12

Archived author: KJack • Posted: 2023-10-22T19:34:01.333000+00:00
Original source

Is this the right way to override the AI setting of "SmartAI" in the DB?

```c++
// only if the bat rider was successfully created
if (Creature* batRider = me->SummonCreature(NPC_BAT_RIDER, SpawnBatRider, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000))
{
// this creature (14750) is the same creature as the trash ones on the ground
// we need to override the DB's setting of SmartAI
batRider->SetAI(new npc_batrider(batRider));
batRider->AI()->DoZoneInCombat();
}
```

rektbyfaith
Administrator
0
10-22-2023, 07:34 PM
#13
Archived author: KJack • Posted: 2023-10-22T19:34:49.185000+00:00
Original source

where `npc_batrider` is this thing:

```c++
// Gurubashi Bat Rider (14750) that drops bombs
struct npc_batrider : public ScriptedAI
{
npc_batrider(Creature* creature) : ScriptedAI(creature)
<...>
```
rektbyfaith
10-22-2023, 07:34 PM #13

Archived author: KJack • Posted: 2023-10-22T19:34:49.185000+00:00
Original source

where `npc_batrider` is this thing:

```c++
// Gurubashi Bat Rider (14750) that drops bombs
struct npc_batrider : public ScriptedAI
{
npc_batrider(Creature* creature) : ScriptedAI(creature)
<...>
```

rektbyfaith
Administrator
0
10-22-2023, 07:56 PM
#14
Archived author: KJack • Posted: 2023-10-22T19:56:55.419000+00:00
Original source

nada
[Image: image.png?ex=690c54c7&is=690b0347&hm=beb...57bc0319d&]
rektbyfaith
10-22-2023, 07:56 PM #14

Archived author: KJack • Posted: 2023-10-22T19:56:55.419000+00:00
Original source

nada
[Image: image.png?ex=690c54c7&is=690b0347&hm=beb...57bc0319d&]

rektbyfaith
Administrator
0
10-22-2023, 07:57 PM
#15
Archived author: KJack • Posted: 2023-10-22T19:57:05.612000+00:00
Original source

and they go straight for my player instead of doing what they're told
rektbyfaith
10-22-2023, 07:57 PM #15

Archived author: KJack • Posted: 2023-10-22T19:57:05.612000+00:00
Original source

and they go straight for my player instead of doing what they're told

rektbyfaith
Administrator
0
10-22-2023, 08:00 PM
#16
Archived author: KJack • Posted: 2023-10-22T20:00:19.831000+00:00
Original source

although they're not doing their SAI actions either. they're just following me without attacking.
rektbyfaith
10-22-2023, 08:00 PM #16

Archived author: KJack • Posted: 2023-10-22T20:00:19.831000+00:00
Original source

although they're not doing their SAI actions either. they're just following me without attacking.

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