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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
|
Route124_DivingTreasureHuntersHouse_MapScripts:: @ 8270A28
map_script 3, Route124_DivingTreasureHuntersHouse_MapScript1_270A2E
.byte 0
Route124_DivingTreasureHuntersHouse_MapScript1_270A2E: @ 8270A2E
setflag FLAG_LANDMARK_HUNTERS_HOUSE
end
Route124_DivingTreasureHuntersHouse_EventScript_270A32:: @ 8270A32
lock
faceplayer
checkflag FLAG_0x0D9
goto_eq Route124_DivingTreasureHuntersHouse_EventScript_270A4E
msgbox Route124_DivingTreasureHuntersHouse_Text_270F6C, 4
setflag FLAG_0x0D9
goto Route124_DivingTreasureHuntersHouse_EventScript_270A5C
end
Route124_DivingTreasureHuntersHouse_EventScript_270A4E:: @ 8270A4E
msgbox Route124_DivingTreasureHuntersHouse_Text_270FE5, 4
goto Route124_DivingTreasureHuntersHouse_EventScript_270A5C
end
Route124_DivingTreasureHuntersHouse_EventScript_270A5C:: @ 8270A5C
call Route124_DivingTreasureHuntersHouse_EventScript_270A72
compare VAR_0x4001, 0
goto_eq Route124_DivingTreasureHuntersHouse_EventScript_270F57
goto Route124_DivingTreasureHuntersHouse_EventScript_270AD0
end
Route124_DivingTreasureHuntersHouse_EventScript_270A72:: @ 8270A72
setvar VAR_0x4001, 0
checkitem ITEM_RED_SHARD, 1
compare VAR_RESULT, 1
call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_270AB8
checkitem ITEM_YELLOW_SHARD, 1
compare VAR_RESULT, 1
call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_270ABE
checkitem ITEM_BLUE_SHARD, 1
compare VAR_RESULT, 1
call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_270AC4
checkitem ITEM_GREEN_SHARD, 1
compare VAR_RESULT, 1
call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_270ACA
return
Route124_DivingTreasureHuntersHouse_EventScript_270AB8:: @ 8270AB8
addvar VAR_0x4001, 1
return
Route124_DivingTreasureHuntersHouse_EventScript_270ABE:: @ 8270ABE
addvar VAR_0x4001, 2
return
Route124_DivingTreasureHuntersHouse_EventScript_270AC4:: @ 8270AC4
addvar VAR_0x4001, 4
return
Route124_DivingTreasureHuntersHouse_EventScript_270ACA:: @ 8270ACA
addvar VAR_0x4001, 8
return
Route124_DivingTreasureHuntersHouse_EventScript_270AD0:: @ 8270AD0
msgbox Route124_DivingTreasureHuntersHouse_Text_271098, 4
goto Route124_DivingTreasureHuntersHouse_EventScript_270ADE
end
Route124_DivingTreasureHuntersHouse_EventScript_270ADE:: @ 8270ADE
message Route124_DivingTreasureHuntersHouse_Text_271117
waitmessage
switch VAR_0x4001
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270B8F
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270BB5
case 3, Route124_DivingTreasureHuntersHouse_EventScript_270BDB
case 4, Route124_DivingTreasureHuntersHouse_EventScript_270C0C
case 5, Route124_DivingTreasureHuntersHouse_EventScript_270C32
case 6, Route124_DivingTreasureHuntersHouse_EventScript_270C63
case 7, Route124_DivingTreasureHuntersHouse_EventScript_270C94
case 8, Route124_DivingTreasureHuntersHouse_EventScript_270CD0
case 9, Route124_DivingTreasureHuntersHouse_EventScript_270CF6
case 10, Route124_DivingTreasureHuntersHouse_EventScript_270D27
case 11, Route124_DivingTreasureHuntersHouse_EventScript_270D58
case 12, Route124_DivingTreasureHuntersHouse_EventScript_270D94
case 13, Route124_DivingTreasureHuntersHouse_EventScript_270DC5
case 14, Route124_DivingTreasureHuntersHouse_EventScript_270E01
case 15, Route124_DivingTreasureHuntersHouse_EventScript_270E3D
end
Route124_DivingTreasureHuntersHouse_EventScript_270B8F:: @ 8270B8F
multichoice 0, 0, 58, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270BB5:: @ 8270BB5
multichoice 0, 0, 59, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270BDB:: @ 8270BDB
multichoice 0, 0, 60, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270C0C:: @ 8270C0C
multichoice 0, 0, 61, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270C32:: @ 8270C32
multichoice 0, 0, 62, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270C63:: @ 8270C63
multichoice 0, 0, 63, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270C94:: @ 8270C94
multichoice 0, 0, 64, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 3, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270CD0:: @ 8270CD0
multichoice 0, 0, 65, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270CF6:: @ 8270CF6
multichoice 0, 0, 66, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270D27:: @ 8270D27
multichoice 0, 0, 67, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270D58:: @ 8270D58
multichoice 0, 0, 68, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 3, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270D94:: @ 8270D94
multichoice 0, 0, 69, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270DC5:: @ 8270DC5
multichoice 0, 0, 70, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 3, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270E01:: @ 8270E01
multichoice 0, 0, 71, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 3, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270E3D:: @ 8270E3D
multichoice 0, 0, 72, 0
switch VAR_RESULT
case 0, Route124_DivingTreasureHuntersHouse_EventScript_270E84
case 1, Route124_DivingTreasureHuntersHouse_EventScript_270E93
case 2, Route124_DivingTreasureHuntersHouse_EventScript_270EA2
case 3, Route124_DivingTreasureHuntersHouse_EventScript_270EB1
case 4, Route124_DivingTreasureHuntersHouse_EventScript_270F4D
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270E84:: @ 8270E84
setvar VAR_0x8008, 48
setvar VAR_0x8009, 95
goto Route124_DivingTreasureHuntersHouse_EventScript_270EC0
Route124_DivingTreasureHuntersHouse_EventScript_270E93:: @ 8270E93
setvar VAR_0x8008, 50
setvar VAR_0x8009, 96
goto Route124_DivingTreasureHuntersHouse_EventScript_270EC0
Route124_DivingTreasureHuntersHouse_EventScript_270EA2:: @ 8270EA2
setvar VAR_0x8008, 49
setvar VAR_0x8009, 97
goto Route124_DivingTreasureHuntersHouse_EventScript_270EC0
Route124_DivingTreasureHuntersHouse_EventScript_270EB1:: @ 8270EB1
setvar VAR_0x8008, 51
setvar VAR_0x8009, 98
goto Route124_DivingTreasureHuntersHouse_EventScript_270EC0
Route124_DivingTreasureHuntersHouse_EventScript_270EC0:: @ 8270EC0
bufferitemname 0, VAR_0x8008
bufferitemname 1, VAR_0x8009
msgbox Route124_DivingTreasureHuntersHouse_Text_271132, 5
compare VAR_RESULT, 0
goto_eq Route124_DivingTreasureHuntersHouse_EventScript_270F4D
checkitemspace VAR_0x8009, 1
compare VAR_RESULT, 1
goto_eq Route124_DivingTreasureHuntersHouse_EventScript_270F01
checkitem VAR_0x8008, 2
compare VAR_RESULT, 0
goto_eq Route124_DivingTreasureHuntersHouse_EventScript_270F01
goto Route124_DivingTreasureHuntersHouse_EventScript_270F43
end
Route124_DivingTreasureHuntersHouse_EventScript_270F01:: @ 8270F01
takeitem VAR_0x8008, 1
giveitem_std VAR_0x8009
msgbox Route124_DivingTreasureHuntersHouse_Text_271158, 4
call Route124_DivingTreasureHuntersHouse_EventScript_270A72
compare VAR_0x4001, 0
goto_eq Route124_DivingTreasureHuntersHouse_EventScript_270F61
msgbox Route124_DivingTreasureHuntersHouse_Text_27117B, 5
compare VAR_RESULT, 1
goto_eq Route124_DivingTreasureHuntersHouse_EventScript_270ADE
goto Route124_DivingTreasureHuntersHouse_EventScript_270F4D
end
Route124_DivingTreasureHuntersHouse_EventScript_270F43:: @ 8270F43
msgbox Route124_DivingTreasureHuntersHouse_Text_2711A0, 4
release
end
Route124_DivingTreasureHuntersHouse_EventScript_270F4D:: @ 8270F4D
msgbox Route124_DivingTreasureHuntersHouse_Text_2711D8, 4
release
end
Route124_DivingTreasureHuntersHouse_EventScript_270F57:: @ 8270F57
msgbox Route124_DivingTreasureHuntersHouse_Text_271027, 4
release
end
Route124_DivingTreasureHuntersHouse_EventScript_270F61:: @ 8270F61
release
end
Route124_DivingTreasureHuntersHouse_EventScript_270F63:: @ 8270F63
msgbox Route124_DivingTreasureHuntersHouse_Text_271217, 3
end
Route124_DivingTreasureHuntersHouse_Text_270F6C: @ 8270F6C
.string "I’m the DIVING TREASURE HUNTER!\p"
.string "I’m the awesome dude who makes\n"
.string "deep-sea dives to gather treasures\l"
.string "resting at the bottom.$"
Route124_DivingTreasureHuntersHouse_Text_270FE5: @ 8270FE5
.string "Tell me, have you seen any SHARDS of\n"
.string "tools made in ancient times?$"
Route124_DivingTreasureHuntersHouse_Text_271027: @ 8271027
.string "You haven’t got any treasures\n"
.string "for me…\p"
.string "If you see any SHARDS, like the RED\n"
.string "SHARD, you’ve got to trade it with me!$"
Route124_DivingTreasureHuntersHouse_Text_271098: @ 8271098
.string "Oh, hey! That…\n"
.string "That’s a SHARD! I’m looking for those!\p"
.string "Oh, man, you’ve got to trade that\n"
.string "with me! I’ll give you something good!$"
Route124_DivingTreasureHuntersHouse_Text_271117: @ 8271117
.string "What do you want to trade?$"
Route124_DivingTreasureHuntersHouse_Text_271132: @ 8271132
.string "You’ll trade your {STR_VAR_1} for\n"
.string "my {STR_VAR_2}, then?$"
Route124_DivingTreasureHuntersHouse_Text_271158: @ 8271158
.string "It’s a done deal!\n"
.string "Use that wisely!$"
Route124_DivingTreasureHuntersHouse_Text_27117B: @ 827117B
.string "Do you want to trade something else?$"
Route124_DivingTreasureHuntersHouse_Text_2711A0: @ 82711A0
.string "Whoops, your BAG’s full.\n"
.string "Get rid of some items, friend!$"
Route124_DivingTreasureHuntersHouse_Text_2711D8: @ 82711D8
.string "No? That’s a downer.\n"
.string "Well, if you change your mind, come back.$"
Route124_DivingTreasureHuntersHouse_Text_271217: @ 8271217
.string "{CLEAR_TO}{0x0a}Wanted item{CLEAR_TO}{0x7c}Trade item\n"
.string "{CLEAR_TO}{0x0f}RED SHARD{CLEAR_TO}{0x59}{0x7B}{0x7C}{CLEAR_TO}{0x7b}FIRE STONE{CLEAR_TO}{0xc8}\p"
.string "{CLEAR_TO}{0x0a}Wanted item{CLEAR_TO}{0x7c}Trade item\n"
.string "{CLEAR_TO}{0x06}YELLOW SHARD{CLEAR_TO}{0x59}{0x7B}{0x7C}{CLEAR_TO}{0x73}THUNDERSTONE{CLEAR_TO}{0xc8}\p"
.string "{CLEAR_TO}{0x0a}Wanted item{CLEAR_TO}{0x7c}Trade item\n"
.string "{CLEAR_TO}{0x0c}BLUE SHARD{CLEAR_TO}{0x59}{0x7B}{0x7C}{CLEAR_TO}{0x79}WATER STONE{CLEAR_TO}{0xc8}\p"
.string "{CLEAR_TO}{0x0a}Wanted item{CLEAR_TO}{0x7c}Trade item\n"
.string "{CLEAR_TO}{0x08}GREEN SHARD{CLEAR_TO}{0x59}{0x7B}{0x7C}{CLEAR_TO}{0x7b}LEAF STONE$"
|