Paste #4110: TutVoriban

Date: 2014/05/05 23:51:43 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


TutVoriban:
    type: assignment
    interact scripts:
    - 1 Here fishy, fishy!

Here Here fishy, fishy!:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hello <player.name>, I need some help!"
                - wait 1
                - chat "Can you help me?"
                - naratte "&e&lQuest &f- &e"&9Here Fishy, Fishy!&e""
                - naratte "Type &a&lY &rto accept or &4&lN &rto decline
                - naratte "&eQuest Objective &r- Fish up 2 &e[&rRaw Fish&e] &rAnd bring them to Voriban"
            chat trigger:
                1:
                    trigger: /Y/es, I will help you
                    script:
                    - naratte "&e&lQuest &aAccepted &r- &e"&9Here Fishy, Fishy!&e""
                    - wait 1
                    - chat "Great! I need you to fish me up 2 &eraw fish&f, I just can't catch any..."
                    - wait 1
                    - chat "Here, take a fishing rod!"
                    - give FISHING_ROD qty:1
                    - zap step:2

                2:
                    trigger: /N/o, I won't help you
                    script:
                    - naratte "&e&lQuest &4Declined &r- &e"&9Here Fishy, Fishy!&e""
                    - wait 1
                    - chat "Alright, Talk to me again if you want to help me!"
        2:
            click trigger:
                script:
                - if <player.inventory.contains[RAW_FISH].qty[2]> (
                  - chat "Do you have the fish I asked you for?"
                  - wait 1
                  - take RAW_FISH qty:2
                  - chat "Awesome! Thank you so much!"
                  - zap step:3
                  ) else (
                  - chat "Do you have the fish I asked you for?"
                  - wait 1
                  - chat "Oh... Come back when you have 2 &eraw fish"
                )
        3:
            click trigger:
                script:
                - chat "Thank you so much for your help!"
                - wait
                - chat "Maybe you should move on to ---, He might need some help!"