Paste #31163: Shipment quest

Date: 2016/03/04 04:40:11 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


shipmatehandy:
    type: assignment
    interact scripts:
    - 10 repairstart

repairstart:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "ARGH! I cant get this repair fixed without wood!"
                - wait 1
                - chat "You there! I need your help"
                - wait 1
                - chat "Will you help me?"
            chat trigger:
                1:
                    trigger: /Yes/, I can help. What do you need?
                    script:
                    - chat "I need wood, to get this hole fixed"
                    - wait 1
                    - chat "I should need about 50 wood, you bring me that and I'll pay ye 300 gold coins!"
                    - wait 1
                    - chat "Come back when ye got the wood!"
                    -zap step:2
                2:
                    /No/, I cant right now.
                    script:
                    - chat "Argh! Come back when you can get me what wood.."

        2:
            click trigger:
                script:
                - if <player.inventory.contains[5].qty[50]> {
                  - take wood qty:50
                  - chat "Ah great! This should be enough to patch up this mess"
                  - wait 1
                  - chat "Thank ye so much!"
                  - give money qty:300
                  } else {
                  - chat "This hole could cause the ship to collapse!"
                  - wait 1
                  - chat "Please bring me that wood soon"
                  }

        3:
            click trigger:
                script:
                - chat "I should have this hole patched in no time!"
                - wait 1
                - chat "Thanks again for all ye help"