Paste #7929: maxv

Date: 2014/08/06 07:30:50 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


assignment:
    type: assignment
    interact scripts:
    - 10 TutorialQuest

secondtask:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Oh hi there! <player.name>"
                - wait 1
                - chat "Welcome to this server"
                - wait 2
                - chat "My name is <name.npc>"
                - narrate "you feel welcomed <player.name>"
                - wait 1
                - chat "<&4> but i need you help !"
                - wait 1
                - chat "can you help me? yes or no?"
            chat trigger:
                1:
                    triggers: /yes/, I guess i can give you a hand
                    script:
                    - chat "oh really !!!!???"
                    - chat "thats great !"
                    - wait 1
                    - narrate "the man seems excited"
                    - wait 1
                    - chat i just need 10 gold bars"
                    - zap step:2

                2:
                    triggers: /no/, im to bussy right now
                    script:
                    - chat "Ohh, well you can always come back later!"

        2:
            click trigger:
                script:
                - if <player.inventory.contains[GOLD_INGOT].qty[10]>
                  - ^take gold_ingot qty:10
                  - chat "nice you got my items!"
                  - wait 2
                  - narrate "The npc gives <player.name> some items"
                  - give money 15
                  - zap step:3
                  } else {
                  - chat "Oh, it doesnt seems you have the required items"
                  - wait 1

        3:
            click trigger:
                script:
                - chat "thanks so much for your help"
                - wait 1
                - chat "thanks again!"