Date: 2014/03/30 20:36:38 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# /npc assignment --set QuestAssignment #
!ds
QuestAssignment:
Type: Assignment
Interact Scripts:
- 4 QuestIsAlreadyDone
- 3 HasItems
- 2 DoesNotHaveItems
- 1 ModerateScript
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>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:
1:
Chat Trigger:
1:
Trigger: /Regex:Hi|Hello|Hey/!
Script:
- 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!"