Full Version : Sequential spawner: pause beforing looping?
xmlspawner >>Q&A >>Sequential spawner: pause beforing looping?


<< Prev | Next >>

morganm- 11-25-2006
I've setup a sequential spawner... er several of them. They function properly and flow from the first subgroup to the last as expected. However I'd like the spawner to pause before restarting at subgroup 1.

For example this is a graveyard spawn. Players kill the lesser undead, some medium stuff, a final tougher monster, then it loops back to subgroup 1. However they get no time to loot up the corpses before it respawns! I have the MinDelay and MaxDelay pretty low (5 secs) and MinD and MaxD (.1 min) set low too so that things spawn pretty fast which is how I want it.

Thanks for any help! Great site here, I've searched hundreds of times and found answers to most my questions.

ArteGordon- 11-27-2006
you can add an entry that introduces a fixed delay by using the WAITUNTIL keyword. Add it to a subgroup that follows your boss mob.

WAITUNTIL,1.5

will wait for 1 and a half minutes

from xmlspawner2.txt
QUOTE

- Added the WAITUNTIL[,duration][,timeout][/condition][/spawngroup] keyword that holds spawning and triggering until a given time elapses or a given condition is satisfied.
If called as "WAITUNTIL,duration" this essentially creates an empty spawn that will last for the specified duration in minutes.
If called as "WAITUNTIL/condition" it will hold further spawning until the condition is satisfied.
If called as "WAITUNTIL/condition/spawngroup" it will hold spawning until the condition is met, and then spawn the specified subgroup.
The timeout can be used to add in a safety release to prevent indefinite blocking of spawning if a condition may never be met.
If the duration is used in conjunction with a condition, then it will control the polling time (frequency with which the condition is checked).
In general this keyword can be used to introduce simple delays into sequential spawning patterns or to pause spawning until a particular condition is met.
An example is provided in the xmlextras file that shows how it can be used to spawn gumps and wait for responses.
An important characteristic of WAITUNTIL is that the spawngroup will be spawned with the triggering information of the keyword.  This allows for a series of spawns to be triggered once, with the triggering player information carried forward throughout all of them without any further retriggering.  The xmlextras example provided is a good example of the application, where a player activates a series of gumps which are delivered only to that player, and the spawner is only triggered at the beginning of the series.


morganm- 11-27-2006
Awesome! Thanks Arte, I'll implement that biggrin.gif