Paste #44239: Untitled Paste

Date: 2017/09/09 19:19:06 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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'