Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I have a game event triggering a pool which, in turn, spawns a random NPC based on entries in `pool_

[DiscordArchive] I have a game event triggering a pool which, in turn, spawns a random NPC based on entries in `pool_

[DiscordArchive] I have a game event triggering a pool which, in turn, spawns a random NPC based on entries in `pool_

rektbyfaith
Administrator
0
01-09-2025, 12:07 PM
#1
Archived author: Michael Crilly • Posted: 2025-01-09T12:07:51.268000+00:00
Original source

I have a game event triggering a pool which, in turn, spawns a random NPC based on entries in `pool_creature`. My problem now is how do I also use `pool_quest` to attach a quest to an NPC that has an `RequiredNpcOrGo*` entry for the NPC GUID that was selected by the pool? The pool might select a creature from a list of 4 ot 5, but I can't seem to ensure the correct quest for the correct creature is also made available. Does that make sense? Is there a better solution, perhaps?
rektbyfaith
01-09-2025, 12:07 PM #1

Archived author: Michael Crilly • Posted: 2025-01-09T12:07:51.268000+00:00
Original source

I have a game event triggering a pool which, in turn, spawns a random NPC based on entries in `pool_creature`. My problem now is how do I also use `pool_quest` to attach a quest to an NPC that has an `RequiredNpcOrGo*` entry for the NPC GUID that was selected by the pool? The pool might select a creature from a list of 4 ot 5, but I can't seem to ensure the correct quest for the correct creature is also made available. Does that make sense? Is there a better solution, perhaps?

rektbyfaith
Administrator
0
01-09-2025, 12:12 PM
#2
Archived author: Michael Crilly • Posted: 2025-01-09T12:12:17+00:00
Original source

If I create a quest for each of the possible NPCs, I guess I can make all the quests available...

The more I think about this, the more I think it'll be easier to just define simple "flat" quests with an NPC requirement on there and then use single entry pools with a game event that has a chance of the creature spawning.
rektbyfaith
01-09-2025, 12:12 PM #2

Archived author: Michael Crilly • Posted: 2025-01-09T12:12:17+00:00
Original source

If I create a quest for each of the possible NPCs, I guess I can make all the quests available...

The more I think about this, the more I think it'll be easier to just define simple "flat" quests with an NPC requirement on there and then use single entry pools with a game event that has a chance of the creature spawning.

Recently Browsing
 
Recently Browsing