[DiscordArchive] Okay so I have a world boss and I am trying to get the list of all the players that are fighting it,
[DiscordArchive] Okay so I have a world boss and I am trying to get the list of all the players that are fighting it,
Archived author: Shadowmeth • Posted: 2022-04-09T19:38:03.447000+00:00
Original source
Okay so I have a world boss and I am trying to get the list of all the players that are fighting it, how would I possibly do it?
Archived author: Jinnai • Posted: 2022-04-09T19:38:42.001000+00:00
Original source
There is something called threat list
Archived author: Jinnai • Posted: 2022-04-09T19:38:55.031000+00:00
Original source
To work with
Archived author: Shadowmeth • Posted: 2022-04-09T19:39:03.596000+00:00
Original source
Alright thanks.
Archived author: Jinnai • Posted: 2022-04-09T19:40:05.504000+00:00
Original source
https://github.com/TrinityCore/TrinityCo...tManager.h
[Embed: TrinityCore/ThreatManager.h at 3.3.5 · TrinityCore/TrinityCore]
TrinityCore Open Source MMO Framework (master = 9.2.0.43114, 3.3.5 = 3.3.5a.12340) - TrinityCore/ThreatManager.h at 3.3.5 · TrinityCore/TrinityCore
https://github.com/TrinityCore/TrinityCo...tManager.h
Archived author: Shadowmeth • Posted: 2022-04-09T20:08:07.351000+00:00
Original source
Thanks found what I was looking for. 1 more question I want to make the boss use a spell if anyone comes within 5 yards range of him. I tried using MoveInLineofSight function but it works if the player moves, so I can stay right at boss and not move and the spell won't be casted.
Archived author: Jinnai • Posted: 2022-04-09T20:22:39.594000+00:00
Original source
I'm not at home and it's quite uncomfortable to search for functions and stuff via phone. But I'm sure there is something to check if a player enters a certain range.
Archived author: Jinnai • Posted: 2022-04-09T20:24:13.233000+00:00
Original source
Another gimpy way of doing this would be, schedule an event that targets everything but is limited to 5 yard search range and re-schedule it every second