Date: 2016/04/17 18:46:44 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
#Main Quest Giver -npc 19 Test2
Dhanri:
type: assignment
actions:
on assignment:
- trigger proximity state:true radius:20
on enter proximity:
- if <player.flag[NoPlaceLikeHomeCounter]> != complete && <player.has_flag[HasHome||HasTown]> {
- execute as_server "quest npc turnin <npc.id> <player.name>"
}
on click:
- if <player.flag[FromTheDarknessCounter]> != complete {
- if !<player.has_flag[FromTheDarknessCounter]> {
- flag player engaged
- narrate format:chat "You should go talk to Moralleath in the cave, newcomer."
- waits 2s
- flag player engaged:!
- queue clear
}
- inject locally path:FromTheDarkness
}
else if <player.flag[NoPlaceLikeHomeCounter]> != complete {
- if <player.has_flag[HasHome]> {
- flag player NoPlaceLikeHomeCounter:3
}
- if <player.has_flag[HasTown]> {
- flag player NoPlaceLikeHomeCounter:3
}
- inject locally path:NoPlaceLikeHome
}
else if <player.flag[FirstAidCounter]> != complete {
- inject locally path:FirstAid
}
else if <player.flag[DownTheRabbitHoleCounter]> != complete {
- inject locally path:DownTheRabbitHole
}
else {
- inject locally path:PassiveDialogue
}
FromTheDarkness:
- choose <player.flag[FromTheDarknessCounter]||0>:
- case 0:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "Hey, I've seen you around here before."
- wait 3s
- narrate format:chat "I hope you've been doing well. If you want something to do, let me know."
- flag player FromTheDarknessCounter:complete
- flag player engaged:!
}
- case 1:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "Greetings traveler. It is nice to meet you. I am Dhanri."
- wait 4s
- narrate format:chat "Moralleath sent you? So you came from the caves too then?"
- wait 5s
- narrate format:chat "No worries. You are not the first and likely will not be the last."
- execute as_server "quest complete <player.name> &3&lFrom_the_Darkness -text I emerged from the dark cave and met &6Dhanri&r in Aladra."
- execute as_server "quest npc available <npc.id> <player.name>"
- flag player FromTheDarknessCounter:complete
- flag player engaged:!
}
NoPlaceLikeHome:
- choose <player.flag[NoPlaceLikeHomeCounter]||0>:
- case 0:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "You look as though you've been traveling for some time."
- wait 4s
- narrate format:chat "How about we get you straight to a place you can call home."
- wait 4s
- narrate format:chat "Go speak to one of the dockmasters to choose a continent!"
- wait 4s
- narrate format:chat "Once you choose your continent just take the boat and talk to the dockmaster on the other side!"
- wait 4s
- execute as_server "quest accept <player.name> <npc.id> &3&lNo_Place_Like_Home -hint &6Dhanri&r wants me to speak to a Dockmaster in Aladra and travel to one of the continents."
- execute as_server "quest npc inprogress <npc.id> <player.name>"
- wait 1s
- execute as_server "quest npc turnin 43 <player.name>"
- wait 1s
- execute as_server "quest npc turnin 45 <player.name>"
- wait 1s
- execute as_server "quest npc turnin 46 <player.name>"
- flag player NoPlaceLikeHomeCounter:1
- flag player engaged:!
}
- case 1:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "Have you settled in somewhere yet?"
- wait 3s
- narrate format:chat "Each continent has something to offer. Come see me when you're settled."
- wait 5s
- narrate format:tip "Use a boat at spawn's dock to visit a continent and speak to the Dockmaster on the other side."
- flag player engaged:!
}
- case 2:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "I received word that you spoke to one of our Dockmasters on another continent."
- wait 3s
- narrate format:chat "It seems you still have not settled in anywhere yet."
- wait 3s
- narrate format:chat "Return to me when you've found a place to call home."
- wait 3s
- narrate format:tip "Use /sethome while on a continent of your choice."
- flag player engaged:!
}
- case 3:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "It's nice to see people like yourself settled in around here!"
- wait 3s
- narrate format:chat "I hope you know you've always got a home in our world!"
- wait 4s
- execute as_server "quest complete <player.name> &3&lNo_Place_Like_Home -text I have chosen a place to call home!"
- execute as_server "qust npc available <npc.id> <player.name>"
- wait 1s
- execute as_server "quest npc hide 43 <player.name>"
- wait 1s
- execute as_server "quest npc hide 45 <player.name>"
- wait 1s
- execute as_server "quest npc hide 46 <player.name>"
- wait 3s
- execute as_server "achievement <player.name> pve finishaladra"
- flag player NoPlaceLikeHomeCounter:complete
- flag player IntroQuestCompletion
- flag player engaged:!
}
FirstAid:
- choose <player.flag[FirstAidCounter]||0>:
- case 0:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "Well, if you'd like to help out around here then there is plenty to do."
- wait 5s
- narrate format:chat "Go talk to Kaurii. I'm told she's looking for help but I'm unsure what for."
- wait 5s
- narrate format:narrate "Dhanri points to the house directly North of where he stands."
- wait 1s
- execute as_server "quest accept <player.name> <npc.id> &3&lFirst_Aid -hint &6Dhanri&r wants me to help &6Kaurii&r with her task before I do anything else."
- execute as_server "quest npc inprogress <npc.id> <player.name>"
- execute as_server "quest npc turnin 11 <player.name>"
- flag player FirstAidCounter:1
- flag player ArtifactQuestCounter:0
- flag player engaged:!
}
- case 1:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- random {
- narrate format:chat "How is the progress with helping Kaurii?"
- narrate format:chat "I hope whatever Kaurii needs is not too taxing."
- narrate format:chat "What does Kaurii need? I hope you are done soon."
}
- wait 3s
- narrate format:chat "As soon as you are finished helping her then I may have my own favor to ask."
- flag player engaged:!
}
- case 2:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "You've finished with Kaurii eh? I knew you'd be a big help!"
- wait 3s
- execute as_server "quest complete <player.name> &3&lFirst_Aid -text I have successfully helped &6Kaurii&r with her task as &6Dhanri&r requested."
- execute as_server "quest npc available <npc.id> <player.name>"
- flag player FirstAidCounter:complete
- flag player engaged:!
}
DownTheRabbitHole:
- choose <player.flag[DownTheRabbitHoleCounter]||0>:
- case 0:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "I hope you're ready for more, <player.name>, because now I need a favor."
- wait 5s
- narrate format:chat "Derinus, one of our researchers, has been gone for weeks. I need you to check on him."
- wait 4s
- narrate format:chat " It's a cave up off the coastline. Go about fifty meters south of the Windmill and head East."
- wait 5s
- narrate format:chat "The entrance is on the other side of the ridge."
- execute as_server "quest accept <player.name> <npc.id> &3&lDown_The_Rabbit_Hole -hint I need to check on &6Derinus&r. He is in a cave East-Southeast of town near the coast."
- execute as_server "quest npc inprogress <npc.id> <player.name>"
- execute as_server "quest npc turnin 27 <player.name>"
- flag player DownTheRabbitHoleCounter:1
- flag player engaged:!
}
- case 1:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- random {
- narrate format:chat "I hope that poor fool is alright. He never checks in."
- narrate format:chat "Derinus is a great geologist. His research is important."
- narrate format:chat "I'm hoping Derinus's research will help fix the knife."
- narrate format:chat "Let me know as soon as you have information about Derinus."
}
- flag player engaged:!
}
- case 2:
- if <player.has_flag[engaged]> {
- queue clear
}
else {
- flag player engaged
- narrate format:chat "That look on your face. You look like you have news. You do, yes?"
- wait 4s
- narrate format:narrate "You update Dhanri and give him the research notes."
- take item:DerinusNotes
- wait 4s
- narrate format:chat "I cannot thank you enough. This isn't what I had hoped for but it will do!"
- execute as_server "quest complete <player.name> &3&lDown_The_Rabbit_Hole -text I checked in on &6Derinus&r and retrieved his research for &6Dhanri&r."
- execute as_server "quest npc hide <npc.id> <player.name>"
- wait 2s
- flag player DownTheRabbitHoleCounter:complete
- flag player engaged:!
}
#else {
# - flag player engaged
# - narrate format:narrate "You begin to update Dhanri but realize you don't have Derinus's Notes."
# - wait 4s
# - narrate format:narrate "Return to Derinus if you have lost your copy of his notes."
# - flag player engaged:!
#}
PassiveDialogue:
- choose <player.flag[PassiveDialogueCounter]||0>:
- case 0:
- if <player.has_flag[engaged]> {
- queue clear
}
else if <player.flag[TownAndCountryCounter]> != complete {
- flag player engaged
- random {
- narrate format:chat "People here respect Asair and his engineering. You should go see him."
- narrate format:chat "Aladra's Engineer, Asair, is very skilled. You'll want to go see what he has to teach you."
- narrate format:chat "You'll be more use to folks if you're as skilled as Asair. I advise speaking with him."
- narrate format:chat "Slicers here like to see you have the proper knowledge. You'll need to see Asair for that."
}
- wait 4s
- narrate format:narrate "Dhanri points to the house East-Northeast of where he stands."
- flag player engaged:!
}
else {
- flag player engaged
- random {
- narrate format:chat "Everyone here is a Slicer, stranded after our last attempt to travel with the Knife."
- narrate format:chat "Many of us around here need assistance. It is hard to get by alone."
- narrate format:chat "The lands here are quite gorgeous, but I fear we may never see our native home again."
- narrate format:chat "I hope all is well with you, <player.name>. I know you've been a big help to me."
}
- flag player engaged:!
}