Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Hello Guys. I have created custom NPC (BOSS) and I want to somehow catch in code all the players who

[DiscordArchive] Hello Guys. I have created custom NPC (BOSS) and I want to somehow catch in code all the players who

[DiscordArchive] Hello Guys. I have created custom NPC (BOSS) and I want to somehow catch in code all the players who

rektbyfaith
Administrator
0
03-24-2025, 10:23 AM
#1
Archived author: Shako • Posted: 2025-03-24T10:23:22.283000+00:00
Original source

Hello Guys. I have created custom NPC (BOSS) and I want to somehow catch in code all the players who is in combat with this npc to give them all loot then. doesn't matter who tagged first. so I want to give loot to everyone who attacks boss. I have tried to catch all players with ThreadManager but it didn't worked. any idea how to do it?
rektbyfaith
03-24-2025, 10:23 AM #1

Archived author: Shako • Posted: 2025-03-24T10:23:22.283000+00:00
Original source

Hello Guys. I have created custom NPC (BOSS) and I want to somehow catch in code all the players who is in combat with this npc to give them all loot then. doesn't matter who tagged first. so I want to give loot to everyone who attacks boss. I have tried to catch all players with ThreadManager but it didn't worked. any idea how to do it?

rektbyfaith
Administrator
0
03-24-2025, 11:02 PM
#2
Archived author: substitute • Posted: 2025-03-24T23:02:45.580000+00:00
Original source

Is there an event when an npc takes damage? I would use that event and grab the party of the attacker (each) and build a set of guids to give loot to once the npc dies
rektbyfaith
03-24-2025, 11:02 PM #2

Archived author: substitute • Posted: 2025-03-24T23:02:45.580000+00:00
Original source

Is there an event when an npc takes damage? I would use that event and grab the party of the attacker (each) and build a set of guids to give loot to once the npc dies

rektbyfaith
Administrator
0
03-24-2025, 11:03 PM
#3
Archived author: substitute • Posted: 2025-03-24T23:03:11.434000+00:00
Original source

(I also assume there’s a death event?)
rektbyfaith
03-24-2025, 11:03 PM #3

Archived author: substitute • Posted: 2025-03-24T23:03:11.434000+00:00
Original source

(I also assume there’s a death event?)

rektbyfaith
Administrator
0
03-24-2025, 11:14 PM
#4
Archived author: Barais • Posted: 2025-03-24T23:14:52.921000+00:00
Original source

Should be an on death event
rektbyfaith
03-24-2025, 11:14 PM #4

Archived author: Barais • Posted: 2025-03-24T23:14:52.921000+00:00
Original source

Should be an on death event

rektbyfaith
Administrator
0
03-25-2025, 01:04 AM
#5
Archived author: sudlud • Posted: 2025-03-25T01:04:14.835000+00:00
Original source

There should be script functions for damage taken / death etc
rektbyfaith
03-25-2025, 01:04 AM #5

Archived author: sudlud • Posted: 2025-03-25T01:04:14.835000+00:00
Original source

There should be script functions for damage taken / death etc

Recently Browsing
 
Recently Browsing