Date: 2015/02/11 08:21:26 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
"CTR":
type: assignment
default constants:
- RewardAmount: 300
interact scripts:
- 10 "QuestRewardArvegachi"
- 5 "Clear the Road"
"Clear the Road":
Type: Interact
Requirements:
Mode: All
List:
- -script finished 'script:Clear the Road'
Steps:
1:
Click Trigger:
script:
- chat "Ah, an adventurer! Perhaps you can help me!"
- wait 1
- chat "My name is Arvegaci, a humble merchant from a small town near this province."
- wait 1
- chat "I was here meeting with a trade guild to discuss a partnership in the near future, but I have stayed in town far too long!"
- wait 1
- chat "I must get back to my shop, and I don't have the luxury of taking the same route back as I took here."
- wait 1
- chat "The quickest way to my village is a shortcut through the forest, but it is teeming with unfriendly beasts that prey on solo travelers like myself."
- wait 1
- chat "Would you please assist me by clearing 10 of the beasts that inhabit the forest? I will spare you what I can as a reward!"
- zap step:2
2:
Chat Trigger:
1:
Trigger: /Regex:Yes|Sure|Of Course/
Script:
- chat "Great! Return to me when you have succeeded in this task!"
- wait .5
- chat "I'll spare you what little coin I can as a reward!"
- listen kill 'ID:Kill10Wolves' 'SCRIPT:Wolvesdead' 'type:entity' 'target:wolf' 'qty:10'
- narrate '<Red>Quest Started - <Green>Clear the Road.'
2:
trigger: '/No/, I'm good thanks.'
script:
- chat "No! You're sure you won't reconsider? I must find someone to help me!"
- zap step:1
"QuestRewardArvegachi":
Type: Interact
Requirements:
Mode: All
List:
- script finished 'script:Clear the Road'
- -script finished 'script:QuestRewardArvegachi'
- Flagged 'WolvesKilled:10'
Steps:
1:
Click Trigger:
Script:
- chat "Ah! Have you succeeded? Here, for all your hard work..."
- give <npc.constant[RewardAmount]>
- narrate '<Red>Quest Complete - <Green>Clear the Road'
- finish
"Wolvesdead":
Type: Task
Script:
- narrate "You have killed 10 wolves! Return to Arvegachi to claim your reward!"
- flag WolvesKilled:10