Paste #10741: sadsad

Date: 2014/10/24 15:45:28 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


####

'RalphCake':
    Type: Assignment

    Actions:
        on assignment:
        - trigger name:chat toggle:true cooldown:1

    interact Scripts:
    - 10 Cake


'Cake':
    Type: Interact

    Steps:
        'Intro*':
            click trigger:
                script:
                - narrate "<red><npc.name><&co><gold> I'm too busy to talk right now, please come ba... Wait!"
                - wait 1
                - narrate "<red><npc.name><&co><gold> I could actually use your help. Its my daughters birthday today and I forgot to bake her a cake!"
                - wait 2
                - narrate "<red><npc.name><&co><gold> The shops are all closed because of this demon nonsense. Would you mind helping me get the ingredients to make her a cake?"
                - wait 2
                - narrate "<red><npc.name><&co><gold> It'll be easy! Just bring me back 2 eggs, 1 bag of flour and 6 strawberries!"
                - wait 1
                - narrate "<red><npc.name><&co><gold> For your troubles I might just bake you one too! plus some money for that empty pocketbook of yours."
                - zap 'step:CakeRequirements'
        'CakeRequirements':
            Click Trigger:
                script:
                - if "<player.inventory.contains.display[Prized Chicken Egg].qty[2]>"{
                 - if "<player.inventory.contains.display[Bleached Flour].qty[1]>"{
                  - if "<player.inventory.contains.display[Strawberry].qty[6]>"{
                   - take "bydisplay:<gold>Prized Chicken Egg" qty:2
                   - take "bydisplay:<gold>Bleached Flour" qty:1
                   - take "bydisplay:<gold>Strawberry" qty:6
                   - narrate "<red><npc.name><&co><gold> Wow! That was fast. I know Ashley will be so happy I made her this cake!"
                   - narrate "<red><npc.name><&co><gold> If she ever get back here! She was supposed to be home an hour ago."
                   - narrate "<red><npc.name><&co><gold> Here, take this cake and money to show my appreciation."
                   - give i@GiveRalphCake qty:1
                   - give xp qty:110
                   - give money qty:0.5}}} else {
                    - narrate "<red><npc.name><&co><gold> Hmm... It seems you're a bit short on the items. Come back when you have"
                    - wait 1
                    - narrate "<red><npc.name><&co><gold> 2 Eggs, 1 Flour, and 6 Strawberries"
                   } 
CakeEgg:
    Type: Item
    Material: 344
    Display Name: <gold>Prized Chicken Egg
CakeFlour:
    Type: Item
    Material: 332
    Display Name: <gold>Bleached Flour
CakeStrawberry:
    Type: Item
    Material: 331
    Display Name: <gold>Strawberry   
GiveRalphCake:
    Type: Item
    Material: 354
    Display Name: <gold>Ralphs Cake