Paste #13485: Script

Date: 2015/01/29 17:01:48 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


GoblinQuestAssignment: 
  Type: Assignment 
  actions: 
    on assignment: 
    - trigger name:click state:true 
    - trigger name:chat toggle:true radius:5 

  interact scripts: 
  - 1 GoblinQuest 

GoblinQuest: 
  Type: Interact 
  Steps: 
    1: 
      Click Trigger: 
        script:  
        - CHAT "<player.name>! come close, There is an evil stalking the woods to the East of the Fishing Guild" 
        - Wait 2 
        - CHAT "A terrible beast born of darkness." 
        - Wait 2 
        - CHAT "i am looking for someone with great skill to slay the beast. Will you help me?" 
        - Wait 1 
        - CHAT "There will be a reward in it for you." 
      Chat Trigger: 
        1:  
          Trigger: /Yes/,I'll Help you. 
          script: 
          - CHAT "Great, Kill this Goblin beast" 
          - Wait 1 
          - CHAT "Hurry i fear for the fishing guild."  
          - Listen kill type:npc npcid:61 script:GoblinquestTask 
          - Zap Step:2 
        2: 
          Trigger: /No/, I'm Busy. 
          script: 
          - CHAT "Oh.... please come back when you have more time" 
    2: 
      Click Trigger: 
        Script: 
        - CHAT "Come on <player.name> the Goblin might attack at any time" 
    3: 
      Click Trigger: 
        Script: 
        - CHAT "Thank you for saving the Guild" 
        - Wait 1 
        - Chat "Ah, your reward a Bow" 
        - give i@SentrysBowofCourage qty:1 
        - Zap Step:4 
    4: 
      Click Trigger: 
        Script: 
        - Chat "Ask around the guild there might be more work for you" 

GoblinquestTask: 
  Type: Task 
  Script: 
  - narrate "With a Howl the beast dies. Report back to the Sentry for your Reward" 
  - Zap Step:3 Script:GoblinQuest 


SentrysBowofCourage: 
  type: item 
  material: Bow 
  display name: Sentrys Bow of Courage 
  lore:  
  - <orange>A deadly weapon when used correctly 
  no_id: false 
  bound: false