Paste #57207: Untitled Paste

Date: 2019/08/22 03:13:43 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


savannah: 
    type: assignment 
    actions: 
        on assigment: 
        - trigger name:click state:true 
        - trigger name:chat state:true 
    interact scripts: 
        - 10 savannah_interact

savannah_interact:
    type: interact
    steps:
        1:
            click trigger: 
                script:
                - if <player.has_flag[savannah_quest_cooldown]> {
                    - chat "My gentle friend, you have helped me so much! I won't need new ingredients for another <player.flag[scute_quest_cooldown].expiration.formatted>." targets:<player>
                    - disengage
                    - stop
                    }
                - if <player.inventory.contains[i@gunpowder].quantity[5]> && <player.has_flag[savannah_quest]> {
                    - chat "My friend, I thank you. Please, take this humble reward."                    
                    - flag <player> scute_quest:!
                    - take gunpowder quantity:5
                    - execute as_op "points give <player.name> 2"
                    - money give quantity:100
                    - narrate "You have received a reward"
                    - flag <player> savannah_quest_cooldown duration:48h
                    - disengage
                    - stop
                    }
                - if <player.inventory.contains[i@redstone].quantity[16]> && <player.has_flag[savannah_quest]> {
                    - chat "Thank you! I still need more items to finish my potions though!"                      
                    - flag <player> scute_quest:!
                    - take gunpowder quantity:5
                    - money give quantity:50
                    - narrate "Collect 16 redstone dust for Savannah"
                    - flag <player> savannah_quest_cooldown duration:48h
                    - disengage
                    - stop
                    }
                - if <player.has_flag[s_quest]> {
                    - chat "Have you collected the ingredients yet?"
                    - queue clear
                    }
                - chat "Welcome to the Glade weary traveller."
                - wait 5t
                - chat "I make potions and special weapons for people."
                - wait 5t
                - chat "Can you help me by collecting items for my potions?[Yes] or [No]"
                - wait 5t 
            chat trigger:
                1:
                    trigger: /Yes/
                    script: 
                    - engage
                    - wait 10t
                    - chat "Awesome dude! I need you to collect me 5 scutes, they make like the best drinks cups"
                    - wait 5t
                    - narrate "[Collect 5 scutes for Skye's bar]"
                    - flag <player> scute_quest:1
                    - disengage
                2:
                    trigger: /No/
                    script: 
                    - engage
                    - random {
                      - chat "Not cool bro"
                      - chat "Aww, that sucks!"
                      - chat "Ok then, cya."
                      }
                    - disengage