Paste #23294: Again, not working

Date: 2015/12/01 16:54:39 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


ABetterLife:
    type: assignment
    interact scripts:
    - 10 ABetterLifeStart

ABetterLifeStart:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hello, <player.name>."
                - wait 2
                - chat "My name is <npc.name>, I am a Night Elf from Kalimdor. I have traveled here through boat seeking a better life."
                - wait 2
                - chat "However, I don't have any money to get started."
                - wait 2
                - chat "Can you help me?"
            chat trigger:
                1:
                    trigger: /Yes/, I will help you!
                    script:
                    - chat "Great! I need 10 gold bars to start my journey here."
                    - wait 1
                    - chat "Deliver these to me once you have gathered them!"
                    - zap step:2
                2:
                    trigger: /No/, I cannot help you.
                    script:
                    - chat "Okay. Please come back later when you can assist me!"
        2:
            click trigger:
                script:
                - if <player.inventory.contains[GOLD_INGOT].qty[10]> {
                  - ^take gold_ingot qty:10
                  - chat "Yes yes yes! Thank you so much for bringing these to me!"
                  - wait 2
                  - chat "Now I can start my new life here!"
                  - wait 1
                  - chat "Thank you very much, <player.name>."
                  - wait 1
                  - chat "Oh, Here!"
                  - wait 2
                  - narrate "<npc.name> hands you small, green tokens surrounded by wooden padding"
                  - wait 1
                  - chat "Here, I want you to have some tokens from my home land. They haunt me with terrible memories from my past."
                  - wait 1
                  - give i@DruidicTradingCurrency qty: 10
                  - zap step:3
                  } else {
                  - chat "Oh, come back when you have 10 gold bars!"
                  - wait 1
                  - narrate "<npc.name> frowns at you."
                  }
        3:
            click trigger:
                script:
                - chat "Thanks again, <player.name> for all of your help!"
                - flag ABetterLifeStart duration:1m
                - zap step:1

DruidicTradingCurrency:
    type: item
    material: emerald
    display name: <green>Druidic trading currency
    lore:
    - <green>Trading currency used to purchase or trade items in the Druid lands of Kalimdor.