Date: 2014/07/31 10:39:13 UTC-07:00
Type: Denizen Script
KillAnnouncer:
type: world
events:
on player dies:
- flag player ZombieCountLife:0
- flag player KillCountLife:0
on player joins
- flag player ZombieCountLife:0
- flag player ZombieCountTotal:0
- flag player KillCountLife:0
- flag player KillCountTotal:0
- zap step:2
- listen kill type:entity name:zombie qty:1 script:ZombieCountCheck
- listen kill type:player qty:1 script:KillCountCheck
on player kills player:
- 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"
on player kills zombie:
- flag player ZombieCountLife:++
- flag player ZombieCountTotal:++
- narrate "<white>You have killed <yellow><player.flag[ZombieCountLife]> <dark_green>Zombies <white> this life!"
- narrate "<white>You have killed <yellow><player.flag[ZombieCountTotal]> <dark_green>Zombies <white> while playing QuestZ!"