Paste #3407: Edit of P#3406 - Bread Baker Quest

Date: 2014/04/11 07:06:41 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


ModerateScript:
  Type: Interact
 Requirements:
    Mode: Any 1
    List:
    - -script finished ‘script:ModerateScript’
    - -FLAGGED TownHero
  Steps:
      1:
        Chat Trigger:
            1:
              Trigger: /Hello/, how are you?
                Script:
                - CHAT “Not good! My daughters birthday party is today, and I can’t bake! The baker is out of town, so I have no one to help!”
                - WAIT 2
                - CHAT “Wait... Maybe you could help? Could you help me bake a <GOLD>[f]cake?”
                - ZAP 2
      2:
        Chat Trigger:
          1:
            Trigger: I’ll help you bake a /cake/.
            Script:
            - CHAT “Great! You’ll need 3 buckets of milk, two piles of sugar, one egg, and three wheat.”
            - CHAT “Come back to me when you have all the ingredients.”
            - FINISH
HasItems:
  Type: Interact
 Requirements:
   Mode: All
   List:
   - script finished 'script:ModerateScript'
   - item 335 ‘qty:3’
   - item 296 ‘qty:3’
   - item 344 ‘qty:1’
   - item 353 ‘qty:2’
   - -FLAGGED TownHero
  Steps:
    1:
      Chat Trigger:
        1:

          Trigger: /Regex:Hi|Hello|Hey/!
            Script:
            - CHAT "You've got all the items! Thanks so much!"
            - CHAT "I'll let everyone know how much you've helped me!"
            - FLAG TownHero
DoesNotHaveItems:

  Type: Interact
 Requirements:
    Mode: Any 1
    List:
    - script finished 'script:ModerateScript'
    - FLAGGED TownHero
 Steps:
 - CHAT "You're still missing some things! Come back once you have all the items!"
QuestIsAlreadyDone:
  Type: Interact
 Requirements:
    Mode: All
    List:
    - FLAGGED TownHero
   Steps:
     1:
       Chat Trigger:
         1:
           Trigger: /Regex:Hi|Hello|Hey/!
           Script:
           - CHAT "Ah! <player.name>! Great to see you!"