Paste #41383: Untitled Paste

Date: 2017/04/17 09:42:24 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


GoldBarQuest: 
    type: assignment 
    actions: 
        on assignment: 
        - trigger name:click state:true 
    interact scripts: 
    - 10 GoldBarStart 

GoldBarStart: 
    type: interact 
    steps: 
        1: 
            click trigger: 
                script: 
                - chat "Hello <player.name>, I need some help!" 
                - wait 1 
                - chat "Can you help me?" 
            chat trigger: 
                1: 
                    trigger: /yes/, I will help you! 
                    script: 
                    - chat "Oh great! I need 10 gold bars." 
                    - wait 1 
                    - chat "Come back when you have them" 
                    - zap step:2 
                2: 
                    trigger: /no/, I am too busy 
                    script: 
                    - chat "Oh darn, come back if you have some spare time..." 
        2: 
            click trigger: 
                script: 
                - if <player.inventory.contains[GOLD_INGOTS].qty[10]> { 
                 - ^take gold_ingor qty:10 
                 - chat "Oh great, you have my gold" 
                 - wait 1 
                 - chat "Thanks body" 
                 - give ENDER_PEARL qty:2 
                 - zap step:3 
                 } else { 
                 - chat "Oh, come nack when you have 10 GoldBars!" 
                 - wait 1 
                 - narrate "<npc.name> frowns at you." 
                 } 
        3: 
            click trigger: 
                script: 
                - chat "Thank you so much for your help earlier!" 
                - wait 1 
                - chat "Id be broke wihtout you."