Paste #7728: Untitled Paste

Date: 2014/07/31 09:28:16 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


KillAnnouncer:
    type: world
    debug: false
    events:
        on player dies:
        - flag player ZombieCountLife:0
        - flag player KillCountLife:0
    steps:
        1:
            script:
            - flag player ZombieCountLife:0
            - flag player ZombieCountTotal:0
            - flag player KillCountLife:0
            - flag player KillCountTotal:0
            - zap step:2
        2:
            script:
            - listen kill type:entity name:zombie qty:1 script:ZombieCountCheck
            - listen kill type:player qty:1 script:KillCountCheck

ZombieCountCheck:
    type: task
    script:
    - flag player ZombieCountLife:++
    - flag player ZombieCountTotal:++
    - narrate "<white>You have killed <yellow><player.flag[ZombieCountLife].as_int> <dark_green>Zombies <white> this life!"
    - narrate "<white>You have killed <yellow><player.flag[ZombieCountTotal].as_int> <dark_green>Zombies <white> while playing QuestZ!"

KillCountCheck:
    type: task
    script:
    - flag player KillCountLife:++
    - flag player KillCountTotal:++
    - narrate "<white>You have killed <yellow><player.flag[KillCountLife].as_int> <red>Players <white> this life!"
    - narrate "<white>You have killed <yellow><player.flag[KillCountTotal].as_int> <red>Players <white> while playing QuestZ!"
    - execute as_server "economy give <context.damager.name> 0.50"