Paste #13821: Wolf Killer v3.3

Date: 2015/02/11 09:44:02 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"CTR":
  type: assignment
  actions:
    on assignment:
    - trigger name:click state:true
    - trigger name:chat state:true
  interact scripts:
  - 10 "CleartheRoad"
  - 5 "QuestRewardArvegachi"
  default constants:
  - RewardAmount: 300
"CleartheRoad":
  type: interact
  Steps:
    1:
      Click Trigger:
        Script:
        - chat "Ah, an adventurer! Perhaps you can help me!"
        - wait 1
        - chat "My name is Arvegaci, a humble merchant from a small town near this province."
        - wait 1
        - chat "I was here meeting with a trade guild to discuss a partnership in the near future, but I have stayed in town far too long!"
        - wait 1
        - chat "I must get back to my shop, and I don't have the luxury of taking the same route back as I took here."
        - wait 1
        - chat "The quickest way to my village is a shortcut through the forest, but it is teeming with unfriendly beasts that prey on solo travelers like myself."
        - wait 1
        - chat "Would you please assist me by clearing 10 of the beasts that inhabit the forest? I will spare you what I can as a reward!"
        - zap step:2
    2:
      Chat Trigger:
        1:
          trigger: '/Regex:yes|sure|gladly/'
          script:
          - chat "Great! Return to me when you have succeeded in this task!"
          - wait .5
          - chat "I'll spare you what little coin I can as a reward!"
          - listen kill 'ID:Kill10Wolves' 'SCRIPT:Wolvesdead' 'type:entity' 'target:wolf' 'qty:10'
          - narrate '<Red>Quest Started - <Green>Clear the Road.'
          - finish
        2:
          trigger: '/No/ thanks, busy right now.'
          script:
          - chat "No! You're sure you won't reconsider? I must find someone to help me!"
          - zap step:1
"QuestRewardArvegachi":
  Type: Interact
  Steps:
    1:
      Click Trigger:
        Script:
        - script finished 'script:Clear the Road'
        - -script finished 'script:QuestRewardArvegachi'
        - Flagged 'WolvesKilled:10'
        - chat "Ah! Have you succeeded? Here, for all your hard work..."
        - give <npc.constant[RewardAmount]>
        - narrate '<Red>Quest Complete - <Green>Clear the Road'
        - finish
"Wolvesdead":
  Type: Task
  Script:
  - narrate "You have killed 10 wolves! Return to Arvegachi to claim your reward!"
  - flag WolvesKilled:10