Date: 2015/12/25 21:02:29 UTC-08: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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Old_Witch:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- 10 POISON_POTION_INGREDIENTS
POISON_POTION_INGREDIENTS:
type: interact
steps:
1:
click trigger:
script:
- chat "<&6>I'm just an old woman, <player.name>. I could really use your help."
- wait 2
- chat "<&6>I'd just need you to gather a few ingredients for poor frail old me. It's for my... medicine."
- wait 2
- chat "<&6>I'm very ill. *cough* What do you say? Will you help?"
- narrate "<&9>(say Yes or No)"
chat trigger:
1:
trigger: /Yes/, I'll help...
script:
- chat "<&6>Good... good...Perfect."
- wait 2
- chat "<&6>First, I'll need a single spider eye. Shouldn't be too hard for a strapping young player like you, hmm?"
- wait 2
- chat "<&6>Come find me when you have it. And only when you have it."
- zap step:2
2:
trigger: /No/, I don't think I want to help you...
script:
- chat "<&6>What are you still doing here then? Get out of my sight before I hex you!"
- zap step:1
2:
click trigger:
script:
- if <player.inventory.contains[spider_eye].qty[1]> {
- take spider_eye qty:1
- chat "<&6>Perfect! I knew I could count on you, <player.name>."
- wait 2
- chat "<&6>Next, I'll need a bit of redstone. Just a bit, you understand, just one redstone dust for my, er, medicine."
- wait 2
- chat "<&6>Come back with the redstone dust or don't come back at all... okay, dear?"
- zap step:3
} else {
- chat "<&6>Where's my spider eye? I'm getting impatient."
}
3:
click trigger:
script:
- if <player.inventory.contains[redstone_dust].qty[1]> {
- take redstone_dust qty:1
- chat "<&6>Yes... yes... almost done now. This is just what I needed."
- wait 2
- chat "<&6>Just one more thing... one nether wart. Get it to me. And quickly."
- wait 2
- chat "<&6>I'll be waiting..."
- zap step:4
} else {
- chat "<&6>No redstone dust?! What have you been doing?? Stop dawdling!"
}
4:
click trigger:
script:
- if <player.inventory.contains[nether_wart].qty[1]> {
- take nether_wart qty:1
- chat "<&6>Perfect! Perfect! Now I have everything I need to make poison!"
- wait 2
- chat "<&6>Oh, you really thought I needed medicine? *cackle* You must be denser than I thought."
- wait 2
- chat "<&6>Fine, fine, here's some money for your trouble."
- execute as_server "eco give <player.name> 50"
- wait 2
- chat "<&6>Run along now before I use my poison on you."
- zap step:5
} else {
- chat "<&6>Where's my nether wart?!"
}
5:
click trigger:
script:
- chat "<&6>Go away. I don't need you any more."