Date: 2014/10/24 15:45:28 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
####
'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