Paste #48416: Help Farmer Jeff

Date: 2018/07/06 18:42:56 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


helpjeff:
  type: assignment
  actions:
    on assignment:
    - trigger name:proximity state:true radius:3
    on enter proximity:
      - if <player.has_flag[helpjeffyes].not> { 
      - narrate "You see a chicken man? What is with this town! Either way, hes running around his wheat fields, mumbling to himself. It seems hes talking about possibly having a quest? Go up and right click on him and see what he has to say." 
      } 
    else { 
      - zap s@helpjefffarm 2 
    } 


  interact scripts:
  - 3 helpjefffarm

helpjefffarm:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - narrate "Thank Bawk you've come! I am in serious trouble! I need to get 50 bales of hay today so I can take them into town, but I'm just...so tired."
                - wait 2
                - narrate "Could you help a farmer out, Cluckers? (Type Yes/No)"
            chat trigger:
                1:
                    trigger: /yes/
                    script:
                    - chat "Oh my gosh! Thank you so much! You're helping a farmer out for sure! Here, take this hoe and get to choppin!"
                    - flag player helpjeffyes
                    - zap step:2
                    - give wood_hoe qty:1
                2:
                    trigger: /no/
                    script:
                    - chat "No? Well, that's alright. I could make it worth your while though. If you change your mind come on back!"
        2: 
            click trigger: 
                script: 
                - if <player.inventory.contains[wheat].quantity[50]> { 
                    - take wheat quantity:50 
                    - chat "Thank you so much! These are perfect! Here's a little something for your trouble!" 
                    - give money quantity:75 
                    - mcmmo give skill: herbalist  
                } else { 
                    - chat "That's not enough wheats! Come back when you have a few more, cluckers!" 
                    - wait 1 
                    - narrate "<npc.name> looks excited for you to bring all of the wheat! Looks like he's been recovering well too from the break!" 
                }