Paste #7432: Slayer of the Dead

Date: 2014/07/24 14:08:39 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


SlayerOfTheDead:
    type: assignment
    interact scripts:
    - 10 SlayerOfTheDeadQuest
SlayerOfTheDeadQuest:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Ryyz'rtwyt, the Lich King, has woken from his slumber and is raising the dead to invade Aegis."
                - wait 1
                - chat "You, Hero, must venture forth into his lair and destroy him, before he destroys us..."
                - wait 1
                - chat "Will you help us Hero?  Yes?  No?"
            chat trigger:
                1:
                    trigger: /Yes/, I will destroy the Lich King!
                    script:
                    - chat "The Zo truly are gracious!"
                    - wait 1
                    - chat "Return to me with Ryyz'rtwyt's head and you will be amply rewarded!"
                    - listen kill type:npc name:Ryyz'rtwyt script:Ryyz'rtwytDeathListener
                2:
                    trigger: /No/, I am a lil bitch..
                    script:
                    - chat "When the Risen come for you, do not expect any help from the Acolytes of the Zo."
                    - zap step:1
        2:
            click trigger:
                script:
                - chat "Has the Lich King been defeated?"
                - if <player.inventory.contains[INSERT_ITEM_ID_OF_LICHKINGplayer.inventory.contains[INSERT_ITEM_ID_OF_LICHKING'S_HEAD_HERE].qty[1]> {
                - ^take INSERT_ITEM_ID_OF_LICHKING'S_HEAD_HERE qty:1
                - chat "You killed Ryyz'rtwyt!  You have spared us Hero.  The Zo smile upon you."
                - give [INSERT REWARDS HERE]
                - zap step:3
                } else {
                - chat "The Lich King is gaining strength as we speak!  Why are you still here?  Go kill him!"
                - zap step:2
                }
        3:
            click trigger:
                script:
                - chat "Thank you Hero.  Your victory is a victory for us all"

Ryyz'rtwytDeathListener:
    type: task
    script:
    - narrate "Ryyz'rtwyt the Lich King has been defeated.. For now."
    - wait 1
    - narrate "Return to Lord Mortyer to report the news."
    - zap step:2