-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bl A Fileio.h
571 lines (555 loc) · 36 KB
/
Bl A Fileio.h
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
// Bl A Fileio.h for the scenario Shadow of the Stranger
// This file contains information specific to the scenario being ported.
// The intention is to eventually replace this header file with an external file that is loaded at run-time and can be edited by the user.
#pragma once
char *BOAPortOutScriptnames[100] = {
"o00ParchedWas","o10CentralWit","o20Wittenberg","o01ParchedWas","o11SouthWitte",
"o21HighMounts","o02ParchedWas","o12DesolateIs","o22EmpireCapl",
"o09Outdscript","o10Outdscript","o11Outdscript","o12Outdscript",
"o13Outdscript","o14Outdscript","o15Outdscript","o16Outdscript","o17Outdscript",
"o18Outdscript","o19Outdscript","o20Outdscript","o21Outdscript","o22Outdscript",
"o23Outdscript","o24Outdscript","o25Outdscript","o26Outdscript","o27Outdscript",
"o28Outdscript","o29Outdscript","o30Outdscript","o31Outdscript","o32Outdscript",
"o33Outdscript","o34Outdscript","o35Outdscript","o36Outdscript","o37Outdscript",
"o38Outdscript","o39Outdscript","o40Outdscript","o41Outdscript","o42Outdscript",
"o43Outdscript","o44Outdscript","o45Outdscript","o46Outdscript","o47Outdscript",
"o48Outdscript","o49Outdscript","o50Outdscript","o51Outdscript","o52Outdscript",
"o53Outdscript","o54Outdscript","o55Outdscript","o56Outdscript","o57Outdscript",
"o58Outdscript","o59Outdscript","o60Outdscript","o61Outdscript","o62Outdscript",
"o63Outdscript","o64Outdscript","o65Outdscript","o66Outdscript","o67Outdscript",
"o68Outdscript","o69Outdscript","o70Outdscript","o71Outdscript","o72Outdscript",
"o73Outdscript","o74Outdscript","o75Outdscript","o76Outdscript","o77Outdscript",
"o78Outdscript","o79Outdscript","o80Outdscript","o81Outdscript","o82Outdscript",
"o83Outdscript","o84Outdscript","o85Outdscript","o86Outdscript","o87Outdscript",
"o88Outdscript","o89Outdscript","o90Outdscript","o91Outdscript","o92Outdscript",
"o93Outdscript","o94Outdscript","o95Outdscript","o96Outdscript","o97Outdscript",
"o98Outdscript","o99Outdscript"};
char *BOAPortOutnames[100] = {
"Parched Wasteland","Central Wittenberg","Wittenberg Valley","Parched Wasteland",
"Southern Wittenberg","High in Mountains","Parched Wasteland","Desolate Island","Empire Capital",
"o09Outdoorzone name","o10Outdoorzone name",
"o11Outdoorzone name","o12Outdoorzone name","o13Outdoorzone name","o14Outdoorzone name",
"o15Outdoorzone name","o16Outdoorzone name","o17Outdoorzone name","o18Outdoorzone name",
"o19Outdoorzone name","o20Outdoorzone name","o21Outdoorzone name","o22Outdoorzone name",
"o23Outdoorzone name","o24Outdoorzone name","o25Outdoorzone name","o26Outdoorzone name",
"o27Outdoorzone name","o28Outdoorzone name","o29Outdoorzone name","o30Outdoorzone name",
"o31Outdoorzone name","o32Outdoorzone name","o33Outdoorzone name","o34Outdoorzone name",
"o35Outdoorzone name","o36Outdoorzone name","o37Outdoorzone name","o38Outdoorzone name",
"o39Outdoorzone name","o40Outdoorzone name","o41Outdoorzone name","o42Outdoorzone name",
"o43Outdoorzone name","o44Outdoorzone name","o45Outdoorzone name","o46Outdoorzone name",
"o47Outdoorzone name","o48Outdoorzone name","o49Outdoorzone name","o50Outdoorzone name",
"o51Outdoorzone name","o52Outdoorzone name","o53Outdoorzone name","o54Outdoorzone name",
"o55Outdoorzone name","o56Outdoorzone name","o57Outdoorzone name","o58Outdoorzone name",
"o59Outdoorzone name","o60Outdoorzone name","o61Outdoorzone name","o62Outdoorzone name",
"o63Outdoorzone name","o64Outdoorzone name","o65Outdoorzone name","o66Outdoorzone name",
"o67Outdoorzone name","o68Outdoorzone name","o69Outdoorzone name","o70Outdoorzone name",
"o71Outdoorzone name","o72Outdoorzone name","o73Outdoorzone name","o74Outdoorzone name",
"o75Outdoorzone name","o76Outdoorzone name","o77Outdoorzone name","o78Outdoorzone name",
"o79Outdoorzone name","o80Outdoorzone name","o81Outdoorzone name","o82Outdoorzone name",
"o83Outdoorzone name","o84Outdoorzone name","o85Outdoorzone name","o86Outdoorzone name",
"o87Outdoorzone name","o88Outdoorzone name","o89Outdoorzone name","o90Outdoorzone name",
"o91Outdoorzone name","o92Outdoorzone name","o93Outdoorzone name","o94Outdoorzone name",
"o95Outdoorzone name","o96Outdoorzone name","o97Outdoorzone name","o98Outdoorzone name",
"o99Outdoorzone name"};
char *BOAPortTownScriptnames[200] = {
"t00Dreamland","t01Bobling","t02Bobling","t03EmpireCamp","t04EmpireCamp","t05GloomyCave",
"t06FoggyDepth","t07SecludeHut","t08SecludeHut","t09Cellar","t10BrotherOut","t11Weilim","t12Weilim",
"t13WeilimUps","t14WeilimUps","t15Schernbuk","t16Schernbuk","t17RuinedOut","t18Darkness",
"t19GarbagePit","t20WizardHome","t21SecretHide","t22EmpireFort","t23EmpireFort","t24FishingHut",
"t25UhOh","t26BoatLandin","t27Stronghold","t28HiddenGrov","t29SmallCave","t30FoggyRuins",
"t31DarkTunnel","t32ReceptHall","t33PleasGlade","t34DarkCellar","t35Ruins","t36SandyPlat",
"t37OnTopWorld","t38EmpireCapl","t39EmpireCapl","t40SkirnPalac","t41BaazulLair","t42RuinedHide",
"t43RuinedHide","t44SkirnPalac","t45Stronghold","t46Graveyard","t47Graveyard","t48Home",
"t49Garlvavish","t50TheAbyss","t51GrandTempl","t52Molidax","t53Genmar","t54BriefArea","t55HiddGrotto","t56MushroomCv","t57ColdCavern","t58TheMount","t59ForeTunnel",
"t60VarnotLair","t61CastleGen","t62MysterCave","t63TheBattle","t64TheBattle","t65TheCave","t66RefugeCamp","t67GobGrotto","t68SerpentCov","t69Evergreen",
"t70SlithFort","t71Genmar","t72BriefArea","t73HobgobFort","t74TrashPit","t75Bridge","t76Molidax","t77TrollCave","t78Calderwood","t79FaeTemple",
"t80SmallHut","t81Checkpoint","t82MountPass","t83Thasmaskon","t84TowerofH","t85HDungeon","t86NebGrotto","t87ChillyCave","t88AbanShack","t89Genmar",
"t90BriefArea","t91Molidax","t92Molidax","t93Evergreen","t94Caldiris","t95FaeTemple","t96Calderwood","t97Calderwood","t98GrandTempl","t99Checkpoint",
"t100Townscrip","t101Townscrip","t102Townscrip","t103Townscrip","t104Townscrip",
"t105Townscrip","t106Townscrip","t107Townscrip","t108Townscrip","t109Townscrip","t110Townscrip",
"t111Townscrip","t112Townscrip","t113Townscrip","t114Townscrip","t115Townscrip","t116Townscrip",
"t117Townscrip","t118Townscrip","t119Townscrip","t120Townscrip","t121Townscrip","t122Townscrip",
"t123Townscrip","t124Townscrip","t125Townscrip","t126Townscrip","t127Townscrip","t128Townscrip",
"t129Townscrip","t130Townscrip","t131Townscrip","t132Townscrip","t133Townscrip","t134Townscrip",
"t135Townscrip","t136Townscrip","t137Townscrip","t138Townscrip","t139Townscrip","t140Townscrip",
"t141Townscrip","t142Townscrip","t143Townscrip","t144Townscrip","t145Townscrip","t146Townscrip",
"t147Townscrip","t148Townscrip","t149Townscrip","t150Townscrip","t151Townscrip","t152Townscrip",
"t153Townscrip","t154Townscrip","t155Townscrip","t156Townscrip","t157Townscrip","t158Townscrip",
"t159Townscrip","t160Townscrip","t161Townscrip","t162Townscrip","t163Townscrip","t164Townscrip",
"t165Townscrip","t166Townscrip","t167Townscrip","t168Townscrip","t169Townscrip","t170Townscrip",
"t171Townscrip","t172Townscrip","t173Townscrip","t174Townscrip","t175Townscrip","t176Townscrip",
"t177Townscrip","t178Townscrip","t179Townscrip","t180Townscrip","t181Townscrip","t182Townscrip",
"t183Townscrip","t184Townscrip","t185Townscrip","t186Townscrip","t187Townscrip","t188Townscrip",
"t189Townscrip","t190Townscrip","t191Townscrip","t192Townscrip","t193Townscrip","t194Townscrip",
"t195Townscrip","t196Townscrip","t197Townscrip","t198Townscrip","t199Townscrip"};
char *BOAPortTownnames[200] = {
"Home","Bobling","Bobling","Empire Camp","Empire Camp","Gloomy Cave","Foggy Depths","Secluded Hut",
"Secluded Hut","Cellar","Brotherhood Outpost","Weilim","Weilim","Weilim Upstairs","Weilim Upstairs",
"Schernbuk","Schernbuk","Ruined Outpost","Darkness!","Garbage Pit","Wizard's Home","Secret Hideout",
"Empire Fort","Empire Fort","Fishing Hut","Uh Oh","Boat Landing","Stronghold Dungeon","Hidden Grove",
"Small Cave","Foggy Ruins","Dark Tunnels","Reception Hall","Pleasant Glade","Dark Cellar","Ruins",
"Sandy Plateau","On Top Of The World","Empire Capital","Empire Capital","Skirn's Palace L-1","Baazul's Lair",
"Ruined Hideout","Ruined Hideout","Skirn's Palace L-2","The Stronghold","Graveyard","Graveyard","Home",
"Garlvavish","The Abyss","Grand Temple","Molidax","Genmar","Briefing Area","Hidden Grotto","Mushroom Cave","Cold Cavern","The Mountain","Foreboding Tunnel",
"Varnoth's Lair","Castle Genmar","Mysterious Cavern","The Battlefield","The Battlefield","The Cave","Refugee Camp","Goblin Grotto","Serpent Cove","Evergreen",
"Slith Fort","Genmar","Briefing Area","Hobgoblin Fort","Trash Pit","Bridge","Molidax","Troll Cave","Calderwood","Faerie Temple",
"Small Hut","Checkpoint","Mountain Pass","Thasmaskon","Tower of Heraclitus","Heraclitus Dungeon","Nebulous Grotto","Chilly Cavern","Abandoned Shack","Genmar",
"Briefing Area","Molidax","Molidax","Evergreen","Caldiris","Faerie Temple","Calderwood","Calderwood","Grand Temple","Checkpoint",
"t100Town name (BoA)","t101Town name (BoA)",
"t102Town name (BoA)","t103Town name (BoA)","t104Town name (BoA)","t105Town name (BoA)",
"t106Town name (BoA)","t107Town name (BoA)","t108Town name (BoA)","t109Town name (BoA)",
"t110Town name (BoA)","t111Town name (BoA)","t112Town name (BoA)","t113Town name (BoA)",
"t114Town name (BoA)","t115Town name (BoA)","t116Town name (BoA)","t117Town name (BoA)",
"t118Town name (BoA)","t119Town name (BoA)","t120Town name (BoA)","t121Town name (BoA)",
"t122Town name (BoA)","t123Town name (BoA)","t124Town name (BoA)","t125Town name (BoA)",
"t126Town name (BoA)","t127Town name (BoA)","t128Town name (BoA)","t129Town name (BoA)",
"t130Town name (BoA)","t131Town name (BoA)","t132Town name (BoA)","t133Town name (BoA)",
"t134Town name (BoA)","t135Town name (BoA)","t136Town name (BoA)","t137Town name (BoA)",
"t138Town name (BoA)","t139Town name (BoA)","t140Town name (BoA)","t141Town name (BoA)",
"t142Town name (BoA)","t143Town name (BoA)","t144Town name (BoA)","t145Town name (BoA)",
"t146Town name (BoA)","t147Town name (BoA)","t148Town name (BoA)","t149Town name (BoA)",
"t150Town name (BoA)","t151Town name (BoA)","t152Town name (BoA)","t153Town name (BoA)",
"t154Town name (BoA)","t155Town name (BoA)","t156Town name (BoA)","t157Town name (BoA)",
"t158Town name (BoA)","t159Town name (BoA)","t160Town name (BoA)","t161Town name (BoA)",
"t162Town name (BoA)","t163Town name (BoA)","t164Town name (BoA)","t165Town name (BoA)",
"t166Town name (BoA)","t167Town name (BoA)","t168Town name (BoA)","t169Town name (BoA)",
"t170Town name (BoA)","t171Town name (BoA)","t172Town name (BoA)","t173Town name (BoA)",
"t174Town name (BoA)","t175Town name (BoA)","t176Town name (BoA)","t177Town name (BoA)",
"t178Town name (BoA)","t179Town name (BoA)","t180Town name (BoA)","t181Town name (BoA)",
"t182Town name (BoA)","t183Town name (BoA)","t184Town name (BoA)","t185Town name (BoA)",
"t186Town name (BoA)","t187Town name (BoA)","t188Town name (BoA)","t189Town name (BoA)",
"t190Town name (BoA)","t191Town name (BoA)","t192Town name (BoA)","t193Town name (BoA)",
"t194Town name (BoA)","t195Town name (BoA)","t196Town name (BoA)","t197Town name (BoA)",
"t198Town name (BoA)","t199Town name (BoA)"};
// 1 secret door
// 2 door
// 3 locked door
// 4 m locked door
// 5 impass door
// 6 open door
// 7 closed gate
// 8 open gate
// 9 Sign and wall
// 10 cracked
// 11 wall
// 12 window
// 13 generic floor/terrain
// 14 bridge
// 15 road
// 16 town entrance
short old_ter_variety[256] = { // Updated
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,14,14,14,14,14,14,13,14,14,13,
13,13,13,13,15,15,15,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,11,2,6,13,13,12,9,11,13,13,13,13,16,
13,13,13,11,11,1,1,2,3,11,11,6,7,8,9,
10,13,13,12,11,1,1,2,13,4,13,6,7,8,9,
10,13,13,11,12,13,13,13,13,13,13,13,13,13,11,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,16,16,13,13,13,13,
16,16,16,16,13,13,13,13,16,13,13,13,13,13,13,
13
};
short old_monst_to_new[256] = {
0,1,74,76,78,2,75,77,
79,86,184,3,4,6,5,131,
20,175,7,8,132,10,11,12,
88,13,89,14,15,16,105,17,
82,81,18,19,133,187,21,134,
22,23,24,25,26,32,33,34,
35,36,37,85,182,38,39,40,
41,135,42,136,43,48,44,45,
137,46,47,138,87,49,139,140,
51,52,141,50,142,143,53,54,
72,144,56,58,59,60,95,61,
145,146,148,149,150,151,152,153,
154,155,156,62,63,64,93,84,
90,185,66,157,67,80,186,68,
188,189,190,191,192,193,69,70,
130,91,99,158,55,120,121,166,
167,168,159,160,169,170,171,172,
173,174,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,101,161,162,163,164,65,94,
129,102,103,128,9,194,27,28,
29,30,31,57,71,73,83,92,
96,97,98,100,104,106,107,108,
109,110,111,112,113,114,115,116,
117,118,119,122,123,124,125,126,
127,147,165,176,177,178,179,180,
181,183,234,235,236,237,238,239,
240,241,242,243,244,245,246,247,
248,249,250,251,252,253,254,255
};
short old_ter_to_floor[256] = {
170,171,37,39,38,175,176,177,
178,179,180,181,182,183,184,185,
186,187,188,189,190,191,41,41,
41,41,41,41,41,41,41,41,
41,41,41,41,154,156,157,158,
159,160,161,162,163,164,165,166,
167,168,57,65,68,59,67,61,
70,63,69,64,62,60,66,23,
23,63,23,59,61,23,65,58,
58,58,58,79,80,58,0,0,
37,154,123,123,0,0,0,37,
37,37,71,0,0,0,0,0,
75,0,0,43,154,0,0,37,
37,234,37,37,37,37,37,77,
37,37,37,37,37,210,37,37,
37,37,142,142,142,142,142,142,
142,142,142,142,146,88,37,0,
146,125,95,95,95,95,95,95,
95,95,95,95,95,95,95,95,
95,95,95,95,95,95,95,95,
95,95,95,95,95,95,95,95,
95,95,95,129,94,95,146,95,
95,95,95,95,95,146,95,37,
234,95,95,95,146,146,146,95,
95,95,95,95,95,95,95,95,
146,95,95,95,95,95,95,95,
95,95,146,95,95,95,95,95,
92,93,93,93,93,93,93,95,
95,95,232,232,216,217,218,219,
220,221,37,37,222,223,224,225,
37,234,234,37,230,231,0,95,
37,95,37,41,226,227,228,229
};
short old_ter_to_ter[256] = {
0,141,0,0,0,0,38,54,
0,39,55,0,40,56,0,41,
57,0,45,44,43,42,0,0,
446,447,440,441,442,443,444,445,
451,450,449,448,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,301,
300,298,298,298,299,299,299,0,
299,298,300,0,0,336,268,410,
410,410,0,0,155,156,155,157,
158,157,0,147,148,141,142,285,
0,167,166,0,0,200,269,280,
424,126,0,394,209,288,126,0,
151,152,153,144,156,0,283,170,
171,214,0,0,0,0,0,0,
0,0,0,0,462,0,0,0,
463,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,464,229,
289,257,293,258,258,465,242,407,
0,222,217,224,466,467,468,234,
269,276,202,225,226,227,228,206,
469,238,248,277,188,189,189,188,
374,375,470,471,472,473,474,475,
0,0,0,0,0,0,0,335,
357,0,0,0,0,0,0,0,
0,0,329,305,0,0,0,0,
334,166,167,288,0,0,454,454,
0,0,454,454,0,0,0,0
};
short old_item_to_new_item[400] = {
3,8,12,5,8,146,20,21,
18,19,22,114,114,163,168,165,
151,170,171,172,475,475,476,192,
191,196,197,109,109,109,385,477,
478,479,480,481,482,483,453,454,
455,456,457,471,472,484,485,486,
487,488,489,490,491,100,477,492,
378,198,169,404,79,216,378,46,
47,52,57,57,67,57,57,57,
62,57,77,62,62,48,53,58,
58,68,58,58,58,63,73,78,
63,63,458,192,109,215,217,443,
431,381,384,459,464,462,473,100,
101,105,106,460,90,91,92,96,
97,470,315,93,98,103,108,467,
466,463,264,265,266,452,267,268,
188,451,27,32,37,42,28,33,
38,43,38,465,38,493,494,123,
316,127,128,132,132,133,8,124,
129,134,428,137,137,138,137,141,
142,143,144,144,317,323,324,322,
325,174,175,176,220,220,228,395,
205,204,318,319,250,326,326,262,
236,395,234,247,247,435,436,437,
167,245,245,292,244,247,244,247,
246,248,254,254,246,445,257,227,
245,255,214,236,238,239,243,205,
204,140,356,357,358,359,386,201,
202,420,360,361,362,363,364,365,
115,366,367,368,113,421,422,423,
424,425,426,427,474,130,229,228,
231,230,233,234,236,221,220,223,
230,225,226,236,221,220,223,222,
225,226,236,237,395,242,243,243,
237,352,352,352,353,354,352,352,
441,89,88,282,286,282,301,284,
286,293,289,242,293,304,276,281,
278,301,208,292,304,276,275,272,
301,207,293,304,270,275,272,301,
206,291,430,279,432,433,434,304,
307,302,305,272,286,212,211,425,
293,271,311,305,211,436,420,240,
241,390,231,282,343,342,351,346,
369,344,348,347,301,294,438,320,
224,433,273,306,284,287,440,429,
461,53,280,215,214,215,216,216,
217,218,219,69,54,54,59,44,
125,54,269,74,389,388,442,108,
468,353,469,469,355,215,214,215,
216,216,217,218,29,34,39,466
};
char BOAPortOutWriteallow[100] = {
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1
};
char BOAPortTownWriteallow[200] = {
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1
};
short old_potion_to_new[20] = {
1,0,-1,2,-1,7,1,8,5,3,-1,-1,7,-1,6,9,16,11,12,9
};
short old_stat_to_new[19] = {
0,1,2,4,4,5,7,6,9,11,12,13,14,41,15,15,10,10,18
};
char *old_blades_personality_names[2000] = {
"Alien Beast","Sleeping Person","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Samuel","Townsman","Townswoman","Soldier","Townsperson","Innkeeper","Eltus","Innkeeper","Max","Strange Mage",
"Samuel","Townsman","Townswoman","Soldier","Townsperson","Innkeeper","Eltus","Innkeeper","Max","Strange Mage",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Spirit","Spirit","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Goe-Maethen","Gwennyth","Goe-Maethen","Gwennyth","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Gwennyth","Goe-Maethen","Gwennyth","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Drizzt","Welstich","Thar","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Maltus","Corinne","Jacob","Nathaniel","Kelmar","Ellis","Bob","Leras","Hezzor","Townsperson",
"Guard","Office Clerk","Official","Dels","Unused","Townsperson","Guard","Sleeping Imp","Unused","Unused",
"Mayor's Guard","Camteron","Townsperson","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Sneed","Hank","Yastar","Elizam","Katrin","Lothar","Vogel","Kendrick","Townsperson","Merchant",
"Town guard","Claire","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Gelataneous Cube","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Kendrick","Small lizard","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Guard","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Alien Beast","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Hermit","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Minion","Soulless","The Traveler","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Empress Prazac","Anders","Deline","Official","The Stranger","Unused","Unused","Unused","Unused","Unused",
"Boy","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"The Stranger","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Dracin","Guard","Zaleb","Tapper","Cook","Adelaide","Soldier","Townsperson","Priest","Townsperson",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Welcome Demon","Baazul","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
"Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused","Unused",
};