Zombie Kill Quest - Repeatable


Author: canilao
Created: 2013-09-01T07:27:25-0400
Edited: 2013-09-01T13:00:06-0400
Denizen Version: 2.0.9
Views: 17
Downloads: 916
Likes: 0


WGET
Description: Updated this kill quest template. Uses a listener to track if you have killed 10 zombies. If you complete the task you get a diamond axe.

ZombieKiller:
    type: assignment

    interact scripts:
    - 10 ZombieKillerQuest
        
ZombieKillerQuest:
    type: interact
    steps:
        1:
            Proximity Trigger:
                entry radius: 5
                entry:
                    script:
                    - CHAT "Hey, you there! You look strong, can you help me kill some things?"
            Click Trigger:
                script:
                - CHAT "Im <npc.name>, would you help me?"
            Chat Trigger:
                1:
                    Trigger: /Yes/. I can.
                    Script:
                    - chat "I have a zombie problem! Zombies! everywhere!"
                    - wait 1
                    - chat "Zombies in the closet, zombie in the hall.. They're thick as flies on poo."
                    - wait 1
                    - chat "I<&sp>ll pay you to clear them out for me. Kill 10 and come talk to me."
                    - listen kill "id:Zombie ZombieKiller Listener" "script:ZombieKillingDone" type:entity target:zombie qty:10 
                    - zap 'step:2' 
                2:
                    Trigger: /No/. I cannot.
                    Script:
                    - chat "Are you sure? OK. maybe later?"
                    - zap 'step:1' 
        2:
            click trigger:
                script:
                - chat "Go kill 10 zombies please!"
        3:
            click trigger:
                script:
                    - engage
                    - chat "Thank you so much! Here, take this as a reward!"
                    - give DIAMOND_AXE QTY:1
                    - wait 1
                    - chat "They'll be back soon enough, let me know if you want to kill some more!"    
                    - zap 'Step:1'
                    - disengage
ZombieKillingDone:
    type: task
    script:
    - narrate "You have killed 10 zombie, return to <npc.name> for your reward"
    - zap 'step:3' 'script:ZombieKillerQuest'
 




Comments
No one has posted a comment! Post one below: