Paste #43505: Untitled Paste

Date: 2017/08/14 12:39:18 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"No Farms For You":
    type: world
    events:
        on entity dies:
        - flag server spawnlimit.<context.entity.location.simple>:++ duration:30m
        - if <server.flag[spawnlimit.<context.entity.location.simple>]> >= 3
        {
#            - narrate "Debug message normal mobs samelocation"
            - determine NO_DROPS_OR_XP
        }
        on mm denizen death:
        - flag server spawnlimit.<context.activemob.location.simple>:++ duration:30m
        - if <server.flag[spawnlimit.<context.activemob.location.simple>]> >= 3
        {
#            - narrate "Debug message mythicmobs samelocation"
            - determine drops:li@;money:0;exp:0
        }
        on player receives message:
        - if <context.message> contains "dropped 0.0 gold" 
        {
            - determine CANCELLED
        }
"NoSpawnersForYou":
    type: world
    events:
        on entity spawns:
        - if <context.entity.is_player>
        {
            - queue clear
        }
        - if '<context.reason>' == 'SPAWNER'
        {
            - wait 1t
            - flag '<context.entity>' 'is_spawned.spawner'
        }
        on entity dies:
        - if <context.entity.is_player>
        {
            - queue clear
        }
        - if <context.entity.has_flag[is_spawned.spawner]>
        {
            - announce to_console "Debug message normal mobs spawner"
            - determine NO_DROPS_OR_XP
        }

        on mm denizen death:
        - if <context.entity.is_player>
        {
            - queue clear
        }
        - if '<context.activemob.entity.flag[is_spawned.spawner]>'
        {
            - announce to_console "Debug message mythicmobs spawner"
            - determine drops:li@;money:0;exp:0
        }