Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Why would anpc gets stuck in evade ?

[DiscordArchive] Why would anpc gets stuck in evade ?

[DiscordArchive] Why would anpc gets stuck in evade ?

Pages (6): 1 2 3 4 5 6 Next
rektbyfaith
Administrator
0
09-14-2025, 09:59 AM
#1
Archived author: jackpoz • Posted: 2025-09-14T09:59:00.236000+00:00
Original source

Why would anpc gets stuck in evade ?
rektbyfaith
09-14-2025, 09:59 AM #1

Archived author: jackpoz • Posted: 2025-09-14T09:59:00.236000+00:00
Original source

Why would anpc gets stuck in evade ?

rektbyfaith
Administrator
0
09-14-2025, 09:59 AM
#2
Archived author: jackpoz • Posted: 2025-09-14T09:59:30.920000+00:00
Original source

Not in this discord
rektbyfaith
09-14-2025, 09:59 AM #2

Archived author: jackpoz • Posted: 2025-09-14T09:59:30.920000+00:00
Original source

Not in this discord

rektbyfaith
Administrator
0
09-14-2025, 10:07 AM
#3
Archived author: Crane • Posted: 2025-09-14T10:07:59.105000+00:00
Original source

The NPC starts walking and the escort starts normally, then enters combat and stops.

This function ensures that during the evade, i.e. when returning to the last waypoint and then continuing to the destination, the NPC doesn't lose its auras and retains the form it was given at the start.

You force the NPC to retain its form and auras, so it stops and doesn't continue to walk past its waypoint.
rektbyfaith
09-14-2025, 10:07 AM #3

Archived author: Crane • Posted: 2025-09-14T10:07:59.105000+00:00
Original source

The NPC starts walking and the escort starts normally, then enters combat and stops.

This function ensures that during the evade, i.e. when returning to the last waypoint and then continuing to the destination, the NPC doesn't lose its auras and retains the form it was given at the start.

You force the NPC to retain its form and auras, so it stops and doesn't continue to walk past its waypoint.

rektbyfaith
Administrator
0
09-14-2025, 10:10 AM
#4
Archived author: Crane • Posted: 2025-09-14T10:10:12.058000+00:00
Original source

<@228947336800370689>This is also done here: https://github.com/TrinityCore/TrinityCo...e.cpp#L176 So I have to get him to continue his waypoint outside of the fight
rektbyfaith
09-14-2025, 10:10 AM #4

Archived author: Crane • Posted: 2025-09-14T10:10:12.058000+00:00
Original source

<@228947336800370689>This is also done here: https://github.com/TrinityCore/TrinityCo...e.cpp#L176 So I have to get him to continue his waypoint outside of the fight

rektbyfaith
Administrator
0
09-14-2025, 10:11 AM
#5
Archived author: Crane • Posted: 2025-09-14T10:11:40.038000+00:00
Original source

and I have already tried a lot of things, searched the whole TC core for similarities but found nothing at all
rektbyfaith
09-14-2025, 10:11 AM #5

Archived author: Crane • Posted: 2025-09-14T10:11:40.038000+00:00
Original source

and I have already tried a lot of things, searched the whole TC core for similarities but found nothing at all

rektbyfaith
Administrator
0
09-14-2025, 10:14 AM
#6
Archived author: jackpoz • Posted: 2025-09-14T10:14:03.825000+00:00
Original source

So he is losing auras that it shouldn't lose ?
rektbyfaith
09-14-2025, 10:14 AM #6

Archived author: jackpoz • Posted: 2025-09-14T10:14:03.825000+00:00
Original source

So he is losing auras that it shouldn't lose ?

rektbyfaith
Administrator
0
09-14-2025, 10:19 AM
#7
Archived author: Crane • Posted: 2025-09-14T10:19:03.211000+00:00
Original source

<@228947336800370689>Exactly, there's an escort quest that was created with SAI, but SmartAI can't handle this function. The SAI quest just doesn't work Blizzard-like because he loses everything when he evades.

This quest: https://github.com/TrinityCore/TrinityCo...-644217059

I'm rebuilding this in C++ because, for example, Azerothcore apparently has a special table that can handle evading, but TC can't. Therefore, as described there, he always loses his auras and form when he evades. It's like a reset, so to speak. But in C++, you can suppress this with exactly this function, and it works. The only problem is that the NPC stops moving as soon as he leaves combat.
rektbyfaith
09-14-2025, 10:19 AM #7

Archived author: Crane • Posted: 2025-09-14T10:19:03.211000+00:00
Original source

<@228947336800370689>Exactly, there's an escort quest that was created with SAI, but SmartAI can't handle this function. The SAI quest just doesn't work Blizzard-like because he loses everything when he evades.

This quest: https://github.com/TrinityCore/TrinityCo...-644217059

I'm rebuilding this in C++ because, for example, Azerothcore apparently has a special table that can handle evading, but TC can't. Therefore, as described there, he always loses his auras and form when he evades. It's like a reset, so to speak. But in C++, you can suppress this with exactly this function, and it works. The only problem is that the NPC stops moving as soon as he leaves combat.

rektbyfaith
Administrator
0
09-14-2025, 10:20 AM
#8
Archived author: Crane • Posted: 2025-09-14T10:20:37.635000+00:00
Original source

I recreated everything 1:1 in C++ and everything worked perfectly except for one thing.
rektbyfaith
09-14-2025, 10:20 AM #8

Archived author: Crane • Posted: 2025-09-14T10:20:37.635000+00:00
Original source

I recreated everything 1:1 in C++ and everything worked perfectly except for one thing.

rektbyfaith
Administrator
0
09-14-2025, 10:21 AM
#9
Archived author: jackpoz • Posted: 2025-09-14T10:21:37.601000+00:00
Original source

And couldn't it be just a flag for the shapeshift to not be removed ?
rektbyfaith
09-14-2025, 10:21 AM #9

Archived author: jackpoz • Posted: 2025-09-14T10:21:37.601000+00:00
Original source

And couldn't it be just a flag for the shapeshift to not be removed ?

rektbyfaith
Administrator
0
09-14-2025, 10:27 AM
#10
Archived author: Crane • Posted: 2025-09-14T10:27:27.489000+00:00
Original source

Flags don't help because every NPC that evades, i.e., runs to the last position, loses its aura and form.

I then looked at this: https://github.com/TrinityCore/TrinityCo...AI.cpp#L93

Unfortunately, he doesn't run back to his last position, or if that has anything to do with it at all.
rektbyfaith
09-14-2025, 10:27 AM #10

Archived author: Crane • Posted: 2025-09-14T10:27:27.489000+00:00
Original source

Flags don't help because every NPC that evades, i.e., runs to the last position, loses its aura and form.

I then looked at this: https://github.com/TrinityCore/TrinityCo...AI.cpp#L93

Unfortunately, he doesn't run back to his last position, or if that has anything to do with it at all.

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