Paste #31794: Untitled Paste

Date: 2016/03/20 11:51:28 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14


on system time minutely:
            - announce "minute test"
            # get a list of online players who 
            # are on the DQ_KillZombies quest
            - define viablePlayers '<server.list_online_players.filter[flag[DQCurrent].is[==].to[s@DQ_KillZombies]]||li@>' 
            # if that list is empty, abort.
            - if <def[viablePlayers].is_empty> queue clear
            # for each player spawn 1-3 zombies near them
            - foreach %viablePlayers% { 
              - repeat <util.random.int[1].to[3]> { 
                - announce "spawning"
                - spawn e@redzombie <def[value].location.find.surface_blocks.within[20].random> 
                } 
            }