Paste #7534: MagicalBooks

Date: 2014/07/27 22:12:40 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


MagicalBooks:
    type: assignment
    interact scripts:
    - 11 MagicalBooks
MagicalBooks:
    type:interact
    steps:
        1:
            proximity trigger:
                toggle:true radius:6
                    script:
                    - chat "Hey, you! Yes, <player.name> I'm talking to you! Can you help me out with something? Yes or No?"
            chat trigger
                1:
                    trigger: /Yes/, I can help you out, what's the task?
                    script:
                    - chat "Great! I need you to bring me one of those books of knowledge..."
                    - wait 1
                    - chat "What's their name..."
                    - wait 3
                    - chat "Ah! <blue>Codices<wh>! Bring me a <blue>Codex<wh> and I shall reward you, noble Hero!"
                    - zap step:2
                2:
                    trigger: /No/, I am too busy for your worthless cares!
                    script:
                    - chat "Oh, such a shame... I thought you were better than the others."
                    - wait 1
                    - chat "Come back anytime if you change your mind!"
                    - zap step:3
        2:
            proximity trigger:
                toggle:true radius:5
                    script:
                    -chat "So, have you come back with a <blue>Codex<wh>?"
                    -if <player.inventory.contains[INSERT_ITEM_ID_OF_A_CODEX_HERE].qty[1]> {
                    -^take INSERT_ITEM_ID_OF_A_CODEX_HERE qty:1
                    - chat "Wonderful! This will be amazing help for my research! Thank you, Hero!"
                    - give [INSERT REWARDS HERE]
                    - zap step:4
        3:
            proximity trigger:
                toggle:true radius:8
                    script:
                    - chat "Have you thought about my request? Will you help me out?"
                chat trigger
                1:
                    trigger: /Yes/, I can help you out, what's the task?
                    script:
                    - chat "Great! I need you to bring me one of those books of knowledge..."
                    - wait 1
                    - chat "What's their name..."
                    - wait 3
                    - chat "Ah! <blue>Codices<wh>! Bring me a <blue>Codex<wh> and I shall reward you, noble Hero!"
                    - zap step:2
                2:
                    trigger: /No/, I am too busy for your worthless cares!
                    script:
                    - chat "Oh, such a shame... I thought you were better than the others."
                    - wait 1
                    - chat "Come back anytime if you change your mind!"
                    - zap step:3
        4:
            proximity trigger:
                toggle:true radius:5
                    script:
                    - chat "May the Zo smile upon your destiny, Hero!"