Paste #753: Untitled Paste

Date: 2013/12/30 17:22:43 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"KillQuestAssignment":
    type: assignment
    interact scripts:
         - 10 KillQuest

KillQuest:
    type: interact
    steps:
        1:
            click trigger:
                script:
                                - chat "Hello <player.name>, I need some help!"
                                - wait 1
                                - chat "I have a problem with zombies killing my cows at night."
                                - wait 1
                                - chat "Can you help me?"
            chat trigger:
                1:
                    trigger: /Yes/, I will help you!
                    script:
                                        - chat "Ok thank you ver much! i need to kill 5 zombies arround my farm tonight"
                                        - wait 1
                                        - chat "Hurry they're going to kill my cows if you don't hurry!"
                                        - zap step:2     
                                        - listen kill type:entity name: zombie qty:5 script:ZombieQuestTask
                2:
                    trigger: /No/, I'm too busy.
                    script:
                                        - chat "Oh darn, come back if you have some spare time..."
        2:
            click trigger:
                script:
                                - chat "Hurry up, <player.name>! My cows keep dying!!"
        3:
            click trigger:
                script:
                                - chat "Oh thank goodness, my cows are safe!"
                                - wait 1
                                - chat "Here is a reward
                - give money qty:100
                                - give iron_sword
                                - zap step:4
        4:
            click trigger:
                script:
                                - chat "Thanks for saving my cows!"

ZombieQuestTask:
    type: Task
    script:
        - narrate "You've killed 5 zombies! Return  to <npc.name>!"
    - zap step: 3 script:KillQuest