Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Nice script iThorgrim, it's always good to share!

[DiscordArchive] Nice script iThorgrim, it's always good to share!

[DiscordArchive] Nice script iThorgrim, it's always good to share!

rektbyfaith
Administrator
0
03-10-2022, 03:12 PM
#1
Archived author: Honey • Posted: 2022-03-10T15:12:22.665000+00:00
Original source

Nice script iThorgrim, it's always good to share!


I'm looking for a way to reset a creatures threat with another creature to 0. But all i can find regarding is
```
Unit::AddThreat Adds threat to the Unit from the victim.
Unit::ClearThreatList Clears the Unit's threat list.
```
There's no method to get the current threat towards a certain target or reset the threat only for one target. Am i missing something?
Do we have such a method in cpp which we could expose?
rektbyfaith
03-10-2022, 03:12 PM #1

Archived author: Honey • Posted: 2022-03-10T15:12:22.665000+00:00
Original source

Nice script iThorgrim, it's always good to share!


I'm looking for a way to reset a creatures threat with another creature to 0. But all i can find regarding is
```
Unit::AddThreat Adds threat to the Unit from the victim.
Unit::ClearThreatList Clears the Unit's threat list.
```
There's no method to get the current threat towards a certain target or reset the threat only for one target. Am i missing something?
Do we have such a method in cpp which we could expose?

rektbyfaith
Administrator
0
03-10-2022, 03:50 PM
#2
Archived author: 郑佩茹 • Posted: 2022-03-10T15:50:33.269000+00:00
Original source

Yes, the CPP has a RemoveFromThreatListOpcode that could be send.
rektbyfaith
03-10-2022, 03:50 PM #2

Archived author: 郑佩茹 • Posted: 2022-03-10T15:50:33.269000+00:00
Original source

Yes, the CPP has a RemoveFromThreatListOpcode that could be send.

rektbyfaith
Administrator
0
03-10-2022, 04:14 PM
#3
Archived author: Honey • Posted: 2022-03-10T16:14:40.486000+00:00
Original source

Thank you, will have a look
rektbyfaith
03-10-2022, 04:14 PM #3

Archived author: Honey • Posted: 2022-03-10T16:14:40.486000+00:00
Original source

Thank you, will have a look

rektbyfaith
Administrator
0
03-11-2022, 03:33 AM
#4
Archived author: Nyeriah • Posted: 2022-03-11T03:33:26.579000+00:00
Original source

ModifyThreat(target, -100);
rektbyfaith
03-11-2022, 03:33 AM #4

Archived author: Nyeriah • Posted: 2022-03-11T03:33:26.579000+00:00
Original source

ModifyThreat(target, -100);

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