Cake Shop (Using the new crafting listener)


Author: man_cub
Created: 2012-11-26T12:18:18-0500
Edited: 2012-11-26T13:43:41-0500
Denizen Version: 0.76
Views: 44
Downloads: 855
Likes: 0


WGET
Description: This script is a simple delivery/crafting script to show the new listener.

Original script by: Afonso14
Edited by: Man_cub

MC

'Cake shop':
  Type: Interact
  Requirements:
    Mode: None
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Welcome to my store. Would you like something?"
        - WAIT 3
        - CHAT "Oh. You just wanted to know if I needed some help? That's so nice of you."
        - WAIT 4
        - CHAT "Actually. You came in a very good time."
        - WAIT 2
        - CHAT "I need someone to deliver this cake to §5Eliaja§f. He lives in the other side of town."
        - WAIT 4
        - HINT (SHORT)
      Chat Trigger:
        1:
          Trigger: /Ok/, I'll do it.
          Script:
          - WAIT 2
          - CHAT "Thank you. I'll gather some reward for when you come back."
          - GIVE 354 QTY:1
          - NARRATE "You've received a §bcake§f."
          - ZAP 2
          - FINISH
        2:
          Trigger: /No/. Sorry, I'm busy at the moment.
          Script:
          - WAIT 2
          - CHAT "Is that so? Well come back when you have time."
    2:
      Click Trigger:
        Script:
        - CHAT "Baking warms the heart. Did you want something?"
        
'Cake delivery':
  Type: Interact
  Requirements:
    Mode: All
    List:
    - FINISHED Cake shop
    - HOLDING 354 1
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Do I smell something delicious? Is that the §bcake§f I ordered?"
        - HINT (SHORT)
      Chat Trigger:
        1: 
          Trigger: /Yes/, I came here to deliver it.
          Script:
          - WAIT 2
          - TAKE 354 QTY:1
          - NARRATE "You've lost a §bcake§f."
          - CHAT "Thank you, then. I appreciate your time."
          - WAIT 2
          - CHAT "By the way, if you're going back please take this §bpainting§f with you for §bLazize§f."
          - GIVE 321 QTY:1
          - WAIT 5
          - NARRATE "You've received a §bpainting§f."
          - ZAP 2
          - FINISH
        2:
          Trigger: /NO/!! MY CAKE!!
          Script:
          - WAIT 2
          - CHAT "Ok. It looks delicious."
          - EMOTE "sigh"
          - WAIT 2
          - CHAT "Good bye then..."
    2:
      Click Trigger:
        Script:
        - CHAT "Are you having a good day today?"
        
'Cake reward':
  Type: Interact
  Requirements:
    Mode: All
    List:
      - FINISHED Cake delivery
      - HOLDING 321 1
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Welcome back. Did you deliver the cake?"
        - WAIT 3
        - CHAT "You even brought me a §bpainting§f? Nice work!"
        - TAKE 321 QTY:1        
        - NARRATE "You've lost a §bpainting§f."
        - WAIT 3
        - CHAT "Here is something for the trouble."
        - GIVE MONEY QTY:100
        - GIVE HEROESEXP QTY:200
        - NARRATE "You've received 100 §egold§f."
        - NARRATE "You've received 200 §aexperience§f."
        - WAIT 3
        - CHAT "By the way, my daughter, §5Soumra§f, needs some help. Would you be so kind as to help her?"
        - ZAP 2
        - FINISH
    2:
      Click Trigger:
        Script:
        - CHAT "Thanks again for the help!"
        
'Cookie before chat':
  Type: Interact
  Requirements:
    Mode: None
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Be careful out there."
        
'Cookie crafting':
  Type: Interact
  Requirements:
    Mode: All
    List:
    - FINISHED Cake reward
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Are you the person who helped my mother? Could you help me to?"
        - HINT (SHORT)
      Chat Trigger:
        1:
          Trigger: /Yes/, your mother asked me to help you.
          Script:
          - WAIT 2
          - CHAT "Great, I'm in need of some help."
          - WAIT 2
          - CHAT "She asked me to make some §bcookies§f but I hurt my wrist when I was playing, and even worst I'm out of ingredients..."
          - WAIT 6
          - CHAT "Could you get the ingredients and make some §bcookies§f for me?"
          - WAIT 4
          - CHAT "To make eight of them you will need 2 §bwheat§f and 1 §bcocoa bean§f."
          - WAIT 4
          - CHAT "Come back to me when you're done making those §bcookies§f. 32 should be enough."
          - LISTEN ITEM TYPE:CRAFT NAME:COOKIE QTY:32 'SCRIPT:Cookie done'
          - ZAP 2
        2:
          Trigger: /No/, you've got the wrong person.
          Script:
          - WAIT 2
          - CHAT "Oh..Ok. I'll see you around."         
    2:
      Click Trigger:
        Script:
        - CHAT "I hope you're not having too much trouble making those cookies!"
          
'Cookie done':
  Type: Task
  Script:
  - NARRATE "You've finished making §bcookies§f for §5Soumra§f. Take them to her."
  - FINISH
  
'Cookie reward':
  Type: Interact
  Requirements:
    Mode: All
    List:
    - FINISHED Cookie done
    - HOLDING 357 32
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "These §bcookies§f look delicious! Thank you for the help."
        - GIVE MONEY QTY:100
        - GIVE HEROESEXP QTY:200
        - NARRATE "You've received 100 §egold§f."
        - NARRATE "You've received 200 §aexperience§f."
        - RESET FINISHED 'Cake delivery'
        - RESET FINISHED 'Cookie done'
        - RESET FINISHED 'Cake reward'
        - RESET FINISHED 'Cookie crafting'
        - RESET FINISHED 'Cake shop'
        - ZAP 1 'SCRIPT:Cookie crafting'
        - ZAP 1 'SCRIPT:Cake reward'
        - ZAP 1 'SCRIPT:Cake delivery'
        - ZAP 1 'SCRIPT:Cake shop'
        - COOLDOWN 'SCRIPT:Cake shop' 64800       
        
'Cake shop cooldown':
  Type: Interact
  Requirement:
    Mode: None
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "We both appreciate your help. Please stop by again."




Comments
No one has posted a comment! Post one below: