Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] alternatively, does anyone have a good example of a modern, correctly-written BossAI and/or Creature

[DiscordArchive] alternatively, does anyone have a good example of a modern, correctly-written BossAI and/or Creature

[DiscordArchive] alternatively, does anyone have a good example of a modern, correctly-written BossAI and/or Creature

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
10-24-2023, 03:29 PM
#1
Archived author: KJack • Posted: 2023-10-24T15:29:52.839000+00:00
Original source

alternatively, does anyone have a good example of a modern, correctly-written BossAI and/or CreatureAI that I can mimic?
rektbyfaith
10-24-2023, 03:29 PM #1

Archived author: KJack • Posted: 2023-10-24T15:29:52.839000+00:00
Original source

alternatively, does anyone have a good example of a modern, correctly-written BossAI and/or CreatureAI that I can mimic?

rektbyfaith
Administrator
0
10-24-2023, 03:42 PM
#2
Archived author: Nyeriah • Posted: 2023-10-24T15:42:07.684000+00:00
Original source

newer boss scripts use taskscheduler
rektbyfaith
10-24-2023, 03:42 PM #2

Archived author: Nyeriah • Posted: 2023-10-24T15:42:07.684000+00:00
Original source

newer boss scripts use taskscheduler

rektbyfaith
Administrator
0
10-24-2023, 03:42 PM
#3
Archived author: Nyeriah • Posted: 2023-10-24T15:42:35.284000+00:00
Original source

you can use either of them, it doesnt matter
rektbyfaith
10-24-2023, 03:42 PM #3

Archived author: Nyeriah • Posted: 2023-10-24T15:42:35.284000+00:00
Original source

you can use either of them, it doesnt matter

rektbyfaith
Administrator
0
10-24-2023, 03:43 PM
#4
Archived author: Nyeriah • Posted: 2023-10-24T15:43:18.024000+00:00
Original source

karazhan scripts should be good to use as examples
rektbyfaith
10-24-2023, 03:43 PM #4

Archived author: Nyeriah • Posted: 2023-10-24T15:43:18.024000+00:00
Original source

karazhan scripts should be good to use as examples

rektbyfaith
Administrator
0
10-24-2023, 03:45 PM
#5
Archived author: KJack • Posted: 2023-10-24T15:45:13.524000+00:00
Original source

okay, great. I was using Moroes and Shade as templates, just want to make sure I'm doing it right the first time.
rektbyfaith
10-24-2023, 03:45 PM #5

Archived author: KJack • Posted: 2023-10-24T15:45:13.524000+00:00
Original source

okay, great. I was using Moroes and Shade as templates, just want to make sure I'm doing it right the first time.

rektbyfaith
Administrator
0
10-24-2023, 03:45 PM
#6
Archived author: KJack • Posted: 2023-10-24T15:45:32.743000+00:00
Original source

and that the EventMap with the events in UpdateAI() pattern is still considered modern.
rektbyfaith
10-24-2023, 03:45 PM #6

Archived author: KJack • Posted: 2023-10-24T15:45:32.743000+00:00
Original source

and that the EventMap with the events in UpdateAI() pattern is still considered modern.

rektbyfaith
Administrator
0
10-24-2023, 03:48 PM
#7
Archived author: KJack • Posted: 2023-10-24T15:48:24.434000+00:00
Original source

sorry for all the questions, drinking from the fire hose on AI development now.

what is the difference between this pattern:
```c++
struct boss_moroes : public BossAI
{
boss_moroes(Creature* creature) : BossAI(creature, DATA_MOROES)
<...>
```
and this pattern
```c++
class npc_image_of_medivh : public CreatureScript
{
public:
npc_image_of_medivh() : CreatureScript("npc_image_of_medivh") { }

CreatureAI* GetAI(Creature* creature) const override
{
return GetKarazhanAI<npc_image_of_medivhAI>(creature);
}

struct npc_image_of_medivhAI : public ScriptedAI
{
npc_image_of_medivhAI(Creature* creature) : ScriptedAI(creature)
{
<...>
```
?
rektbyfaith
10-24-2023, 03:48 PM #7

Archived author: KJack • Posted: 2023-10-24T15:48:24.434000+00:00
Original source

sorry for all the questions, drinking from the fire hose on AI development now.

what is the difference between this pattern:
```c++
struct boss_moroes : public BossAI
{
boss_moroes(Creature* creature) : BossAI(creature, DATA_MOROES)
<...>
```
and this pattern
```c++
class npc_image_of_medivh : public CreatureScript
{
public:
npc_image_of_medivh() : CreatureScript("npc_image_of_medivh") { }

CreatureAI* GetAI(Creature* creature) const override
{
return GetKarazhanAI<npc_image_of_medivhAI>(creature);
}

struct npc_image_of_medivhAI : public ScriptedAI
{
npc_image_of_medivhAI(Creature* creature) : ScriptedAI(creature)
{
<...>
```
?

rektbyfaith
Administrator
0
10-24-2023, 03:50 PM
#8
Archived author: KJack • Posted: 2023-10-24T15:50:32.404000+00:00
Original source

I see that they're added differently (`RegisterKarazhanCreatureAI(boss_moroes);` vs `new npc_image_of_medivh();`) but I don't understand what differentiates the two approaches.
rektbyfaith
10-24-2023, 03:50 PM #8

Archived author: KJack • Posted: 2023-10-24T15:50:32.404000+00:00
Original source

I see that they're added differently (`RegisterKarazhanCreatureAI(boss_moroes);` vs `new npc_image_of_medivh();`) but I don't understand what differentiates the two approaches.

rektbyfaith
Administrator
0
10-24-2023, 03:50 PM
#9
Archived author: KJack • Posted: 2023-10-24T15:50:52.997000+00:00
Original source

let me know if i should take this to a different channel.
rektbyfaith
10-24-2023, 03:50 PM #9

Archived author: KJack • Posted: 2023-10-24T15:50:52.997000+00:00
Original source

let me know if i should take this to a different channel.

rektbyfaith
Administrator
0
10-24-2023, 04:10 PM
#10
Archived author: Nyeriah • Posted: 2023-10-24T16:10:39.658000+00:00
Original source

Well they’re scripts of two different natures
rektbyfaith
10-24-2023, 04:10 PM #10

Archived author: Nyeriah • Posted: 2023-10-24T16:10:39.658000+00:00
Original source

Well they’re scripts of two different natures

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