Paste #22007: Untitled Paste

Date: 2015/10/30 22:48:28 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


george:
  type: assignment
  actions:
    on assignment:
      - trigger name:click state:true
      - trigger name:proximity state:true radius:3
      - lookclose <npc> state:true range:3 realistic
  interact scripts:
    - 1 george_interact
george_interact:
  type: interact
  debug: true
  steps:
    1:
      click trigger:
        script:
        - if <player.has_flag[quest001].not> {
          - if <in@inventory.contains.material[i@wool].quantity[10]> {
            - take i@wool quantity:10
            - narrate format:npc "Thank you so much! They look so much better <&e>naked<&7>! Here's a reward for your hard work"
            - wait 20t
            - give xp quantity:50
            - give money quantity:15
            - flag <player> quest001
            - queue clear
            }
          }
        - narrate format:npc "Oh good! Someone finally came! Quick take these shears and shave my sheep! They're too fluffy for my taste..get me 10 wool!"
        - give i@shears