View Single Post
  #4  
Old 01-23-2013, 03:52 PM
jdoran
Hill Giant
 
Join Date: Jul 2012
Posts: 212
Default

Sorry to be general, I didn't have a specific example in mind. But I'll come up with one now. Please keep in mind this is part of some experimental quest work I am doing that is not intended for live servers.

Let's say that a quest requires the player to kill NPC-A and his three guards. These NPCs spawn under a tree, and just wait around for the player to come for them.

We really do not need NPC-A and his buddies to clutter up the zone when none of the players performing the quest aren't around. So part of the experiment is to only spawn these guys when someone with the quest comes within range (I'm going to test having them spawn anytime the player is in-zone too, but I'm curious how well this mechanic will work).

To complicate matters a bit, NPC-A is a rare spawn in the spawn group, so the guards would keep respawning until the player leaves the area or kills NPC-A.

So my thought is to create a spawn group for these NPCs and enable it when the player comes within range, and disable it when the player leaves or kills NPC-A.

I'll be happy to PM you the details, but I don't want to go into too much on the forums since I don't think what I am doing is of interest to the general community.
Reply With Quote