72 {
MAP_STEADWICK, { 1, 0, 1, 0, 1, 0, 0 }, 2, -18048, 4636, 833, 1536, 0 },
73 {
MAP_PIERPONT, { 0, 1, 0, 1, 0, 1, 0 }, 2, -2527, -6773, 1153, 896, 0 },
74 {
MAP_TATALIA, { 1, 0, 1, 0, 1, 0, 0 }, 2, 4730, -10580, 320, 1024, 0 },
75 {
MAP_HARMONDALE, { 0, 1, 0, 1, 0, 1, 0 }, 2, -5692, 11137, 1, 1024, 0 },
76 {
MAP_DEYJA, { 1, 0, 0, 1, 0, 0, 0 }, 3, 7227, -16007, 2625, 640, 0 },
77 {
MAP_BRAKADA_DESERT, { 0, 0, 1, 0, 0, 1, 0 }, 3, 8923, 17191, 1, 512, 0 },
78 {
MAP_AVLEE, { 1, 0, 1, 0, 1, 0, 0 }, 3, 17059, 12331, 512, 1152, 0 },
79 {
MAP_DEYJA, { 0, 1, 0, 0, 1, 0, 1 }, 2, 7227, -16007, 2625, 640, 0 },
80 {
MAP_HARMONDALE, { 0, 1, 0, 1, 0, 1, 0 }, 2, -5692, 11137, 1, 1024, 0 },
81 {
MAP_STEADWICK, { 1, 0, 1, 0, 1, 0, 0 }, 3, -18048, 4636, 833, 1536, 0 },
82 {
MAP_PIERPONT, { 0, 1, 0, 1, 0, 1, 0 }, 2, -2527, -6773, 1153, 896, 0 },
83 {
MAP_STEADWICK, { 1, 0, 1, 0, 1, 0, 1 }, 3, -18048, 4636, 833, 1536, 0 },
84 {
MAP_HARMONDALE, { 0, 1, 0, 0, 0, 1, 0 }, 5, -5692, 11137, 1, 1024, 0 },
85 {
MAP_STEADWICK, { 0, 1, 0, 1, 0, 1, 0 }, 2, -18048, 4636, 833, 1536, 0 },
86 {
MAP_PIERPONT, { 0, 1, 0, 1, 0, 1, 0 }, 3, -2527, -6773, 1153, 896, 0 },
87 {
MAP_DEYJA, { 0, 0, 1, 0, 0, 0, 1 }, 5, 7227, -16007, 2625, 640, 0 },
88 {
MAP_TATALIA, { 0, 1, 0, 1, 0, 1, 0 }, 2, -2183, -6941, 97, 0, 0 },
89 {
MAP_AVLEE, { 1, 0, 0, 0, 1, 0, 0 }, 4, 7913, 9476, 193, 0, 0 },
90 {
MAP_EVENMORN_ISLE, { 0, 0, 0, 0, 0, 0, 1 }, 7, 15616, 6390, 193, 1536,
PARTY_QUEST_EVENMORN_MAP_FOUND },
91 {
MAP_BRAKADA_DESERT, { 0, 0, 1, 0, 0, 0, 0 }, 6, 19171, -19722, 193, 1024, 0 },
92 {
MAP_AVLEE, { 0, 1, 0, 1, 0, 1, 0 }, 3, 7913, 9476, 193, 0, 0 },
93 {
MAP_BRAKADA_DESERT, { 1, 0, 1, 0, 0, 0, 0 }, 6, 19171, -19722, 193, 1024, 0 },
94 {
MAP_TATALIA, { 1, 0, 1, 0, 1, 0, 0 }, 4, -2183, -6941, 97, 0, 0 },
95 {
MAP_PIERPONT, { 0, 0, 0, 0, 0, 1, 0 }, 6, -709, -14087, 193, 1024, 0 },
96 {
MAP_STEADWICK, { 0, 0, 0, 0, 0, 0, 1 }, 6, -10471, 13497, 193, 1536, 0 },
97 {
MAP_EVENMORN_ISLE, { 0, 1, 0, 1, 0, 0, 0 }, 1, 15616, 6390, 193, 1536,
PARTY_QUEST_EVENMORN_MAP_FOUND },
98 {
MAP_BRAKADA_DESERT, { 0, 1, 0, 1, 0, 0, 0 }, 1, 19171, -19722, 193, 1024, 0 },
99 {
MAP_STEADWICK, { 0, 1, 0, 1, 0, 1, 0 }, 2, -10471, 13497, 193, 1536, 0 },
100 {
MAP_BRAKADA_DESERT, { 1, 0, 1, 0, 0, 0, 0 }, 4, 19171, -19722, 193, 1024, 0 },
101 {
MAP_EVENMORN_ISLE, { 0, 0, 0, 0, 0, 0, 1 }, 5, 15616, 6390, 193, 1536,
PARTY_QUEST_EVENMORN_MAP_FOUND },
102 {
MAP_AVLEE, { 0, 0, 0, 0, 1, 0, 0 }, 5, 7913, 9476, 193, 0, 0 },
103 {
MAP_STEADWICK, { 0, 1, 0, 0, 0, 1, 0 }, 4, -10471, 13497, 193, 1536, 0 },
104 {
MAP_PIERPONT, { 1, 0, 1, 0, 1, 0, 0 }, 3, -709, -14087, 193, 1024, 0 },
105 {
MAP_TATALIA, { 0, 0, 0, 1, 0, 0, 0 }, 5, -2183, -6941, 97, 0, 0 },
106 {
MAP_ARENA, { 0, 0, 0, 0, 0, 0, 1 }, 4, 3844, 2906, 193, 512, 0 }
117 { 255, 255, 255, 255 },
118 { 255, 255, 255, 255 },
119 { 255, 255, 255, 255 },
124 { 255, 255, 255, 255 },
128 { 255, 255, 255, 255 },
129 { 255, 255, 255, 255 }
133 {
"", 0x4, 0x1F4, 0, 0, 0 },
134 {
"Human Armor01", 0x20, 0x2C0, 2, 58, 0 },
135 {
"Necromancer Armor01", 0x20, 0x2D7, 2, 70, 0 },
136 {
"Dwarven Armor01", 0x20, 0x2EE, 2, 5, 0 },
137 {
"Wizard Armor", 0x20, 0x3BD, 2, 19, 0 },
138 {
"Warlock Armor", 0x20, 0x2D6, 2, 35, 0 },
139 {
"Elf Armor", 0x20, 0x2BC, 2, 79, 0 },
140 {
"Human Alchemisht01", 0xE, 0x2BE, 4, 95, 0 },
141 {
"Necromancer Alchemist01", 0xE, 0x2D6, 4, 69, 0 },
142 {
"Dwarven Achemist01", 0xE, 0x387, 4, 4, 0 },
143 {
"Wizard Alchemist", 0xE, 0x232, 4, 25, 0 },
144 {
"Warlock Alchemist", 0xE, 0x2BE, 4, 42, 0 },
145 {
"Elf Alchemist", 0xE, 0x38A, 4, 84, 0 },
146 {
"Human Bank01", 0x6, 0x384, 22, 52, 0 },
147 {
"Necromancer Bank01", 0x6, 0x2D8, 22, 71, 0 },
148 {
"Dwarven Bank", 0x6, 0x2F3, 22, 6, 0 },
149 {
"Wizard Bank", 0x6, 0x3BA, 22, 20, 0 },
150 {
"Warlock Bank", 0x6, 0x39F, 22, 36, 0 },
151 {
"Elf Bank", 0x6, 0x2BC, 22, 71, 0 },
152 {
"Boat01", 0xF, 0x4C, 28, 53, 3 },
153 {
"Boat01d", 0xF, 0x4C, 28, 53, 3 },
154 {
"Human Magic Shop01", 0xA, 0x2C8, 3, 54, 0 },
155 {
"Necromancer Magic Shop01", 0xE, 0x2DC, 3, 66, 0 },
156 {
"Dwarven Magic Shop01", 0x2A, 0x2EF, 3, 91, 0 },
157 {
"Wizard Magic Shop", 0x1E, 0x2DF, 3, 15, 0 },
158 {
"Warlock Magic Shop", 0x7, 0x3B9, 3, 15, 0 },
159 {
"Elf Magic Shop", 0x24, 0x2CC, 3, 82, 0 },
160 {
"Human Stables01", 0x21, 0x31, 27, 48, 3 },
161 {
"Necromancer Stables", 0x21, 0x2DD, 27, 67, 3 },
162 {
"", 0x21, 0x2F0, 27, 91, 3 },
163 {
"Wizard Stables", 0x21, 0x3BA, 27, 16, 3 },
164 {
"Warlock Stables", 0x21, 0x181, 27, 77, 3 },
165 {
"Elf Stables", 0x21, 0x195, 27, 77, 3 },
166 {
"Human Tavern01", 0xD, 0x2C2, 21, 49, 0 },
167 {
"Necromancer Tavern 01", 0xD, 0x3B0, 21, 57, 0 },
168 {
"Dwarven Tavern01", 0xD, 0x2FE, 21, 94, 0 },
169 {
"Wizard Tavern", 0xD, 0x3BB, 21, 17, 0 },
170 {
"Warlock Tavern", 0xD, 0x3A8, 21, 33, 0 },
171 {
"Elf Tavern", 0xD, 0x2CD, 21, 78, 0 },
172 {
"Human Temple01", 0x24, 0x2DB, 23, 50, 3 },
173 {
"Necromancer Temple", 0x24, 0x2DF, 23, 60, 3 },
174 {
"Dwarven Temple01", 0x24, 0x2F1, 23, 86, 3 },
175 {
"Wizard Temple", 0x24, 0x2E0, 23, 10, 3 },
176 {
"Warlock Temple", 0x24, 0x3A4, 23, 27, 3 },
177 {
"Elf Temple", 0x24, 0x2CE, 23, 72, 3 },
178 {
"Human Town Hall", 0x10, 0x39C, 17, 14, 0 },
179 {
"Necromancer Town Hall01", 0x10, 0x3A4, 17, 61, 0 },
180 {
"Dwarven Town Hall", 0x10, 0x2DB, 17, 88, 0 },
181 {
"Wizard Town Hall", 0x10, 0x3BD, 17, 11, 0 },
182 {
"Warlock Town Hall", 0x10, 0x2DB, 17, 28, 0 },
183 {
"Elf Town Hall", 0x10, 0x27A, 17, 73, 0 },
184 {
"Human Training Ground01", 0x18, 0x2C7, 30, 44, 0 },
185 {
"Necromancer Training Ground", 0x18, 0x3AD, 30, 62, 0 },
186 {
"Dwarven Training Ground", 0x18, 0x2F2, 30, 89, 0 },
187 {
"Wizard Training Ground", 0x18, 0x3A3, 30, 12, 0 },
188 {
"Warlock Training Ground", 0x18, 0x3A6, 30, 29, 0 },
189 {
"Elf Training Ground", 0x18, 0x19F, 30, 74, 0 },
190 {
"Human Weapon Smith01", 0x16, 0x2C1, 1, 45, 4 },
191 {
"Necromancer Weapon Smith01", 0x16, 0x2D9, 1, 63, 4 },
192 {
"Dwarven Weapon Smith01", 0x16, 0x2EE, 1, 82, 4 },
193 {
"Wizard Weapon Smith", 0x16, 0x2D5, 1, 13, 4 },
194 {
"Warlock Weapon Smith", 0x16, 0x2D7, 1, 23, 4 },
195 {
"Elf Weapon Smith", 0x16, 0x2CA, 1, 75, 4 },
196 {
"Air Guild", 0x1D, 0xA4, 6, 1, 3 },
197 {
"Body Guild", 0x19, 0x3BF, 11, 2, 0 },
198 {
"Dark Guild", 0x19, 0x2D1, 13, 3, 0 },
199 {
"Earth Guild", 0x19, 0x2CB, 8, 83, 0 },
200 {
"Fire Guild", 0x1C, 0x2BF, 5, 56, 0 },
201 {
"Light Guild", 0x1C, 0x2D5, 12, 46, 0 },
202 {
"Mind Guild", 0x1C, 0xE5, 10, 40, 0 },
203 {
"Spirit Guild", 0x1C, 0x2D2, 9, 41, 0 },
204 {
"Water Guild", 0x1B, 0x2D3, 7, 24, 0 },
205 {
"Lord And Judge Out01", 1, 0, 29, 39, 0 },
206 {
"Human Poor House 1", 8, 0, 29, 0, 0 },
207 {
"Human Poor House 2", 8, 0, 29, 0, 0 },
208 {
"Human Poor House 3", 8, 0, 29, 0, 0 },
209 {
"Human Medium House 1", 8, 0, 29, 0, 0 },
210 {
"Human Medium House 2", 8, 0, 29, 0, 0 },
211 {
"Human Medium House 3", 8, 0, 29, 0, 0 },
212 {
"Human Rich House 1", 8, 0, 29, 0, 0 },
213 {
"Human Rich House 2", 8, 0, 29, 0, 0 },
214 {
"Human Rich House 3", 8, 0, 29, 0, 0 },
215 {
"Elven Poor House 1", 8, 0, 29, 0, 0 },
216 {
"Elven Poor House 2", 8, 0, 29, 0, 0 },
217 {
"Elven Poor House 3", 8, 0, 29, 0, 0 },
218 {
"Elven Medium House 1", 8, 0, 29, 0, 0 },
219 {
"Elven Medium House 2", 8, 0, 29, 0, 0 },
220 {
"Elven Medium House 3", 8, 0, 29, 0, 0 },
221 {
"Elven Rich House 1", 8, 0, 29, 0, 0 },
222 {
"Elven Rich House 2", 8, 0, 29, 0, 0 },
223 {
"Elven Rich House 3", 8, 0, 29, 0, 0 },
224 {
"Dwarven Poor House 1", 8, 0, 29, 0, 0 },
225 {
"Dwarven Poor House 2", 8, 0, 29, 0, 0 },
226 {
"Dwarven Poor House 3", 8, 0, 29, 0, 0 },
227 {
"Dwarven Medium House 1", 8, 0, 29, 0, 0 },
228 {
"Dwarven Medium house 2", 8, 0, 29, 0, 0 },
229 {
"Dwarven Medium House 3", 8, 0, 29, 0, 0 },
230 {
"Dwarven Rich House 1", 8, 0, 29, 0, 0 },
231 {
"Dwarven Rich House 2", 8, 0, 29, 0, 0 },
232 {
"Dwarven Rich House 3", 8, 0, 29, 0, 0 },
233 {
"Wizard Poor House 1", 8, 0, 29, 0, 0 },
234 {
"Wizard Poor House 2", 8, 0, 29, 0, 0 },
235 {
"Wizard Poor House 3", 8, 0, 29, 0, 0 },
236 {
"Wizard Medium House 1", 8, 0, 29, 0, 0 },
237 {
"Wizard Medium House 2", 8, 0, 29, 0, 0 },
238 {
"Wizard Mdeium House 3", 8, 0, 29, 0, 0 },
239 {
"Wizard Rich House 1", 8, 0, 29, 0, 0 },
240 {
"Wizard Rich House 2", 8, 0, 29, 0, 0 },
241 {
"Wizard Rich House 3", 8, 0, 29, 0, 0 },
242 {
"Necromancer Poor House 1", 8, 0, 29, 0, 0 },
243 {
"Necromancer Poor House 2", 8, 0, 29, 0, 0 },
244 {
"Necromancer Poor House 3", 8, 0, 29, 0, 0 },
245 {
"Necromancer Medium House 1", 8, 0, 29, 0, 0 },
246 {
"Necromancer Medium House 2", 8, 0, 29, 0, 0 },
247 {
"Necromancer Mdeium House 3", 8, 0, 29, 0, 0 },
248 {
"Necromancer Rich House 1", 8, 0, 29, 0, 0 },
249 {
"Necromancer Rich House 2", 8, 0, 29, 0, 0 },
250 {
"Necromancer Rich House 3", 8, 0, 29, 0, 0 },
251 {
"Warlock Poor House 1", 8, 0, 29, 0, 0 },
252 {
"Warlock Poor House 2", 8, 0, 29, 0, 0 },
253 {
"Warlock Poor House 3", 8, 0, 29, 0, 0 },
254 {
"Warlock Medium House 1", 8, 0, 29, 0, 0 },
255 {
"Warlock Medium House 2", 8, 0, 29, 0, 0 },
256 {
"Warlock Mdeium House 3", 8, 0, 29, 0, 0 },
257 {
"Warlock Rich House 1", 8, 0, 29, 0, 0 },
258 {
"Warlock Rich House 2", 8, 0, 29, 0, 0 },
259 {
"Warlock Rich House 3", 8, 0, 29, 0, 0 },
260 {
"Out01 Temple of the Moon", 0x24, 0, 25, 0, 0 },
261 {
"Out01 Dragon Cave", 0x24, 0, 25, 0, 0 },
262 {
"Out02 Castle Harmondy", 0x24, 0, 25, 0, 0 },
263 {
"Out02 White Cliff Cave", 0x24, 0, 25, 0, 0 },
264 {
"Out03 Erathian Sewer", 0x24, 0, 25, 0, 0 },
265 {
"Out03 Fort Riverstride", 0x24, 0, 25, 0, 0 },
266 {
"Out03 Castle Gryphonheart", 0x24, 0, 25, 0, 0 },
267 {
"Out04 Elf Castle", 0x24, 0, 25, 0, 0 },
268 {
"Out04 Tularean Caves", 0x24, 0, 25, 0, 0 },
269 {
"Out04 Clanker's Laboratory", 0x24, 0, 25, 0, 0 },
270 {
"Out05 Hall of the Pit", 0x24, 0, 25, 0, 0 },
271 {
"Out05 Watchtower 6", 0x24, 0, 25, 0, 0 },
272 {
"Out06 School of Sorcery", 0x24, 0, 25, 0, 0 },
273 {
"Out06 Red Dwarf Mines", 0x24, 0, 25, 0, 0 },
274 {
"Out07 Castle Lambert", 0x24, 0, 25, 0, 0 },
275 {
"Out07 Walls of Mist", 0x24, 0, 25, 0, 0 },
276 {
"Out07 Temple of the Light", 0x24, 0, 25, 0, 0 },
277 {
"Out08 Evil Entrance", 0x24, 0, 25, 0, 0 },
278 {
"Out08 Breeding Zone", 0x24, 0, 25, 0, 0 },
279 {
"Out08 Temple of the Dark", 0x24, 0, 25, 0, 0 },
280 {
"Out09 Grand Temple of the Moon", 0x24, 0, 25, 0, 0 },
281 {
"Out09 Grand Tempple of the Sun", 0x24, 0, 25, 0, 0 },
282 {
"Out10 Thunderfist Mountain", 0x24, 0, 25, 0, 0 },
283 {
"Out10 The Maze", 0x24, 0, 25, 0, 0 },
284 {
"Out10 Connecting Tunnel Cave #1", 0x24, 0, 25, 0, 0 },
285 {
"", 0x24, 0, 25, 0, 0 },
286 {
"", 0x24, 0, 25, 0, 0 },
287 {
"Out11 Stone City", 0x24, 0, 25, 0, 0 },
288 {
"", 0x24, 0, 25, 0, 0 },
289 {
"Out12 Colony Zod", 0x24, 0, 25, 0, 0 },
290 {
"Out12 Connecting Tunnel Cave #1", 0x24, 0, 25, 0, 0 },
291 {
"", 0x24, 0, 25, 0, 0 },
292 {
"", 0x24, 0, 25, 0, 0 },
293 {
"Out13 Mercenary Guild", 0x24, 0, 25, 0, 0 },
294 {
"Out13 Tidewater Caverns", 0x24, 0, 25, 0, 0 },
295 {
"Out13 Wine Cellar", 0x24, 0, 25, 0, 0 },
296 {
"Out14 Titan's Stronghold", 0x24, 0, 25, 0, 0 },
297 {
"Out14 Temple Of Baa", 0x24, 0, 25, 0, 0 },
298 {
"Out14 Hall under the Hill", 0x24, 0, 25, 0, 0 },
299 {
"Out15 The Linclon", 0x24, 0, 25, 0, 0 },
300 {
"Jail", 0x24, 0, 31, 0, 0 },
301 {
"Harmondale Throne Room", 0x24, 0, 29, 0, 0 },
302 {
"Gryphonheart Throne Room", 0x24, 0, 20, 0, 0 },
303 {
"Elf Castle Throne Room", 0x24, 0, 20, 0, 0 },
304 {
"Wizard Castle Throne Room", 0x24, 0, 20, 0, 0 },
305 {
"Necromancer Casstle Trone Room", 0x24, 0, 20, 0, 0 },
306 {
"Master Thief", 0x24, 0, 29, 0, 0 },
307 {
"Dwarven King", 0x24, 0, 20, 0, 0 },
308 {
"Arms Master", 0x24, 0, 29, 0, 0 },
309 {
"Warlock", 0x24, 0, 29, 0, 0 },
310 {
"Lord Markam", 0x24, 0, 20, 0, 0 },
311 {
"Arbiter Neutral Town", 0x24, 0, 29, 0, 0 },
312 {
"Arbiter Good Town", 0x24, 0, 29, 0, 0 },
313 {
"Arbiter Evil Town", 0x24, 0, 29, 0, 0 },
314 {
"Necromancer Throne Room Empty", 0x24, 0, 20, 0, 0 },
315 {
"", 0x24, 0, 29, 0, 0 },
316 {
"", 0x24, 0, 29, 0, 0 },
317 {
"", 0x24, 0, 29, 0, 0 },
318 {
"", 0x24, 0, 29, 0, 0 },
319 {
"Boat01", 0xF, 0, 29, 53, 3 },
320 {
"", 0x24, 0, 28, 0, 0 },
321 {
"", 0x24, 0, 28, 0, 0 },
322 {
"", 0x24, 0, 28, 0, 0 },
323 {
"", 0x24, 0, 29, 0, 0 },
324 {
"Arbiter Room Neutral", 0x24, 0, 29, 0, 0 },
325 {
"Out02 Castle Harmondy Abandoned", 0x24, 0, 25, 0, 0 },
326 {
"Human Temple02", 0x24, 0x3AB, 23, 27, 0 },
327 {
"Player Castle Good", 0x24, 0, 25, 0, 0 },
328 {
"Player Castle Bad", 0x24, 0, 25, 0, 0 }
332 {
"",
"WEPNTABL",
"ARMORY",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF",
333 "MAGSHELF",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF",
334 "MAGSHELF",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF",
"MAGSHELF" } };
344 { 0, { 00, 00, 00, 00 } }, { 1, { 23, 27, 20, 20 } }, { 1, { 23, 24, 28, 20 } },
345 { 2, { 23, 24, 25, 20 } }, { 2, { 27, 27, 26, 26 } }, { 4, { 24, 30, 25, 27 } },
346 { 4, { 24, 30, 25, 27 } }, { 3, { 30, 24, 20, 20 } }, { 2, { 20, 20, 20, 20 } },
347 { 3, { 27, 27, 26, 26 } }, { 3, { 28, 28, 25, 25 } }, { 2, { 23, 23, 24, 24 } },
348 { 3, { 23, 23, 26, 26 } }, { 2, { 30, 26, 26, 26 } }, { 2, { 28, 25, 28, 29 } }
352 { 1, { 35, 35, 38, 38 } }, { 1, { 31, 31, 31, 34 } }, { 1, { 35, 35, 38, 38 } },
353 { 1, { 31, 31, 32, 34 } }, { 2, { 35, 35, 38, 38 } }, { 2, { 31, 32, 32, 33 } },
354 { 2, { 35, 35, 38, 38 } }, { 2, { 31, 31, 32, 32 } }, { 4, { 35, 35, 38, 38 } },
355 { 4, { 31, 32, 33, 34 } }, { 4, { 35, 35, 38, 38 } }, { 4, { 31, 32, 33, 34 } },
356 { 3, { 35, 35, 38, 38 } }, { 3, { 31, 31, 31, 31 } }, { 2, { 35, 35, 38, 38 } },
357 { 2, { 31, 32, 34, 34 } }, { 3, { 35, 35, 38, 38 } }, { 3, { 31, 31, 32, 32 } },
358 { 3, { 35, 35, 38, 38 } }, { 3, { 32, 32, 32, 33 } }, { 3, { 35, 35, 38, 38 } },
359 { 3, { 31, 31, 31, 32 } }, { 3, { 35, 35, 38, 38 } }, { 3, { 33, 31, 32, 34 } },
360 { 3, { 35, 35, 38, 38 } }, { 3, { 33, 31, 32, 34 } }, { 4, { 35, 35, 38, 38 } },
361 { 4, { 33, 31, 32, 34 } }
365 3, 2, 2, 2, 2, 2, 2 };
370 { 0, { 00, 00, 00, 00 } }, { 2, { 25, 30, 20, 20 } }, { 2, { 23, 24, 28, 20 } },
371 { 3, { 23, 24, 25, 20 } }, { 3, { 27, 27, 26, 26 } }, { 5, { 23, 26, 28, 27 } },
372 { 5, { 23, 26, 28, 27 } }, { 4, { 30, 24, 20, 20 } }, { 3, { 20, 20, 20, 20 } },
373 { 4, { 27, 27, 26, 26 } }, { 4, { 28, 28, 25, 25 } }, { 4, { 23, 23, 24, 24 } },
374 { 4, { 24, 24, 27, 20 } }, { 4, { 30, 26, 26, 26 } }, { 4, { 28, 25, 28, 29 } }
378 4, 3, 3, 3, 3, 3, 3 };
383 { 2, { 35, 35, 38, 38 } }, { 2, { 31, 31, 31, 34 } }, { 2, { 35, 35, 38, 38 } },
384 { 2, { 31, 31, 32, 34 } }, { 3, { 35, 35, 38, 38 } }, { 3, { 31, 32, 32, 33 } },
385 { 3, { 35, 35, 38, 38 } }, { 3, { 31, 31, 32, 32 } }, { 5, { 35, 35, 38, 38 } },
386 { 5, { 31, 32, 33, 34 } }, { 5, { 35, 35, 38, 38 } }, { 5, { 31, 32, 33, 34 } },
387 { 4, { 35, 35, 38, 38 } }, { 4, { 31, 31, 31, 31 } }, { 3, { 35, 35, 38, 38 } },
388 { 3, { 31, 32, 34, 34 } }, { 4, { 35, 35, 38, 38 } }, { 4, { 31, 31, 32, 33 } },
389 { 4, { 35, 35, 38, 38 } }, { 4, { 32, 32, 33, 34 } }, { 4, { 35, 35, 38, 38 } },
390 { 4, { 31, 31, 31, 32 } }, { 4, { 35, 35, 38, 38 } }, { 4, { 32, 32, 32, 32 } },
391 { 4, { 35, 35, 38, 38 } }, { 4, { 34, 34, 34, 34 } }, { 5, { 35, 35, 38, 38 } },
392 { 5, { 33, 33, 33, 33 } }
617 Error(
"Invalid enumeration value: %u",
type);
832 int am_pm_flag_close;
860 render->ClearZBuffer(0, 479);
862 if (((uCloseTime - 1 <= uOpenTime) &&
865 ((uCloseTime - 1 > uOpenTime) &&
869 am_pm_flag_close = 0;
870 if (uOpenTime > 12) {
874 if (uCloseTime > 12) {
876 am_pm_flag_close = 1;
907 (
signed __int16)
p2DEvents[186].uAnimationID;
917 for (
uint i = 0; i < 4; ++i) {
926 pContainer =
"evt02-b";
929 pContainer =
"evt02";
932 pContainer =
"evt02-c";
948 if ((
signed int)uHouseID < 139 || (
signed int)uHouseID > 172) {
950 (
signed int)uHouseID <= 73 &&
986 memset(npc_id_arr, 0,
sizeof(npc_id_arr));
991 if (uExitMapID > 0) {
1048 int experience_for_next_level;
1055 render->ClearZBuffer(0, 479);
1059 experience_for_next_level = 0;
1063 experience_for_next_level += i + 1;
1069 1000 * experience_for_next_level)
1077 { { ui_buttdesc2 } });
1100 { { ui_buttdesc2 } });
1136 for (
uint i = 0; i < 12; ++i) {
1143 ->SpellBooksInGuilds
1186 if ((
unsigned __int16)v24 < 115 ||
1187 (
unsigned __int16)v24 > 132) {
1188 if (((
unsigned __int16)v24 < 235 ||
1189 (
unsigned __int16)v24 > 252) &&
1190 ((
unsigned __int16)v24 < 133 ||
1191 (
unsigned __int16)v24 > 150) &&
1192 ((
unsigned __int16)v24 < 0x97u ||
1193 (
unsigned __int16)v24 > 0xBAu) &&
1194 ((
unsigned __int16)v24 < 0xBEu ||
1195 (
unsigned __int16)v24 > 0xC0u) &&
1196 ((
unsigned __int16)v24 < 0xC4u ||
1197 (
unsigned __int16)v24 > 0xC6u) &&
1198 ((
unsigned __int16)v24 < 0x2Bu ||
1199 (
unsigned __int16)v24 > 0x2Du) &&
1200 ((
unsigned __int16)v24 < 0xCDu ||
1201 (
unsigned __int16)v24 > 0xCFu) &&
1202 ((
unsigned __int16)v24 < 0x5Eu ||
1203 (
unsigned __int16)v24 > 0x60u) &&
1204 ((
unsigned __int16)v24 < 0xFDu ||
1205 (
unsigned __int16)v24 > 0xFFu) &&
1206 ((
unsigned __int16)v24 < 0x6Du ||
1207 (
unsigned __int16)v24 > 0x6Fu) &&
1208 ((
unsigned __int16)v24 < 0x61u ||
1209 (
unsigned __int16)v24 > 0x63u))
1214 102)] = rand() % 258 + 1;
1222 if ((
unsigned __int16)v24 < 115 ||
1223 (
unsigned __int16)v24 > 132) {
1224 if (((
unsigned __int16)v24 < 0xE8u ||
1225 (
unsigned __int16)v24 > 0xF9u) &&
1226 ((
unsigned __int16)v24 < 0x85u ||
1227 (
unsigned __int16)v24 > 0x96u) &&
1228 ((
unsigned __int16)v24 < 0x97u ||
1229 (
unsigned __int16)v24 > 0xBAu) &&
1230 ((
unsigned __int16)v24 < 0xBEu ||
1231 (
unsigned __int16)v24 > 0xC0u) &&
1232 ((
unsigned __int16)v24 < 0xC4u ||
1233 (
unsigned __int16)v24 > 0xC6u) &&
1234 ((
unsigned __int16)v24 < 0x2Bu ||
1235 (
unsigned __int16)v24 > 0x2Du) &&
1236 ((
unsigned __int16)v24 < 0x52u ||
1237 (
unsigned __int16)v24 > 0x54u) &&
1238 ((
unsigned __int16)v24 < 4 ||
1239 (
unsigned __int16)v24 > 6) &&
1240 ((
unsigned __int16)v24 < 0x37u ||
1241 (
unsigned __int16)v24 > 0x39u) &&
1242 ((
unsigned __int16)v24 < 0x3Au ||
1243 (
unsigned __int16)v24 > 0x3Cu) &&
1244 ((
unsigned __int16)v24 < 0x3Du ||
1245 (
unsigned __int16)v24 > 0x3Fu) &&
1246 ((
unsigned __int16)v24 < 0xFDu ||
1247 (
unsigned __int16)v24 > 0xFFu) &&
1248 ((
unsigned __int16)v24 < 0x61u ||
1249 (
unsigned __int16)v24 > 0x63u) &&
1250 ((
unsigned __int16)v24 < 0xCDu ||
1251 (
unsigned __int16)v24 > 0xCFu))
1256 102)] = rand() % 258 + 1;
1264 if ((
unsigned __int16)v24 < 0x73u ||
1265 (
unsigned __int16)v24 > 0x84u) {
1266 if (((
unsigned __int16)v24 < 0xE8u ||
1267 (
unsigned __int16)v24 > 0xF9u) &&
1268 ((
unsigned __int16)v24 < 0x85u ||
1269 (
unsigned __int16)v24 > 0x96u) &&
1270 ((
unsigned __int16)v24 < 0x97u ||
1271 (
unsigned __int16)v24 > 0xBAu) &&
1272 ((
unsigned __int16)v24 < 0xBEu ||
1273 (
unsigned __int16)v24 > 0xC0u) &&
1274 ((
unsigned __int16)v24 < 0xC4u ||
1275 (
unsigned __int16)v24 > 0xC6u) &&
1276 ((
unsigned __int16)v24 < 0x2Bu ||
1277 (
unsigned __int16)v24 > 0x2Du) &&
1278 ((
unsigned __int16)v24 < 0x31u ||
1279 (
unsigned __int16)v24 > 0x33u) &&
1280 ((
unsigned __int16)v24 < 0x34u ||
1281 (
unsigned __int16)v24 > 0x36u) &&
1282 ((
unsigned __int16)v24 < 0xFDu ||
1283 (
unsigned __int16)v24 > 0xFFu) &&
1284 ((
unsigned __int16)v24 < 0x61u ||
1285 (
unsigned __int16)v24 > 0x63u) &&
1286 ((
unsigned __int16)v24 < 0x1Cu ||
1287 (
unsigned __int16)v24 > 0x1Eu))
1292 102)] = rand() % 258 + 1;
1300 if ((
unsigned __int16)v24 < 0x73u ||
1301 (
unsigned __int16)v24 > 0x84u) {
1302 if (((
unsigned __int16)v24 < 0xE8u ||
1303 (
unsigned __int16)v24 > 0xF9u) &&
1304 ((
unsigned __int16)v24 < 0x85u ||
1305 (
unsigned __int16)v24 > 0x96u) &&
1306 ((
unsigned __int16)v24 < 0x97u ||
1307 (
unsigned __int16)v24 > 0xBAu) &&
1308 ((
unsigned __int16)v24 < 0xBEu ||
1309 (
unsigned __int16)v24 > 0xC0u) &&
1310 ((
unsigned __int16)v24 < 0xC4u ||
1311 (
unsigned __int16)v24 > 0xC6u) &&
1312 ((
unsigned __int16)v24 < 0x2Bu ||
1313 (
unsigned __int16)v24 > 0x2Du) &&
1314 ((
unsigned __int16)v24 < 0x5Eu ||
1315 (
unsigned __int16)v24 > 0x60u) &&
1316 ((
unsigned __int16)v24 < 0x43u ||
1317 (
unsigned __int16)v24 > 0x45u) &&
1318 ((
unsigned __int16)v24 < 0x4Fu ||
1319 (
unsigned __int16)v24 > 0x51u) &&
1320 ((
unsigned __int16)v24 < 0xC1u ||
1321 (
unsigned __int16)v24 > 0xC3u) &&
1322 ((
unsigned __int16)v24 < 0x13u ||
1323 (
unsigned __int16)v24 > 0x15u) &&
1324 ((
unsigned __int16)v24 < 0xFDu ||
1325 (
unsigned __int16)v24 > 0xFFu) &&
1326 ((
unsigned __int16)v24 < 0x61u ||
1327 (
unsigned __int16)v24 > 0x63u) &&
1328 ((
unsigned __int16)v24 < 0x6Au ||
1329 (
unsigned __int16)v24 > 0x6Cu))
1334 102)] = rand() % 258 + 1;
1342 if ((
unsigned __int16)v24 < 0x73u ||
1343 (
unsigned __int16)v24 > 0x84u) {
1344 if (((
unsigned __int16)v24 < 0xE8u ||
1345 (
unsigned __int16)v24 > 0xF9u) &&
1346 ((
unsigned __int16)v24 < 0x85u ||
1347 (
unsigned __int16)v24 > 0x96u) &&
1348 ((
unsigned __int16)v24 < 0x97u ||
1349 (
unsigned __int16)v24 > 0xBAu) &&
1350 ((
unsigned __int16)v24 < 0xBEu ||
1351 (
unsigned __int16)v24 > 0xC0u) &&
1352 ((
unsigned __int16)v24 < 0xC4u ||
1353 (
unsigned __int16)v24 > 0xC6u) &&
1354 ((
unsigned __int16)v24 < 0x2Bu ||
1355 (
unsigned __int16)v24 > 0x2Du) &&
1356 ((
unsigned __int16)v24 < 0x6Du ||
1357 (
unsigned __int16)v24 > 0x6Fu) &&
1358 ((
unsigned __int16)v24 < 0x46u ||
1359 (
unsigned __int16)v24 > 0x48u) &&
1360 ((
unsigned __int16)v24 < 0x100u ||
1361 (
unsigned __int16)v24 > 0x102u) &&
1362 ((
unsigned __int16)v24 < 0xD9u ||
1363 (
unsigned __int16)v24 > 0xDBu) &&
1364 ((
unsigned __int16)v24 < 0xC7u ||
1365 (
unsigned __int16)v24 > 0xC9u) &&
1366 ((
unsigned __int16)v24 < 0xE5u ||
1367 (
unsigned __int16)v24 > 0xE7u) &&
1368 ((
unsigned __int16)v24 < 0xDFu ||
1369 (
unsigned __int16)v24 > 0xE1u) &&
1370 ((
unsigned __int16)v24 < 0x5Bu ||
1371 (
unsigned __int16)v24 > 0x5Du) &&
1372 ((
unsigned __int16)v24 < 0x49u ||
1373 (
unsigned __int16)v24 > 0x4Bu) &&
1374 ((
unsigned __int16)v24 < 0xFDu ||
1375 (
unsigned __int16)v24 > 0xFFu) &&
1376 ((
unsigned __int16)v24 < 0x61u ||
1377 (
unsigned __int16)v24 > 0x63u) &&
1378 ((
unsigned __int16)v24 < 0x10u ||
1379 (
unsigned __int16)v24 > 0x12u))
1384 102)] = rand() % 258 + 1;
1416 for (
uint i = 0; i < 4; ++i)
1464 switch (uMessageParam) {
1546 ->StandartItemsInShops
1570 ->SpecialItemsInShops[(
unsigned int)
1598 ->SpecialItemsInShops
1632 (
signed __int64)(
p2DEvents[(
unsigned int)
1640 if (pPrice < v36 / 3) pPrice = v36 / 3;
1643 [uMessageParam - 36]) {
1645 ->pActiveSkills[uMessageParam - 36]) {
1662 ->pActiveSkills[uMessageParam - 36] = 1;
1681 int pRealTextHeight;
1686 char pTopicArray[5][100];
1687 int pPrimaryTextHeight;
1689 unsigned int pPrice;
1692 unsigned int pCurrentButton;
1707 if ((
signed int)pPrice < v4 / 3) pPrice = v4 / 3;
1711 strcpy(pTopicArray[4],
"");
1718 pPrimaryTextHeight = pRealTextHeight;
1729 if (schedule_id != 255) {
1732 if (pCurrentButton >= 6)
1739 if (schedule_id != 255 && v25 &&
1750 sprintf(pTopicArray[
index],
"\f%05d",
1753 sprintf(pTopicArray[
index],
"\f%05d",
1769 if (travel_time < 1) travel_time = 1;
1770 if (schedule_id != 255) {
1779 strcat(pTopicArray[
index], str.c_str());
1780 strcat(pTopicArray[
index],
"\n \n");
1781 pButton->
uY = pRealTextHeight;
1784 pButton->
uHeight = pTextHeight;
1785 pButton->
uW = pButton->
uY + pTextHeight - 1 + 6;
1790 strcpy(pTopicArray[
index],
"");
1800 if (pRealTextHeight != pPrimaryTextHeight) {
1806 pTopicArray[1], pTopicArray[2], pTopicArray[3],
1882 if (v12 < 1) v12 = 1;
1887 if (v15 < v14) v15 = v14;
1901 for (
uint i = 0; i < 4; ++i) {
1918 signed int pStringSum;
1923 unsigned __int16 pTextColor;
1929 townHall_window.
uFrameX = 483;
1931 townHall_window.
uFrameZ = 334;
1937 Color16(0xFFu, 0xFFu, 0x9Bu), fine_str, 3);
1951 for (
uint i = 0; i < pStringSum; ++i)
1954 v29 = (100 - pTextHeight) / pStringSum;
1955 v16 = 80 - pStringSum * ((100 - pTextHeight) / pStringSum);
1956 v17 = (v16 / 2) - v29 / 2 + 158;
1961 i < pDialogueWindow->pNumPresenceButton +
1965 pButton->
uY = v29 + v17;
1968 pButton->
uHeight = pTextHeight;
1969 v17 = pButton->
uY + pTextHeight - 1;
1970 pButton->
uW = v17 + 6;
1971 pTextColor =
Color16(0xFFu, 0xFFu, 0x9Bu);
1973 pTextColor =
Color16(0xFFu, 0xFFu, 0xFFu);
1988 "\f%05d%s\f%05d",
Color16(0xFFu, 0xFFu, 0x9Bu),
1991 Color16(0xFFu, 0xFFu, 0xFFu)),
2000 window.uFrameWidth, 13) +
2002 if (352 - pTextHeight < 8) {
2008 render->DrawTextureCustomHeight(8 / 640.0
f,
2009 (352 - pTextHeight) / 480.0
f,
2011 render->DrawTextureAlphaNew(
2013 window.DrawText(pOutString, 13, 354 - pTextHeight, 0,
2022 WINDOW_INPUT_IN_PROGRESS) {
2040 WINDOW_INPUT_CONFIRMED) {
2061 WINDOW_INPUT_CANCELLED) {
2089 pColorText =
Color16(0xFFu, 0xFFu, 0xFFu);
2093 pColorText =
Color16(0xFFu, 0xFFu, 0x9Bu);
2095 pColorText =
Color16(0xFFu, 0xFFu, 0xFFu);
2119 WINDOW_INPUT_CONFIRMED) {
2121 unsigned int takes_sum = entered_sum;
2152 WINDOW_INPUT_IN_PROGRESS) {
2172 unsigned int takes_sum = entered_sum;
2208 unsigned int pColorText;
2211 signed int pOptionsCount;
2217 unsigned int pTopic1Height;
2218 unsigned __int8 pTopic2Height;
2219 unsigned __int8 pTopic3Height;
2220 unsigned __int8 pTopic4Height = 0;
2222 int all_text_height;
2235 pPriceRoom = ((
v2 *
v2) / 10) *
2238 if (pPriceRoom < ((
v2 *
v2) / 10) / 3) pPriceRoom = ((
v2 *
v2) / 10) / 3;
2239 if (pPriceRoom <= 0) pPriceRoom = 1;
2241 pPriceFood = ((
v2 *
v2) *
v2 / 100) *
2243 if (pPriceFood < ((
v2 *
v2) *
v2 / 100) / 3)
2244 pPriceFood = ((
v2 *
v2) *
v2 / 100) / 3;
2245 if (pPriceFood <= 0) pPriceFood = 1;
2255 ?
Color16(0xFFu, 0xFFu, 0x9Bu)
2256 :
Color16(0xFFu, 0xFFu, 0xFFu)) +
2265 ?
Color16(0xFFu, 0xFFu, 0x9Bu)
2266 :
Color16(0xFFu, 0xFFu, 0xFFu)) +
2279 ?
Color16(0xFFu, 0xFFu, 0x9Bu)
2280 :
Color16(0xFFu, 0xFFu, 0xFFu)) +
2291 ?
Color16(0xFFu, 0xFFu, 0x9Bu)
2292 :
Color16(0xFFu, 0xFFu, 0xFFu)) +
2300 pItemNum < pDialogueWindow->pStartingPosActiveItem +
2305 pButton->
uHeight = pTopic1Height;
2307 pButton->
uW = pTopic1Height + 145 + 6;
2309 pButton->
uHeight = pTopic2Height;
2312 pButton->
uW = (pTopic1Height +
2314 pTopic2Height - 1 + 6;
2316 pButton->
uY = pTopic1Height + pTopic2Height +
2318 pButton->
uHeight = pTopic3Height;
2321 (pTopic1Height + pTopic2Height +
2325 pButton->
uHeight = pTopic4Height;
2326 pButton->
uY = pTopic1Height +
2328 pTopic4Height + pTopic2Height + 146;
2331 pTopic4Height + pTopic2Height + 146) +
2332 pTopic4Height - 1 + 6;
2337 StringPrintf(
"%s\n \n%s\n \n%s\n \n%s", topic1.c_str(),
2338 topic2.c_str(), topic3.c_str(),
2354 if (352 - pTextHeight < 8) {
2360 render->DrawTextureCustomHeight(8 / 640.0
f,
2361 (352 - pTextHeight) / 480.0f,
2363 render->DrawTextureAlphaNew(
2366 pOutString, 12, 354 - pTextHeight, 0,
2382 render->DrawTextureCustomHeight(8 / 640.0
f,
2383 (352 - pTextHeight) / 480.0f,
2385 render->DrawTextureAlphaNew(
2411 Color16(0xFFu, 0xFFu, 0x9Bu), pText, 3);
2440 v9 = (
signed __int64)(
p2DEvents[(
unsigned int)
2447 if (pPriceSkill < v9 / 3) pPriceSkill = v9 / 3;
2448 all_text_height = 0;
2450 i < pDialogueWindow->pStartingPosActiveItem +
2469 v91 = (149 - all_text_height) / pSkillCount;
2470 if ((149 - all_text_height) / pSkillCount > 32) v91 = 32;
2471 v54 = (149 - pSkillCount * v91 - all_text_height) / 2 -
2474 i < pDialogueWindow->pStartingPosActiveItem +
2482 ->pActiveSkills[pButton->
msg_param - 36]) {
2487 pButton->
uY = v91 + v54;
2491 pButton->
uHeight = pTextHeight;
2492 v54 = pTextHeight + pButton->
uY - 1;
2493 pButton->
uW = v54 + 6;
2494 pColorText =
Color16(0xFFu, 0xFFu, 0x9Bu);
2496 pColorText =
Color16(0xFFu, 0xFFu, 0xFFu);
2520 Color16(0xFFu, 0xFFu, 0x9Bu), str, 3);
2562 for (i = 0; i < pOptionsCount; ++i)
2565 all_text_height = (174 - all_text_height) / pOptionsCount;
2568 pOptionsCount * (174 - all_text_height) / pOptionsCount -
2571 (174 - all_text_height) / pOptionsCount / 2 + 138;
2574 pItemNum < pDialogueWindow->pNumPresenceButton +
2578 pButton->
uY = all_text_height + v54;
2581 pButton->
uHeight = pTextHeight;
2582 v54 = pButton->
uY + pTextHeight - 1;
2583 pButton->
uW = v54 + 6;
2584 pColorText =
Color16(0xFFu, 0xFFu, 0x9Bu);
2586 pColorText =
Color16(0xFFu, 0xFFu, 0xFFu);
2602 unsigned __int16 pTextColor;
2606 unsigned __int8
index;
2608 unsigned int pCurrentItem;
2609 int all_text_height;
2629 static String shop_option_container;
2630 shop_option_container =
2638 all_text_height = 0;
2647 v64 = (174 - (
signed int)all_text_height) /
2649 if (v64 > 32) v64 = 32;
2652 (
signed int)all_text_height) /
2660 (
signed int)pCurrentItem <
2665 pButton->
uY = v64 + all_text_height;
2668 pButton->
uHeight = pTextHeight;
2669 pButton->
uW = pButton->
uY + pTextHeight - 1 + 6;
2670 all_text_height = pButton->
uW;
2671 pTextColor =
Color16(0xFFu, 0xFFu, 0x9Bu);
2673 pTextColor =
Color16(0xFFu, 0xFFu, 0xFFu);
2832 all_text_height = 0;
2839 v64 = (
signed int)(pCurrentItem *
2843 if (v64 < (
signed int)pCurrentItem / 3)
2844 v64 = (
signed int)pCurrentItem / 3;
2847 i < pDialogueWindow->pNumPresenceButton +
2865 v64 = (149 - (
signed int)all_text_height) /
2866 (
signed int)pCurrentItem;
2867 if (v64 > 32) v64 = 32;
2868 all_text_height = (
signed int)(149 - pCurrentItem * v64 -
2869 (
int)all_text_height) /
2877 i < pDialogueWindow->pNumPresenceButton +
2885 ->pActiveSkills[pButton->
msg_param - 36]) {
2890 pButton->
uY = v64 + all_text_height;
2895 pButton->
uHeight = pTextHeight;
2896 pButton->
uW = pButton->
uY + pTextHeight - 1 + 6;
2897 all_text_height = pButton->
uW;
2898 pTextColor =
Color16(0xFFu, 0xFFu, 0x9Bu);
2901 pTextColor =
Color16(0xFFu, 0xFFu, 0xFFu);
2926 pFontArrus, 0, (174 - pTextHeight) / 2 + 138,
2927 Color16(0xFFu, 0xFFu, 0x9Bu), str, 3);
2934 unsigned __int64 v5;
2945 int all_text_height;
2949 unsigned __int16 pTextColor;
2954 training_dialog_window.
uFrameX = 483;
2956 training_dialog_window.
uFrameZ = 334;
2969 if (v8 == 4) v8 = 3;
2972 v10 = (
signed __int64)(v9 *
2977 if (pPrice < v10 / 3) pPrice = v10 / 3;
2980 all_text_height = 0;
2993 i < pDialogueWindow->pNumPresenceButton +
2998 static String shop_option_str_container;
3003 shop_option_str_container =
3012 shop_option_str_container.c_str();
3017 shop_option_str_container =
3019 LSTR_XP_UNTIL_NEXT_LEVEL,
3023 shop_option_str_container =
3030 shop_option_str_container.c_str();
3040 (2 * (87 - (174 - all_text_height) / 2) - all_text_height) /
3042 (174 - all_text_height) / 2 / 2 + 138;
3048 i < pDialogueWindow->pStartingPosActiveItem +
3052 pButton->
uY = (174 - all_text_height) / 2 + v49;
3056 pButton->
uHeight = pTextHeight;
3057 pButton->
uW = pTextHeight + pButton->
uY - 1 + 6;
3059 pTextColor =
Color16(0xE1u, 0xCDu, 0x23u);
3061 pTextColor =
Color16(255, 255, 255);
3103 for (
uint _it = 1; _it < 4; ++_it) {
3109 max_level_in_party) {
3146 LSTR_XP_UNTIL_NEXT_LEVEL,
3181 v14 = (
signed __int64)(
p2DEvents[(
unsigned int)
3188 if (pPrice < v14 / 3) pPrice = v14 / 3;
3211 v73 = (
signed int)(149 - all_text_height) /
index;
3212 if (v73 > 32) v73 = 32;
3213 v19 = (
signed int)(149 -
index * v73 - all_text_height) / 2 -
3224 ->pActiveSkills[pButton->
msg_param - 36]) {
3229 pButton->
uY = v73 + v19;
3233 pButton->
uHeight = pTextHeight;
3234 pButton->
uW = pButton->
uY + pTextHeight - 1 + 6;
3235 v19 = pButton->
uY + pTextHeight - 1;
3236 pTextColor =
Color16(0xE1u, 0xCDu, 0x23u);
3238 pTextColor =
Color16(255, 255, 255);
3258 pFontArrus, 0, (174 - label_height) / 2 + 138,
3271 int all_text_height;
3274 unsigned __int16 pTextColor;
3291 v3 = (
signed __int64)((
double)v32 *
3296 if (pPrice <
v3 / 3) pPrice =
v3 / 3;
3300 ->_achieved_awards_bits,
3305 pFontArrus, 0, (212 - pTextHeight) / 2 + 101,
3311 all_text_height = 0;
3314 i < pDialogueWindow->pNumPresenceButton +
3341 (174 - pTextHeight) / 2 + 138,
3342 Color16(0xFFu, 0xFFu, 0x9Bu), str, 3);
3346 auto skill_price_label =
3351 v32 = (149 - all_text_height) /
index;
3352 if (v32 > 32) v32 = 32;
3353 index = (149 -
index * v32 - all_text_height) / 2 - v32 / 2 + 162;
3358 i < pDialogueWindow->pNumPresenceButton +
3366 ->pActiveSkills[pButton->
msg_param - 36]) {
3371 pButton->
uHeight = pTextHeight;
3372 pButton->
uW = pButton->
uY + pTextHeight - 1 + 6;
3373 index = pButton->
uY + pTextHeight - 1;
3374 pTextColor =
Color16(0xFFu, 0xFFu, 0x9Bu);
3376 pTextColor =
Color16(0xFFu, 0xFFu, 0xFFu);
3434 signed int all_text_height;
3436 unsigned __int16 pTextColor;
3488 npc_name = pNPC->
pName;
3490 Color16(0x15u, 0x99u, 0xE9u), npc_name, 3);
3501 render->DrawTextureCustomHeight(
3515 render->DrawTextureAlphaNew(8 / 640.0
f, (347 -
h) / 480.0f,
3527 right_panel_window.
uFrameX = 483;
3529 right_panel_window.
uFrameZ = 334;
3621 v31,
Color16(0xFFu, 0xFFu, 0xFFu))
3623 100 * (
unsigned __int8)v29[8]);
3642 all_text_height = 0;
3644 i < pDialogueWindow->pStartingPosActiveItem +
3653 v36 = (174 - all_text_height) /
index;
3654 if (v36 > 32) v36 = 32;
3655 v40 = (174 - v36 *
index - all_text_height) / 2 - v36 / 2 + 138;
3657 i < pDialogueWindow->pNumPresenceButton +
3661 pButton->
uY = v36 + v40;
3664 pButton->
uHeight = pTextHeight;
3665 v40 = pButton->
uY + pTextHeight - 1;
3666 pButton->
uW = v40 + 6;
3667 pTextColor =
Color16(0xE1u, 0xCDu, 0x23u);
3669 pTextColor =
Color16(0xFFu, 0xFFu, 0xFFu);
3671 pTextColor, pButton->
sLabel, 3);
3675 w.uFrameWidth = 458;
3680 if (352 - pTextHeight < 8) {
3683 w.uFrameWidth, 13) +
3686 render->DrawTextureCustomHeight(8 / 640.0
f,
3687 (352 - pTextHeight) / 480.0
f,
3689 render->DrawTextureAlphaNew(8 / 640.0
f, (347 - pTextHeight) / 480.0
f,
3692 pTextFont, 13, 354 - pTextHeight, 0,
3700 jail_dialogue_window.
uFrameX = 483;
3702 jail_dialogue_window.
uFrameZ = 334;
3720 unsigned int temp_str_len;
3729 for (i = 0; i < 525; ++i) {
3730 test_string = strtok(NULL,
"\r") + 1;
3734 c = *(
unsigned char *)test_string;
3736 while ((
c !=
'\t') && (
c > 0)) {
3738 c = test_string[temp_str_len];
3740 tmp_pos = test_string + temp_str_len;
3741 if (*tmp_pos == 0) break_loop =
true;
3744 switch (decode_step) {
3747 if (!_strnicmp(test_string,
"wea", 3)) {
3751 if (!_strnicmp(test_string,
"arm", 3)) {
3755 if (!_strnicmp(test_string,
"mag", 3)) {
3759 if (!_strnicmp(test_string,
"alc", 3)) {
3763 if (!_strnicmp(test_string,
"sta", 3)) {
3767 if (!_strnicmp(test_string,
"boa", 3)) {
3771 if (!_strnicmp(test_string,
"tem", 3)) {
3775 if (!_strnicmp(test_string,
"tra", 3)) {
3779 if (!_strnicmp(test_string,
"tow", 3)) {
3784 if (!_strnicmp(test_string,
"tav", 3)) {
3788 if (!_strnicmp(test_string,
"ban", 3)) {
3792 if (!_strnicmp(test_string,
"fir", 3)) {
3796 if (!_strnicmp(test_string,
"air", 3)) {
3800 if (!_strnicmp(test_string,
"wat", 3)) {
3804 if (!_strnicmp(test_string,
"ear", 3)) {
3808 if (!_strnicmp(test_string,
"spi", 3)) {
3812 if (!_strnicmp(test_string,
"min", 3)) {
3816 if (!_strnicmp(test_string,
"bod", 3)) {
3820 if (!_strnicmp(test_string,
"lig", 3)) {
3824 if (!_strnicmp(test_string,
"dar", 3)) {
3828 if (!_strnicmp(test_string,
"ele",
3833 if (!_strnicmp(test_string,
"sel", 3)) {
3837 if (!_strnicmp(test_string,
"mir", 3)) {
3841 if (!_strnicmp(test_string,
"mer",
3906 test_string = tmp_pos + 1;
3907 }
while ((decode_step < 24) && !break_loop);
4003 0, 0,
window->GetWidth(),
window->GetHeight(), 165,
"");
4023 int elemsAlreadyPresent,
int elemsNeeded) {
4026 if (elemsAlreadyPresent < elemsNeeded) {
4027 for (i = 0; i < elemsAlreadyPresent; ++i) {
4028 if (valueToAdd == outPutSet[i])
return elemsAlreadyPresent;
4030 outPutSet[elemsAlreadyPresent] = valueToAdd;
4031 return elemsAlreadyPresent + 1;
4053 for (
int i = 0; i < 2; ++i) {
4054 for (
int j = 0; j < 4; ++j) {
4096 for (
int i = 0; i < 2; ++i) {
4097 for (
int j = 0; j < 2; ++j) {
4098 for (
int k = 0; k < 4; ++k) {
4162 for (i = 0; i < v37; ++i) {
4247 signed int item_count;
4248 signed int shop_index;
4249 int treasure_lvl = 0;
4255 for (item_count = 0;
4259 if (shop_index <= 14) {
4264 }
else if (shop_index <= 28) {
4266 if (item_count > 3) ++mdf;
4271 .item_class[rand() % 4];
4272 }
else if (shop_index <= 41) {
4275 }
else if (shop_index <= 53) {
4276 if (item_count < 6) {
4288 treasure_lvl, item_class,
4299 signed int item_count;
4300 signed int shop_index;
4301 int treasure_lvl = 0;
4307 for (item_count = 0;
4311 if (shop_index <= 14) {
4316 }
else if (shop_index <= 28) {
4318 if (item_count > 3) ++mdf;
4323 .item_class[rand() % 4];
4324 }
else if (shop_index <= 41) {
4327 }
else if (shop_index <= 53) {
4328 if (item_count < 6) {
4340 treasure_lvl, item_class,
4355 pBtn_ExitCancel =
CreateButton(471, 445, 169, 35, 1, 0,
UIMSG_Escape, 0, 0,
localization->
GetString(80),
4356 { { ui_exit_cancel_button_background } });
4411 if (
engine->config->flip_on_exit) {