Mercurial > mm7
comparison mm7_2.cpp @ 1414:110eac219e5a
ChestUI_WritePointedObjectStatusString
author | Nomad |
---|---|
date | Sat, 27 Jul 2013 16:32:20 +0200 |
parents | 3881d2f94eb1 |
children | ff495bf260d9 |
comparison
equal
deleted
inserted
replaced
1413:3881d2f94eb1 | 1414:110eac219e5a |
---|---|
213 | 213 |
214 default: | 214 default: |
215 assert(false && "Invalid enum value"); | 215 assert(false && "Invalid enum value"); |
216 } | 216 } |
217 return 0; | 217 return 0; |
218 | |
219 | |
220 /* | |
221 if ( profession > 39 ) | |
222 { | |
223 if ( profession != 40 ) | |
224 { | |
225 if ( profession == 41 ) | |
226 { | |
227 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 0, 0); | |
228 dword_50C9DC = 195; | |
229 ptr_50C9E0 = GetNPCData(sDialogue_SpeakingActorNPC_ID); | |
230 return 0; | |
231 } | |
232 if ( profession == 42 ) | |
233 { | |
234 v32 = 0; | |
235 v30 = 0; | |
236 v28 = 133; | |
237 v26 = 46; | |
238 } | |
239 else | |
240 { | |
241 if ( profession == 43 ) | |
242 { | |
243 v32 = 0; | |
244 v30 = 0; | |
245 v28 = 133; | |
246 v26 = 51; | |
247 } | |
248 else | |
249 { | |
250 if ( profession != 52 ) | |
251 return 0; | |
252 v32 = 0; | |
253 v30 = 0; | |
254 v28 = 133; | |
255 v26 = 86; | |
256 } | |
257 } | |
258 _42777D_CastSpell_UseWand_ShootArrow(v26, 0, v28, v30, v32); | |
259 return 0; | |
260 } | |
261 v20 = pOtherOverlayList->_4418B1(10005, 201, 0, 65536); | |
262 pParty->pPartyBuffs[PARTY_BUFF_WATER_WALK].Apply(pParty->uTimePlayed + 46080, 3u, 0, v20, 0); | |
263 pParty->pPartyBuffs[PARTY_BUFF_WATER_WALK].uFlags |= 1u; | |
264 v31 = 0; | |
265 v29 = 0; | |
266 v27 = 0; | |
267 v25 = 0; | |
268 v24 = -1; | |
269 v23 = 0; | |
270 v22 = 0; | |
271 v21 = (SoundID)12040; | |
272 LABEL_40: | |
273 pAudioPlayer->PlaySound(v21, v22, v23, v24, v25, v27, v29, v31); | |
274 return 0; | |
275 } | |
276 if ( profession == 39 ) | |
277 { | |
278 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor ) | |
279 { | |
280 ShowStatusBarString(pGlobalTXT_LocalizationStrings[494], 2u); | |
281 v31 = 0; | |
282 v29 = 0; | |
283 v27 = 0; | |
284 v25 = 0; | |
285 v24 = -1; | |
286 v23 = 0; | |
287 v22 = 0; | |
288 v21 = (SoundID)203; | |
289 } | |
290 else | |
291 { | |
292 v19 = pOtherOverlayList->_4418B1(10008, 203, 0, 65536); | |
293 pParty->pPartyBuffs[PARTY_BUFF_FLY].Apply(pParty->uTimePlayed + 30720, 3u, 1u, v19, 0); | |
294 pParty->pPartyBuffs[PARTY_BUFF_FLY].uFlags |= 1u; | |
295 v31 = 0; | |
296 v29 = 0; | |
297 v27 = 0; | |
298 v25 = 0; | |
299 v24 = -1; | |
300 v23 = 0; | |
301 v22 = 0; | |
302 v21 = (SoundID)11090; | |
303 } | |
304 pAudioPlayer->PlaySound(v21, v22, v23, v24, v25, v27, v29, v31); | |
305 return 0; | |
306 } | |
307 if ( profession == 10 ) | |
308 { | |
309 v18 = pParty->pPlayers; | |
310 do | |
311 { | |
312 v18->sHealth = v18->GetMaxHealth(); | |
313 ++v18; | |
314 } | |
315 while ( (signed int)v18 < (signed int)pParty->pHirelings ); | |
316 return 0; | |
317 } | |
318 if ( profession == 11 ) | |
319 { | |
320 v7 = pParty->pPlayers;//(char *)&pParty->pPlayers[0].pConditions[15]; | |
321 do | |
322 { | |
323 v8 = LODWORD(v7->pConditions[14]); | |
324 v9 = HIDWORD(v7->pConditions[14]); | |
325 v10 = LODWORD(v7->pConditions[15]); | |
326 v11 = HIDWORD(v7->pConditions[15]); | |
327 v12 = LODWORD(v7->pConditions[16]); | |
328 v13 = HIDWORD(v7->pConditions[16]); | |
329 v14 = LODWORD(v7->pConditions[19]); | |
330 v15 = HIDWORD(v7->pConditions[19]); | |
331 v16 = LODWORD(v7->pConditions[17]); | |
332 v17 = HIDWORD(v7->pConditions[17]); | |
333 memset(v7, 0, 0xA0u); | |
334 LODWORD(v7->pConditions[16]) = v12; | |
335 HIDWORD(v7->pConditions[16]) = v13; | |
336 LODWORD(v7->pConditions[15]) = v10; | |
337 HIDWORD(v7->pConditions[15]) = v11; | |
338 HIDWORD(v7->pConditions[14]) = v9; | |
339 LODWORD(v7->pConditions[19]) = v14; | |
340 HIDWORD(v7->pConditions[19]) = v15; | |
341 LODWORD(v7->pConditions[17]) = v16; | |
342 LODWORD(v7->pConditions[14]) = v8; | |
343 HIDWORD(v7->pConditions[17]) = v17; | |
344 v7->sHealth = v7->GetMaxHealth(); | |
345 ++v7; | |
346 } | |
347 while ( v7 <= pPlayers[3] ); | |
348 return 0; | |
349 } | |
350 if ( profession == 12 ) | |
351 { | |
352 v4 = pParty->pPlayers;//(char *)&pParty->pPlayers[0].pActiveSkills[8]; | |
353 do | |
354 { | |
355 v5 = LODWORD(v4->pConditions[19]);//*((int *)v4 - 32); | |
356 v6 = HIDWORD(v4->pConditions[19]);//*((int *)v4 - 31); | |
357 memset(v4->pConditions, 0, 0xA0u); | |
358 v4->pActiveSkills[8] = v5; | |
359 v4->pActiveSkills[10] = v6; | |
360 v4->sHealth = v4->GetMaxHealth(); | |
361 ++v4; | |
362 } | |
363 while ( v4 <= pPlayers[3] ); | |
364 return 0; | |
365 } | |
366 if ( profession == 33 ) | |
367 { | |
368 v1 = 14; | |
369 if ( pParty->uNumFoodRations >= 0xE ) | |
370 return 1; | |
371 v3 = 1; | |
372 LABEL_13: | |
373 Party::GiveFood(v3); | |
374 if ( pParty->uNumFoodRations > v1 ) | |
375 pParty->uNumFoodRations = v1; | |
376 return 0; | |
377 } | |
378 if ( profession == 34 ) | |
379 { | |
380 v1 = 14; | |
381 if ( pParty->uNumFoodRations >= 0xE ) | |
382 return 1; | |
383 v3 = 2; | |
384 goto LABEL_13; | |
385 } | |
386 return 0;*/ | |
387 } | 218 } |
388 | 219 |
389 //----- (004BBA85) -------------------------------------------------------- | 220 //----- (004BBA85) -------------------------------------------------------- |
390 const char *sub_4BBA85_bounties() | 221 const char *sub_4BBA85_bounties() |
391 { | 222 { |
552 pDialogueWindow->CreateButton(0x1E0u, 0xDCu, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x57u, 0, "", 0); | 383 pDialogueWindow->CreateButton(0x1E0u, 0xDCu, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x57u, 0, "", 0); |
553 pDialogueWindow->CreateButton(0x1E0u, 0xFAu, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x58u, 0, "", 0); | 384 pDialogueWindow->CreateButton(0x1E0u, 0xFAu, 0x8Cu, 0x1Eu, 1, 0, UIMSG_SelectNPCDialogueOption, 0x58u, 0, "", 0); |
554 pDialogueWindow->_41D08F_set_keyboard_control_group(4, 1, 0, 1); | 385 pDialogueWindow->_41D08F_set_keyboard_control_group(4, 1, 0, 1); |
555 } | 386 } |
556 } | 387 } |
557 // F8B1B4: using guessed type int dword_F8B1B4; | |
558 | |
559 // 4EE088: using guessed type __int16 word_4EE088_sound_ids[]; | |
560 | 388 |
561 //----- (004BC109) -------------------------------------------------------- | 389 //----- (004BC109) -------------------------------------------------------- |
562 void __cdecl ArenaFight() | 390 void __cdecl ArenaFight() |
563 { | 391 { |
564 int v0; // edi@1 | 392 int v0; // edi@1 |