Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] https://stackoverflow.com/questions/65512695/how-to-immobilize-a-mob-in-a-script

[DiscordArchive] https://stackoverflow.com/questions/65512695/how-to-immobilize-a-mob-in-a-script

[DiscordArchive] https://stackoverflow.com/questions/65512695/how-to-immobilize-a-mob-in-a-script

rektbyfaith
Administrator
0
12-30-2020, 07:43 PM
#1
Archived author: Honey • Posted: 2020-12-30T19:43:10.276000+00:00
Original source

https://stackoverflow.com/questions/6551...n-a-script
Im back at the gruul boss script. To fix it fully, i would need to immobilize the boss in an already existing event and remove that flag in another.
however, i cant find a way to prevent gruul from chasing his target.
i tried comparing it to permanently snared bosses like ragnaros and c'thun without finding a flag which fixes it.
anyone with a hint how to code it?
rektbyfaith
12-30-2020, 07:43 PM #1

Archived author: Honey • Posted: 2020-12-30T19:43:10.276000+00:00
Original source

https://stackoverflow.com/questions/6551...n-a-script
Im back at the gruul boss script. To fix it fully, i would need to immobilize the boss in an already existing event and remove that flag in another.
however, i cant find a way to prevent gruul from chasing his target.
i tried comparing it to permanently snared bosses like ragnaros and c'thun without finding a flag which fixes it.
anyone with a hint how to code it?

rektbyfaith
Administrator
0
12-30-2020, 07:46 PM
#2
Archived author: Kitzunu • Posted: 2020-12-30T19:46:59.953000+00:00
Original source

I believe unit_flags UNIT_FLAG_PACIFIED could do it.
rektbyfaith
12-30-2020, 07:46 PM #2

Archived author: Kitzunu • Posted: 2020-12-30T19:46:59.953000+00:00
Original source

I believe unit_flags UNIT_FLAG_PACIFIED could do it.

rektbyfaith
Administrator
0
12-30-2020, 08:09 PM
#3
Archived author: Honey • Posted: 2020-12-30T20:09:21.875000+00:00
Original source

hmm yeah, the pacified flag is one required part. i managed to code and compile it. however, it doesnt prevent the movement itself.
rektbyfaith
12-30-2020, 08:09 PM #3

Archived author: Honey • Posted: 2020-12-30T20:09:21.875000+00:00
Original source

hmm yeah, the pacified flag is one required part. i managed to code and compile it. however, it doesnt prevent the movement itself.

rektbyfaith
Administrator
0
12-30-2020, 08:11 PM
#4
Archived author: Honey • Posted: 2020-12-30T20:11:25.650000+00:00
Original source

ive found this in another bossmodule:
``me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);``
however, that flag is not in the wiki. im gonna test what it does.
rektbyfaith
12-30-2020, 08:11 PM #4

Archived author: Honey • Posted: 2020-12-30T20:11:25.650000+00:00
Original source

ive found this in another bossmodule:
``me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);``
however, that flag is not in the wiki. im gonna test what it does.

rektbyfaith
Administrator
0
12-30-2020, 08:18 PM
#5
Archived author: Honey • Posted: 2020-12-30T20:18:17.846000+00:00
Original source

it doesnt do anything i can recognize. and it does sure not immobilize
rektbyfaith
12-30-2020, 08:18 PM #5

Archived author: Honey • Posted: 2020-12-30T20:18:17.846000+00:00
Original source

it doesnt do anything i can recognize. and it does sure not immobilize

rektbyfaith
Administrator
0
12-30-2020, 08:24 PM
#6
Archived author: Kitzunu • Posted: 2020-12-30T20:24:02.484000+00:00
Original source

Test UNIT_FLAG_STUNNED
rektbyfaith
12-30-2020, 08:24 PM #6

Archived author: Kitzunu • Posted: 2020-12-30T20:24:02.484000+00:00
Original source

Test UNIT_FLAG_STUNNED

rektbyfaith
Administrator
0
12-30-2020, 09:07 PM
#7
Archived author: FALL1N • Posted: 2020-12-30T21:07:52.895000+00:00
Original source

stunned will imobilize it, I used it for Mimiron
rektbyfaith
12-30-2020, 09:07 PM #7

Archived author: FALL1N • Posted: 2020-12-30T21:07:52.895000+00:00
Original source

stunned will imobilize it, I used it for Mimiron

rektbyfaith
Administrator
0
12-30-2020, 09:09 PM
#8
Archived author: Honey • Posted: 2020-12-30T21:09:38.693000+00:00
Original source

~~yeah, this prevents the movement.~~ but it also prevents the finishing of the cast it does while being stunned.
im fiddeling with event rescheduling now to make it cast its spells and still not move being stunned
rektbyfaith
12-30-2020, 09:09 PM #8

Archived author: Honey • Posted: 2020-12-30T21:09:38.693000+00:00
Original source

~~yeah, this prevents the movement.~~ but it also prevents the finishing of the cast it does while being stunned.
im fiddeling with event rescheduling now to make it cast its spells and still not move being stunned

rektbyfaith
Administrator
0
12-30-2020, 10:07 PM
#9
Archived author: Honey • Posted: 2020-12-30T22:07:40.866000+00:00
Original source

UNIT_FLAG_STUNNED does not prevent Gruul from moving either
rektbyfaith
12-30-2020, 10:07 PM #9

Archived author: Honey • Posted: 2020-12-30T22:07:40.866000+00:00
Original source

UNIT_FLAG_STUNNED does not prevent Gruul from moving either

rektbyfaith
Administrator
0
12-30-2020, 10:09 PM
#10
Archived author: Honey • Posted: 2020-12-30T22:09:12.085000+00:00
Original source

the PACIFIED flag applies and prevents auto attacks. the stunned flag does not do anything i can notice regarding movement. it just prevents the cast of "Ground Slam" being finished
rektbyfaith
12-30-2020, 10:09 PM #10

Archived author: Honey • Posted: 2020-12-30T22:09:12.085000+00:00
Original source

the PACIFIED flag applies and prevents auto attacks. the stunned flag does not do anything i can notice regarding movement. it just prevents the cast of "Ground Slam" being finished

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