on system time minutely: # check if its night time - if ! clear queue # get a list of online players who # are on the DQ_KillZombies quest - define viablePlayers '' # if that list is empty, abort. - if queue clear # for each player spawn 1-3 zombies near them - foreach %viablePlayers% { - spawn e@redzombie }