Date: 2025/05/01 15:19:06 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
shopkeeper_jeelei:
type: assignment
interact scripts:
- jeelei_regular
actions:
on assignment:
- trigger name:click state:true
- trigger name:proximity state:true
- trigger name:chat state:true
- lookclose true range:10 realistic
- rename <dark_green>Jee-Lei<reset>
- execute as_player "loadskin JeeLei" silent
jeelei_regular:
type: interact
steps:
1:
proximity trigger:
entry:
script:
- random:
- narrate "Welcome friend, how may I assist you?" format:chatNPC25
- narrate "Welcome!" format:chatNPC25
- narrate "If you need any supplies, you know where to find me." format:chatNPC25
exit:
script:
- narrate "Farewell!" format:chatNPC25
click trigger:
script:
- random:
- narrate "I may not have potions, but I do have nearly everything else!" format:chatNPC25
- narrate "Have anything you wish to sell? I pay fair prices for certain goods!" format:chatNPC25
- narrate "If you ever need apothecary supplies, talk to my wife Karliah" format:chatNPC25
- narrate "My wife's quite the alchemist. Thanks to her, our potatoes are growing quicker than ever before." format:chatNPC25
- narrate "Perhaps I'll head over to Vadim's tonight..." format:chatNPC25
- narrate "<gray>What would you like to ask <dark_green>Jee-Lei?"
- wait 1
- narrate "<dark_purple>1.<green> <element[<green>What're you selling?].on_click[/denizenclickable chat What're you selling?]>"
- narrate "<dark_purple>2.<green> <element[<green>Tell me about yourself.].on_click[/denizenclickable chat Tell me about yourself.]>"
- narrate "<dark_purple>3.<green> <element[<green>Heard any rumours around the city?].on_click[/denizenclickable chat Heard any rumours around the city?]>"
- narrate "<dark_purple>4.<green> <element[<green>Goodbye.].click_chat[Goodbye.]>"
chat trigger:
1:
trigger: /What're you selling?/
script:
- random:
- narrate "Take a look." format:chatNPC25
- narrate "I sell all manner of essential items." format:chatNPC25
- wait 1
- execute as_server "dtltraders open <player.name> Jee-lei"
2:
trigger: /Tell me about yourself./
script:
- narrate "Well, I run this general store. Mostly by myself but my wife, Karliah, helps occasionally." format:chatNPC25
- wait 0.5
- narrate "My wife is ever so talented, shes an alchemist you see." format:chatNPC25
- wait 0.5
- narrate "Oh dear, there I go again babbling on about her! But can you blame me, I'm a very lucky man." format:chatNPC25
3:
trigger: /Heard any rumours around the city?/
script:
- narrate "Rumours? Ah, you must be one of those adventuring types. I've not heard of any rumours, sorry." format:chatNPC25
- wait 0.5
- if <player.has_flag[JeeleiQuest1:complete]>:
- narrate "I'd give you work, but I am still well stocked from the last time you helped!" format:chatNPC25
- wait 0.5
- narrate "I know <red>Vadim <reset>often has work.. though they may require a strong stomach knowing him." format:chatNPC25
- else:
- narrate "But... I do need a few errands run if you're willing. I'll pay you of course..." format:chatNPC25
- wait 0.5
- narrate "<gray>Do you want to help <dark_green>Jee-Lei?"
- narrate " <element[<green>Yes.].click_chat[Yes.].on_hover[Click to accept the quest!]> <element[<red>No.].click_chat[No.].on_hover[Click to decline the quest!]>"
- zap 2
4:
trigger: /Goodbye./
script:
- narrate "Come back soon!"
2:
proximity trigger:
exit:
script:
- narrate "Oh. I'll take that as a no. But the offer is still on the table if you change your mind." format:chatNPC25
- zap 1
chat trigger:
1:
trigger: /Yes./
script:
- narrate "Excellent!" format:chatNPC25
- wait 0.5
- narrate "I'm running low on a few supplies, I've made a list. Here." format:chatNPC25
- wait 0.5
- narrate "<gold>[25] <italic>* <dark_green><italic>JeeLei<gold><italic> hands you a handwritten list of items *"
- give Jeelei_questbook1
- wait 0.5
- narrate "Come back when you have everything." format:chatNPC25
- wait 2
- narrate "Oh! Don't buy fish from Felrod, he's a con-man through and through!" format:chatNPC25
- zap jeelei_quest1
- flag <player> JeeleiQuest1:1
2:
trigger: /No./
script:
- narrate "Ah, I understand. I'll ask someone else." format:chatNPC25
jeelei_quest1:
proximity trigger:
entry:
script:
- if <player.has_flag[JeeleiQuest1:complete]>:
- narrate "I wanted to thank you for collecting my items, I'm sure Karliah will love the flowers." format:chatNPC25
- zap jeelei_regular
- else:
- stop
- narrate "Ah, its you again." format:chatNPC25
exit:
script:
- narrate "Best of luck looking for my things... I do need them quite soon." format:chatNPC25
click trigger:
script:
- random:
- narrate "I may not have potions, but I do have nearly everything else!" format:chatNPC25
- narrate "Have anything you wish to sell? I pay fair prices for certain goods!" format:chatNPC25
- narrate "If you ever need apothecary supplies, talk to my wife Karliah" format:chatNPC25
- narrate "My wife's quite the alchemist. Thanks to her, our potatoes are growing quicker than ever before." format:chatNPC25
- narrate "Perhaps I'll head over to Vadim's tonight..." format:chatNPC25
- narrate "Welcome back, friend? Here to deliver or do you need supplies?" format:chatNPC25
- narrate "<gray>What would you like to ask <dark_green>Jee-Lei?"
- wait 1
- narrate "<dark_purple>1. <element[<green>What're you selling?].click_chat[What're you selling?]>"
- narrate "<dark_purple>2. <element[<green>I haven't found the items yet...].click_chat[I haven't found the items yet...]>"
- narrate "<dark_purple>3. <element[<green>I'm back with your items!].click_chat[I'm back with your items!]>"
- narrate "<dark_purple>4. <element[<green>I quit. I don't want to help you anymore.].click_chat[I quit. I don't want to help you anymore.]>"
- narrate "<dark_purple>5. <element[<green>Goodbye.].click_chat[Goodbye.]>"
chat trigger:
1:
trigger: /What're you selling?/
script:
- narrate "Take a look, but be quick." format:chatNPC25
- wait 1
- execute as_server "dtltraders open <player.name> Jee-lei"
2:
trigger: /I haven't found the items yet.../
script:
- random:
- narrate "Perhaps you should get back out there hm?" format:chatNPC25
- narrate "I do need them quite soon, you know." format:chatNPC25
- narrate "I trust theres a good reason for that...?" format:chatNPC25
- narrate "I'm not paying you until I recieve my shipment." format:chatNPC25
- narrate "<gray>What would you like to ask <dark_green>Jee-Lei?"
- wait 1
- narrate "<dark_purple>1. <element[<green>I quit. I don't want to help you anymore.].click_chat[I quit. I don't want to help you anymore.]>"
- narrate "<dark_purple>2. <element[<green>Goodbye.].click_chat[Goodbye.]>"
3:
trigger: /I'm back with your items!/
script:
- narrate "Oh! How wonderful!" format:chatNPC25
- wait 1
- narrate "Let's just have a look..." format:chatNPC25
- define mnemoblume <server.flag[nexo.mnemoblume_blossom]>
- if <player.inventory.contains_item[apple].quantity[10]> && <player.inventory.contains_item[wheat].quantity[16]> && <player.inventory.contains_item[cod].quantity[8]> && <player.inventory.contains_item[salmon].quantity[8]> && <player.inventory.contains_item[<[mnemoblume]>].quantity[1]>:
- narrate "<gold>[25] <italic>* <italic><player.display_name><gold><italic> hands Jee-Lei the collected items. *"
- take item:apple quantity:10 from:<player.inventory>
- take item:wheat quantity:16 from:<player.inventory>
- take item:cod quantity:8 from:<player.inventory>
- take item:salmon quantity:8 from:<player.inventory>
- take item:<[mnemoblume]> quantity:1 from:<player.inventory>
- wait 1
- narrate "Wonderful! Wonderful! Here's some Brass for your trouble!" format:chatNPC25
- wait 0.5
- narrate "<gold>[25] <italic>* <dark_green><italic>JeeLei<gold><italic> smiles, thrusting 75 Brass into <player.display_name><gold>'s hand.*"
- money give quantity:75 players:<player>
- wait 1
- narrate "Let me just jot this exchange down in my handy-dandy notebook.." format:chatNPC25
- wait 2
- narrate "My... notebook. Hm. It should be here somewhere!" format:chatNPC25
- wait 1
- narrate "<gold>[25] <italic>* <dark_green><italic>JeeLei<gold><italic> chuckles nervously, patting himself down before shifting papers on the bench. *"
- wait 2.5
- narrate "<gold>[25] <italic>* <dark_green><italic>JeeLei<gold><italic> looks up at <player.display_name><gold>, and gives up on his search. *"
- narrate "I-... I must've dropped it on my travel into Faedrun earlier!" format:chatNPC25
- wait 2
- narrate "Ugh... I have to stay here and tend to my customers!" format:chatNPC25
- wait 1
- narrate "You've already helped me, but would you be willing to retrace my steps and look for my beloved notebook?" format:chatNPC25
- wait 0.5
- narrate "<gray>Do you want to help <dark_green>Jee-Lei?"
- narrate " <element[<green>Yes.].click_chat[Yes.].on_hover[Click to accept the quest!]> <element[<red>No.].click_chat[No.].on_hover[Click to decline the quest!]>"
- zap jeelei_quest2_begin
- flag <player> JeeleiQuest1:!
- else:
- narrate "Oh.. you're missing some items. Please come back when you have everything." format:chatNPC25
4:
trigger: /I quit. I don't want to help you anymore./
script:
- random:
- narrate "Ugh! Now you've wasted my time and yours!" format:chatNPC25
- narrate "I'll have to get them myself. Thanks for nothing." format:chatNPC25
- narrate "...I understand and I'm disappointed." format:chatNPC25
- zap jeelei_regular 1
- flag <player> JeeleiQuest1:!
5:
trigger: /Goodbye./
script:
- narrate "Goodbye, do hurry back." format:chatNPC25
jeelei_quest2_begin:
proximity trigger:
entry:
script:
- narrate "Oh! Its you again! Have you come to help me find my journal?" format:chatNPC25
exit:
script:
- narrate "Farewell.. please reconsider." format:chatNPC25
chat trigger:
1:
trigger: /Yes./
script:
- narrate "Oh thank the gods! You are a gift, my friend!" format:chatNPC25
- wait 0.5
- narrate "stuff happens" format:chatNPC25
- wait 0.5
- narrate "resetting quest for now tho" format:chatNPC25
- zap jeelei_regular
- flag <player> JeeleiQuest2
2:
trigger: /No./
script:
- narrate "Ah, I understand. I'll ask someone else." format:chatNPC25
- wait 0.5
- narrate "stuff happens" format:chatNPC25
- wait 0.5
- narrate "resetting quest for now tho" format:chatNPC25
- zap jeelei_regular
click trigger:
script:
- zap jeelei_regular
Jeelei_questbook1:
type: book
# The 'custom name' can be anything you wish.
# | All book scripts MUST have this key!
title: <dark_green>Jee-Lei's <gray>Supply List
# The 'custom name' can be anything you wish.
# | All book scripts MUST have this key!
author: <dark_green>Jee-Lei
# Defaults to true. Set to false to spawn a 'book and quill' instead of a 'written book'.
# | Some book scripts might have this key!
signed: true
text:
- <dark_green><italic>Jee-Lei's <gray><italic>Supply List <n><n><dark_gray>1. 10x Apples<n>2. 16x Wheat Bushels<n>3. 8x Raw Cod<n>4. 8x Raw Salmon<n>5. 1x Mnemoblume Blossom<n><n>The Mnemoblume is found somewhere blah blah
mnem:
type: command
name: cap
description: mnem
usage: /mnem
script:
- define mnemoblume <server.flag[nexo:mnemoblume_blossom]>
- if <player.inventory.contains_item[<[mnemoblume]>].quantity[1]>:
- narrate "yes"