Ok we have Npc's,
Bloody_Mary
Queen_Sheba1
Queen_Sheba2
and an npc just for zone scripting the encounter
Cocktail
We want Queen_Sheba2, to only respawn every 3 days after she's been killed, and to only be spawned for 90minutes, and to be available for retry in 3hours after despawning
We want Queen_Sheba1, to Spawn after the 90minutes if 2 wasnt killed
We want Bloody_mary's death to trigger Queen_Sheba2's spawning
now for quests.
Bloody_mary's slay event depop()'s 1, and writes to "blood_dead" a timestamp
Cocktail spawns every 3 minutes,
it's first spawn event checks "blood_dead" and "queen_dead"
if the timestamp occurs in the last three minutes and the queen isn't dead .
It spawns Queen_Sheba2, and write()'s a timestamp to "queen_spawn",
and an alive indicator to "queen_dead"
The next if checks "queen_spawn" if the timestamp is 90minutes ago it depop()'s Queen_Sheba2, and writes to "queen_respawn" another timestamp
The next if checks "queen_dead" and "queen_respawn" if the timestamp is 3 hours ago and the queen isn't dead, or if the timestamp is 3days old and the queen is dead, it will spawn() Queen_Sheba1
The final quest function would be a depop() on it's self so it all starts over in 3 minutes
|