comparison Events.cpp @ 310:4c2cdda88562

m
author Gloval
date Wed, 20 Feb 2013 01:40:18 +0400
parents 72faa54ff319
children ea55d6414029
comparison
equal deleted inserted replaced
308:6d584c95dcf8 310:4c2cdda88562
259 int v117; // [sp-4h] [bp-4ACh]@106 259 int v117; // [sp-4h] [bp-4ACh]@106
260 int v118; // [sp-4h] [bp-4ACh]@117 260 int v118; // [sp-4h] [bp-4ACh]@117
261 int v119; // [sp-4h] [bp-4ACh]@231 261 int v119; // [sp-4h] [bp-4ACh]@231
262 int v120; // [sp-4h] [bp-4ACh]@278 262 int v120; // [sp-4h] [bp-4ACh]@278
263 int v121; // [sp-4h] [bp-4ACh]@294 263 int v121; // [sp-4h] [bp-4ACh]@294
264 int v122; // [sp+10h] [bp-498h]@4 264 int curr_seq_num; // [sp+10h] [bp-498h]@4
265 //char *v123; // [sp+14h] [bp-494h]@0 265 //char *v123; // [sp+14h] [bp-494h]@0
266 //signed int v124; // [sp+18h] [bp-490h]@7 266 //signed int v124; // [sp+18h] [bp-490h]@7
267 signed int v125; // [sp+1Ch] [bp-48Ch]@155 267 signed int v125; // [sp+1Ch] [bp-48Ch]@155
268 int v126; // [sp+1Ch] [bp-48Ch]@262 268 int v126; // [sp+1Ch] [bp-48Ch]@262
269 int v127; // [sp+20h] [bp-488h]@4 269 int v127; // [sp+20h] [bp-488h]@4
292 { 292 {
293 if ( !GameUI_StatusBar_TimedStringTimeLeft ) 293 if ( !GameUI_StatusBar_TimedStringTimeLeft )
294 ShowStatusBarString(pGlobalTXT_LocalizationStrings[521], 2u);// Nothing here 294 ShowStatusBarString(pGlobalTXT_LocalizationStrings[521], 2u);// Nothing here
295 return; 295 return;
296 } 296 }
297 v127 = 2 * (uActiveCharacter == 0) + 4; 297 v127 = 2 * (uActiveCharacter == 0) + 4; //4 and 6
298 v122 = dword_597F18; 298 curr_seq_num = dword_597F18;
299 if ( _5C3420_pDecoration ) 299 if ( _5C3420_pDecoration )
300 { 300 {
301 uSomeEVT_NumEvents = uGlobalEVT_NumEvents; 301 uSomeEVT_NumEvents = uGlobalEVT_NumEvents;
302 pSomeEVT = pGlobalEVT; 302 pSomeEVT = pGlobalEVT;
303 memcpy(pSomeEVT_Events, pGlobalEVT_Index, 52800); //4400 evts 303 memcpy(pSomeEVT_Events, pGlobalEVT_Index, 52800); //4400 evts
320 //while ( 1 ) 320 //while ( 1 )
321 //{ 321 //{
322 if ( dword_5B65C4 ) 322 if ( dword_5B65C4 )
323 goto LABEL_301; 323 goto LABEL_301;
324 //v8 = v4; 324 //v8 = v4;
325 if ( pSomeEVT_Events[i/*v4*/].uEventID == uEventID && pSomeEVT_Events[i/*v4*/].event_sequence_num == v122 ) 325 if ( pSomeEVT_Events[i/*v4*/].uEventID == uEventID && pSomeEVT_Events[i/*v4*/].event_sequence_num == curr_seq_num )
326 { 326 {
327 //v9 = pSomeEVT_Events[v8].uEventOffsetInEVT; 327 //v9 = pSomeEVT_Events[v8].uEventOffsetInEVT;
328 //v10 = (ByteArray *)&v5[v9]; 328 //v10 = (ByteArray *)&v5[v9];
329 auto _evt = (_evt_raw *)(pSomeEVT + pSomeEVT_Events[i/*v4*/].uEventOffsetInEVT); 329 auto _evt = (_evt_raw *)(pSomeEVT + pSomeEVT_Events[i/*v4*/].uEventOffsetInEVT);
330 330
331 switch (_evt->v4) 331 switch (_evt->_e_type)
332 { 332 {
333 case EVENT_CheckSeason: 333 case EVENT_CheckSeason:
334 if ( !sub_4465DF_check_season(_evt->v5) ) 334 if ( !sub_4465DF_check_season(_evt->v5) )
335 { 335 {
336 ++v122; 336 ++curr_seq_num;
337 //v4 = v124; 337 //v4 = v124;
338 //v5 = pSomeEVT; 338 //v5 = pSomeEVT;
339 //v6 = v123; 339 //v6 = v123;
340 //v7 = ""; 340 //v7 = "";
341 break; 341 break;
377 if ( v128 == 13 ) 377 if ( v128 == 13 )
378 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u); 378 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u);
379 } 379 }
380 if (pAsyncMouse) 380 if (pAsyncMouse)
381 pAsyncMouse->Resume(); 381 pAsyncMouse->Resume();
382 ++v122; 382 ++curr_seq_num;
383 //v4 = v124; 383 //v4 = v124;
384 //v5 = pSomeEVT; 384 //v5 = pSomeEVT;
385 //v6 = v123; 385 //v6 = v123;
386 //v7 = ""; 386 //v7 = "";
387 break; 387 break;
400 if ( v128 == 13 ) 400 if ( v128 == 13 )
401 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u); 401 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u);
402 } 402 }
403 if (pAsyncMouse) 403 if (pAsyncMouse)
404 pAsyncMouse->Resume(); 404 pAsyncMouse->Resume();
405 ++v122; 405 ++curr_seq_num;
406 //v4 = v124; 406 //v4 = v124;
407 //v5 = pSomeEVT; 407 //v5 = pSomeEVT;
408 //v6 = v123; 408 //v6 = v123;
409 //v7 = ""; 409 //v7 = "";
410 410
424 if ( v128 == 13 ) 424 if ( v128 == 13 )
425 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u); 425 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u);
426 } 426 }
427 if (pAsyncMouse) 427 if (pAsyncMouse)
428 pAsyncMouse->Resume(); 428 pAsyncMouse->Resume();
429 ++v122; 429 ++curr_seq_num;
430 //v4 = v124; 430 //v4 = v124;
431 //v5 = pSomeEVT; 431 //v5 = pSomeEVT;
432 //v6 = v123; 432 //v6 = v123;
433 //v7 = ""; 433 //v7 = "";
434 } 434 }
464 while ( v23 < v19 || !*(&v136 + _evt->v6) ) 464 while ( v23 < v19 || !*(&v136 + _evt->v6) )
465 { 465 {
466 ++v20; 466 ++v20;
467 if ( v20 >= 4 ) 467 if ( v20 >= 4 )
468 { 468 {
469 ++v122; 469 ++curr_seq_num;
470 //v4 = v124; 470 //v4 = v124;
471 //v5 = pSomeEVT; 471 //v5 = pSomeEVT;
472 //v6 = v123; 472 //v6 = v123;
473 //v7 = ""; 473 //v7 = "";
474 break; 474 break;
489 if ( (v24 & 0x3F) >= v19 && *(&v136 + _evt->v6) ) 489 if ( (v24 & 0x3F) >= v19 && *(&v136 + _evt->v6) )
490 { 490 {
491 v11 = _evt->v11; 491 v11 = _evt->v11;
492 goto LABEL_130; 492 goto LABEL_130;
493 } 493 }
494 ++v122; 494 ++curr_seq_num;
495 //v4 = v124; 495 //v4 = v124;
496 //v5 = pSomeEVT; 496 //v5 = pSomeEVT;
497 //v6 = v123; 497 //v6 = v123;
498 //v7 = ""; 498 //v7 = "";
499 } 499 }
514 else 514 else
515 { 515 {
516 bDialogueUI_InitializeActor_NPC_ID = _evt->v5 516 bDialogueUI_InitializeActor_NPC_ID = _evt->v5
517 + ((_evt->v6 + ((_evt->v7 + ((unsigned int)_evt->v8 << 8)) << 8)) << 8); 517 + ((_evt->v6 + ((_evt->v7 + ((unsigned int)_evt->v8 << 8)) << 8)) << 8);
518 } 518 }
519 ++v122; 519 ++curr_seq_num;
520 //v4 = v124; 520 //v4 = v124;
521 //v5 = pSomeEVT; 521 //v5 = pSomeEVT;
522 //v6 = v123; 522 //v6 = v123;
523 //v7 = ""; 523 //v7 = "";
524 break; 524 break;
532 { 532 {
533 v26 = _5C3420_pDecoration; 533 v26 = _5C3420_pDecoration;
534 stru_5E4C90._decor_events[_5C3420_pDecoration->_idx_in_stru123 - 75] = 0; 534 stru_5E4C90._decor_events[_5C3420_pDecoration->_idx_in_stru123 - 75] = 0;
535 LOBYTE(v26->field_2) |= 0x20u; 535 LOBYTE(v26->field_2) |= 0x20u;
536 } 536 }
537 ++v122; 537 ++curr_seq_num;
538 //v4 = v124; 538 //v4 = v124;
539 //v5 = pSomeEVT; 539 //v5 = pSomeEVT;
540 //v6 = v123; 540 //v6 = v123;
541 //v7 = ""; 541 //v7 = "";
542 break; 542 break;
543 case EVENT_SetNPCGreeting: 543 case EVENT_SetNPCGreeting:
544 v27 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); 544 v27 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8);
545 v28 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); 545 v28 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8);
546 pNPCStats->pNewNPCData[v27].uFlags &= 0xFFFFFFFCu; 546 pNPCStats->pNewNPCData[v27].uFlags &= 0xFFFFFFFCu;
547 pNPCStats->pNewNPCData[v27].greet = v28; 547 pNPCStats->pNewNPCData[v27].greet = v28;
548 ++v122; 548 ++curr_seq_num;
549 //v4 = v124; 549 //v4 = v124;
550 //v5 = pSomeEVT; 550 //v5 = pSomeEVT;
551 //v6 = v123; 551 //v6 = v123;
552 //v7 = ""; 552 //v7 = "";
553 break; 553 break;
554 case EVENT_SetNPCTopic: 554 case EVENT_SetNPCTopic:
555 {
556
555 v29 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); 557 v29 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8);
556 v30 = _evt->v10 + ((_evt->v11 + ((_evt->v12 + ((uint)_evt->v13 << 8)) << 8)) << 8); 558 v30 = _evt->v10 + ((_evt->v11 + ((_evt->v12 + ((uint)_evt->v13 << 8)) << 8)) << 8);
557 v31 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); 559 v31 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8);
558 v32 = _evt->v9; 560 v32 = _evt->v9;
559 v33 = &pNPCStats->pNewNPCData[v31]; 561 v33 = &pNPCStats->pNewNPCData[v31];
616 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); 618 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0);
617 ptr_F8B1E8 = pNPCTopics[90].pText; 619 ptr_F8B1E8 = pNPCTopics[90].pText;
618 } 620 }
619 } 621 }
620 } 622 }
621 ++v122; 623 ++curr_seq_num;
624 }
622 //v4 = v124; 625 //v4 = v124;
623 //v5 = pSomeEVT; 626 //v5 = pSomeEVT;
624 //v6 = v123; 627 //v6 = v123;
625 //v7 = ""; 628 //v7 = "";
626 break; 629 break;
627 case EVENT_NPCSetItem: 630 case EVENT_NPCSetItem:
628 sub_448518_npc_set_item(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), 631 sub_448518_npc_set_item(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8),
629 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); 632 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13);
630 ++v122; 633 ++curr_seq_num;
631 //v4 = v124; 634 //v4 = v124;
632 //v5 = pSomeEVT; 635 //v5 = pSomeEVT;
633 //v6 = v123; 636 //v6 = v123;
634 //v7 = ""; 637 //v7 = "";
635 break; 638 break;
636 case EVENT_SetActorItem: 639 case EVENT_SetActorItem:
637 Actor::GiveItem(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), 640 Actor::GiveItem(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8),
638 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); 641 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13);
639 ++v122; 642 ++curr_seq_num;
640 //v4 = v124; 643 //v4 = v124;
641 //v5 = pSomeEVT; 644 //v5 = pSomeEVT;
642 //v6 = v123; 645 //v6 = v123;
643 //v7 = ""; 646 //v7 = "";
644 break; 647 break;
645 case EVENT_SetNPCGroupNews: 648 case EVENT_SetNPCGroupNews:
646 pNPCStats->pGroups_copy[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)] = _evt->v9 + ((uint)_evt->v10 << 8); 649 pNPCStats->pGroups_copy[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)] = _evt->v9 + ((uint)_evt->v10 << 8);
647 ++v122; 650 ++curr_seq_num;
648 //v4 = v124; 651 //v4 = v124;
649 //v5 = pSomeEVT; 652 //v5 = pSomeEVT;
650 //v6 = v123; 653 //v6 = v123;
651 //v7 = ""; 654 //v7 = "";
652 break; 655 break;
653 case EVENT_SetActorGroup: 656 case EVENT_SetActorGroup:
654 __debugbreak(); 657 __debugbreak();
655 *(&pActors[0].uGroup + 0x11000000 * _evt->v8 + 209 * (_evt->v5 + ((_evt->v6 + ((uint)_evt->v7 << 8)) << 8))) = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); 658 *(&pActors[0].uGroup + 0x11000000 * _evt->v8 + 209 * (_evt->v5 + ((_evt->v6 + ((uint)_evt->v7 << 8)) << 8))) = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8);
656 ++v122; 659 ++curr_seq_num;
657 //v4 = v124; 660 //v4 = v124;
658 //v5 = pSomeEVT; 661 //v5 = pSomeEVT;
659 //v6 = v123; 662 //v6 = v123;
660 //v7 = ""; 663 //v7 = "";
661 break; 664 break;
674 ++v41; 677 ++v41;
675 --v40; 678 --v40;
676 } 679 }
677 while ( v40 ); 680 while ( v40 );
678 } 681 }
679 ++v122; 682 ++curr_seq_num;
680 //v4 = v124; 683 //v4 = v124;
681 //v5 = pSomeEVT; 684 //v5 = pSomeEVT;
682 //v6 = v123; 685 //v6 = v123;
683 //v7 = ""; 686 //v7 = "";
684 break; 687 break;
697 ++v45; 700 ++v45;
698 --v44; 701 --v44;
699 } 702 }
700 while ( v44 ); 703 while ( v44 );
701 } 704 }
702 ++v122; 705 ++curr_seq_num;
703 //v4 = v124; 706 //v4 = v124;
704 //v5 = pSomeEVT; 707 //v5 = pSomeEVT;
705 //v6 = v123; 708 //v6 = v123;
706 //v7 = ""; 709 //v7 = "";
707 break; 710 break;
708 case EVENT_MoveNPC: 711 case EVENT_MoveNPC:
712 {
713
709 pNPCStats->pNewNPCData[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)].Location2D = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); 714 pNPCStats->pNewNPCData[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)].Location2D = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8);
710 if ( ptr_507BC0 ) 715 if ( ptr_507BC0 )
711 { 716 {
712 v46 = ptr_507BC0->ptr_1C; 717 v46 = ptr_507BC0->ptr_1C;
713 if ( v46 == (void *)165 ) 718 if ( v46 == (void *)165 )
743 { 748 {
744 if ( v46 == (void *)553 ) 749 if ( v46 == (void *)553 )
745 pVideoPlayer->bLoopPlaying = 0; 750 pVideoPlayer->bLoopPlaying = 0;
746 } 751 }
747 } 752 }
748 ++v122; 753 ++curr_seq_num;
754 }
749 //v4 = v124; 755 //v4 = v124;
750 //v5 = pSomeEVT; 756 //v5 = pSomeEVT;
751 //v6 = v123; 757 //v6 = v123;
752 //v7 = ""; 758 //v7 = "";
753 break; 759 break;
754 case EVENT_Jmp: 760 case EVENT_Jmp:
755 //v124 = -1; 761 //v124 = -1;
756 v122 = _evt->v5 - 1; 762 curr_seq_num = _evt->v5 - 1;
757 ++v122; 763 ++curr_seq_num;
758 //v4 = v124; 764 //v4 = v124;
759 //v5 = pSomeEVT; 765 //v5 = pSomeEVT;
760 //v6 = v123; 766 //v6 = v123;
761 //v7 = ""; 767 //v7 = "";
762 break; 768 break;
767 v117 = 0; 773 v117 = 0;
768 v113 = _evt->v6; 774 v113 = _evt->v6;
769 v53 = (unsigned __int8)v50; 775 v53 = (unsigned __int8)v50;
770 v52 = &pParty->pPlayers[v53]; 776 v52 = &pParty->pPlayers[v53];
771 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117); 777 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117);
772 ++v122; 778 ++curr_seq_num;
773 //v4 = v124; 779 //v4 = v124;
774 //v5 = pSomeEVT; 780 //v5 = pSomeEVT;
775 //v6 = v123; 781 //v6 = v123;
776 //v7 = ""; 782 //v7 = "";
777 break; 783 break;
780 { 786 {
781 v117 = 0; 787 v117 = 0;
782 v113 = _evt->v6; 788 v113 = _evt->v6;
783 v52 = pPlayers[uActiveCharacter]; 789 v52 = pPlayers[uActiveCharacter];
784 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117); 790 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117);
785 ++v122; 791 ++curr_seq_num;
786 //v4 = v124; 792 //v4 = v124;
787 //v5 = pSomeEVT; 793 //v5 = pSomeEVT;
788 //v6 = v123; 794 //v6 = v123;
789 //v7 = ""; 795 //v7 = "";
790 break; 796 break;
794 v117 = 0; 800 v117 = 0;
795 v113 = _evt->v6; 801 v113 = _evt->v6;
796 v53 = rand() % 4; 802 v53 = rand() % 4;
797 v52 = &pParty->pPlayers[v53]; 803 v52 = &pParty->pPlayers[v53];
798 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117); 804 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117);
799 ++v122; 805 ++curr_seq_num;
800 //v4 = v124; 806 //v4 = v124;
801 //v5 = pSomeEVT; 807 //v5 = pSomeEVT;
802 //v6 = v123; 808 //v6 = v123;
803 //v7 = ""; 809 //v7 = "";
804 break; 810 break;
809 v51->PlayEmotion((CHARACTER_EXPRESSION_ID)_evt->v6, 0); 815 v51->PlayEmotion((CHARACTER_EXPRESSION_ID)_evt->v6, 0);
810 ++v51; 816 ++v51;
811 } 817 }
812 while ( (signed int)v51 < (signed int)pParty->pHirelings ); 818 while ( (signed int)v51 < (signed int)pParty->pHirelings );
813 //LABEL_291: 819 //LABEL_291:
814 ++v122; 820 ++curr_seq_num;
815 //v4 = v124; 821 //v4 = v124;
816 //v5 = pSomeEVT; 822 //v5 = pSomeEVT;
817 //v6 = v123; 823 //v6 = v123;
818 //v7 = ""; 824 //v7 = "";
819 break; 825 break;
840 v57 = rand() % 4; 846 v57 = rand() % 4;
841 LABEL_119: 847 LABEL_119:
842 v56 = &pParty->pPlayers[v57]; 848 v56 = &pParty->pPlayers[v57];
843 LABEL_120: 849 LABEL_120:
844 v56->PlaySound((PlayerSpeech)v114, v118); 850 v56->PlaySound((PlayerSpeech)v114, v118);
845 ++v122; 851 ++curr_seq_num;
846 //v4 = v124; 852 //v4 = v124;
847 //v5 = pSomeEVT; 853 //v5 = pSomeEVT;
848 //v6 = v123; 854 //v6 = v123;
849 //v7 = ""; 855 //v7 = "";
850 break; 856 break;
854 { 860 {
855 v55->PlaySound((PlayerSpeech)_evt->v6, 0); 861 v55->PlaySound((PlayerSpeech)_evt->v6, 0);
856 ++v55; 862 ++v55;
857 } 863 }
858 //while ( (signed int)v55 < (signed int)pParty->pHirelings ); 864 //while ( (signed int)v55 < (signed int)pParty->pHirelings );
859 ++v122; 865 ++curr_seq_num;
860 //v4 = v124; 866 //v4 = v124;
861 //v5 = pSomeEVT; 867 //v5 = pSomeEVT;
862 //v6 = v123; 868 //v6 = v123;
863 //v7 = ""; 869 //v7 = "";
864 break; 870 break;
865 case EVENT_ForPartyMember: 871 case EVENT_ForPartyMember:
866 v127 = _evt->v5; 872 v127 = _evt->v5;
867 ++v122; 873 ++curr_seq_num;
868 //v4 = v124; 874 //v4 = v124;
869 //v5 = pSomeEVT; 875 //v5 = pSomeEVT;
870 //v6 = v123; 876 //v6 = v123;
871 //v7 = ""; 877 //v7 = "";
872 break; 878 break;
875 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), 881 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8),
876 _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8), 882 _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8),
877 _evt->v17 + ((_evt->v18 + ((_evt->v19 + ((uint)_evt->v20 << 8)) << 8)) << 8), 883 _evt->v17 + ((_evt->v18 + ((_evt->v19 + ((uint)_evt->v20 << 8)) << 8)) << 8),
878 _evt->v21 + ((_evt->v22 + ((_evt->v23 + ((uint)_evt->v24 << 8)) << 8)) << 8), 884 _evt->v21 + ((_evt->v22 + ((_evt->v23 + ((uint)_evt->v24 << 8)) << 8)) << 8),
879 _evt->v25, _evt->v26, 0, 0); 885 _evt->v25, _evt->v26, 0, 0);
880 ++v122; 886 ++curr_seq_num;
881 //v4 = v124; 887 //v4 = v124;
882 //v5 = pSomeEVT; 888 //v5 = pSomeEVT;
883 //v6 = v123; 889 //v6 = v123;
884 //v7 = ""; 890 //v7 = "";
885 break; 891 break;
896 break; 902 break;
897 ++v130; 903 ++v130;
898 ++v59; 904 ++v59;
899 if ( (signed int)v59 >= (signed int)pParty->pHirelings ) 905 if ( (signed int)v59 >= (signed int)pParty->pHirelings )
900 { 906 {
901 ++v122; 907 ++curr_seq_num;
902 //v4 = v124; 908 //v4 = v124;
903 //v5 = pSomeEVT; 909 //v5 = pSomeEVT;
904 //v6 = v123; 910 //v6 = v123;
905 //v7 = ""; 911 //v7 = "";
906 break; 912 break;
939 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), 945 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)),
940 v58); 946 v58);
941 LABEL_140: 947 LABEL_140:
942 if ( v62 ) 948 if ( v62 )
943 goto LABEL_129; 949 goto LABEL_129;
944 ++v122; 950 ++curr_seq_num;
945 //v4 = v124; 951 //v4 = v124;
946 //v5 = pSomeEVT; 952 //v5 = pSomeEVT;
947 //v6 = v123; 953 //v6 = v123;
948 //v7 = ""; 954 //v7 = "";
949 break; 955 break;
959 { 965 {
960 v64 = 0; 966 v64 = 0;
961 if ( (void *)pParty->pPickedItem.uItemID == v63 ) 967 if ( (void *)pParty->pPickedItem.uItemID == v63 )
962 { 968 {
963 pMouse->RemoveHoldingItem(); 969 pMouse->RemoveHoldingItem();
964 ++v122; 970 ++curr_seq_num;
965 //v4 = v124; 971 //v4 = v124;
966 //v5 = pSomeEVT; 972 //v5 = pSomeEVT;
967 //v6 = v123; 973 //v6 = v123;
968 //v7 = ""; 974 //v7 = "";
969 break; 975 break;
974 do 980 do
975 { 981 {
976 if ( *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v67 + 5] == v63 ) 982 if ( *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v67 + 5] == v63 )
977 { 983 {
978 v66->RemoveItemAtInventoryIndex(v65); 984 v66->RemoveItemAtInventoryIndex(v65);
979 ++v122; 985 ++curr_seq_num;
980 //v4 = v124; 986 //v4 = v124;
981 //v5 = pSomeEVT; 987 //v5 = pSomeEVT;
982 //v6 = v123; 988 //v6 = v123;
983 //v7 = ""; 989 //v7 = "";
984 break; 990 break;
992 do 998 do
993 { 999 {
994 if ( *(int *)v69 && *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v69 + 5] == v63 ) 1000 if ( *(int *)v69 && *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v69 + 5] == v63 )
995 { 1001 {
996 *(&v66->pEquipment.uOffHand + v68) = 0; 1002 *(&v66->pEquipment.uOffHand + v68) = 0;
997 ++v122; 1003 ++curr_seq_num;
998 //v4 = v124; 1004 //v4 = v124;
999 //v5 = pSomeEVT; 1005 //v5 = pSomeEVT;
1000 //v6 = v123; 1006 //v6 = v123;
1001 //v7 = ""; 1007 //v7 = "";
1002 break; 1008 break;
1040 } 1046 }
1041 LABEL_170: 1047 LABEL_170:
1042 v125 += 4; 1048 v125 += 4;
1043 if ( v125 > (signed int)&pPlayers[4] ) 1049 if ( v125 > (signed int)&pPlayers[4] )
1044 { 1050 {
1045 ++v122; 1051 ++curr_seq_num;
1046 //v4 = v124; 1052 //v4 = v124;
1047 //v5 = pSomeEVT; 1053 //v5 = pSomeEVT;
1048 //v6 = v123; 1054 //v6 = v123;
1049 //v7 = ""; 1055 //v7 = "";
1050 break; 1056 break;
1062 { 1068 {
1063 if ( v127 == 6 ) 1069 if ( v127 == 6 )
1064 goto LABEL_180; 1070 goto LABEL_180;
1065 LABEL_183: 1071 LABEL_183:
1066 ((Player *)v6)->SubtractVariable((enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), v63); 1072 ((Player *)v6)->SubtractVariable((enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), v63);
1067 ++v122; 1073 ++curr_seq_num;
1068 //v4 = v124; 1074 //v4 = v124;
1069 //v5 = pSomeEVT; 1075 //v5 = pSomeEVT;
1070 //v6 = v123; 1076 //v6 = v123;
1071 //v7 = ""; 1077 //v7 = "";
1072 break; 1078 break;
1093 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), 1099 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)),
1094 v63); 1100 v63);
1095 ++v76; 1101 ++v76;
1096 } 1102 }
1097 while ( (signed int)v76 < (signed int)pParty->pHirelings ); 1103 while ( (signed int)v76 < (signed int)pParty->pHirelings );
1098 ++v122; 1104 ++curr_seq_num;
1099 //v4 = v124; 1105 //v4 = v124;
1100 //v5 = pSomeEVT; 1106 //v5 = pSomeEVT;
1101 //v6 = v123; 1107 //v6 = v123;
1102 //v7 = ""; 1108 //v7 = "";
1103 break; 1109 break;
1114 { 1120 {
1115 if ( v127 == 6 ) 1121 if ( v127 == 6 )
1116 goto LABEL_194; 1122 goto LABEL_194;
1117 LABEL_197: 1123 LABEL_197:
1118 ((Player *)v6)->SetVariable((enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), v77); 1124 ((Player *)v6)->SetVariable((enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), v77);
1119 ++v122; 1125 ++curr_seq_num;
1120 //v4 = v124; 1126 //v4 = v124;
1121 //v5 = pSomeEVT; 1127 //v5 = pSomeEVT;
1122 //v6 = v123; 1128 //v6 = v123;
1123 //v7 = ""; 1129 //v7 = "";
1124 break; 1130 break;
1145 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), 1151 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)),
1146 v77); 1152 v77);
1147 ++v79; 1153 ++v79;
1148 } 1154 }
1149 while ( (signed int)v79 < (signed int)pParty->pHirelings ); 1155 while ( (signed int)v79 < (signed int)pParty->pHirelings );
1150 ++v122; 1156 ++curr_seq_num;
1151 //v4 = v124; 1157 //v4 = v124;
1152 //v5 = pSomeEVT; 1158 //v5 = pSomeEVT;
1153 //v6 = v123; 1159 //v6 = v123;
1154 //v7 = ""; 1160 //v7 = "";
1155 break; 1161 break;
1198 while ( (signed int)v82 < (signed int)pParty->pHirelings ); 1204 while ( (signed int)v82 < (signed int)pParty->pHirelings );
1199 LABEL_212: 1205 LABEL_212:
1200 v83 = _evt->v5 + ((uint)_evt->v6 << 8); 1206 v83 = _evt->v5 + ((uint)_evt->v6 << 8);
1201 if ( v83 == 21 || v83 == 22 || v83 == 23 || v83 == 24 ) 1207 if ( v83 == 21 || v83 == 22 || v83 == 23 || v83 == 24 )
1202 viewparams->bRedrawGameUI = 1; 1208 viewparams->bRedrawGameUI = 1;
1203 ++v122; 1209 ++curr_seq_num;
1204 //v4 = v124; 1210 //v4 = v124;
1205 //v5 = pSomeEVT; 1211 //v5 = pSomeEVT;
1206 //v6 = v123; 1212 //v6 = v123;
1207 //v7 = ""; 1213 //v7 = "";
1208 break; 1214 break;
1212 strcpy( 1218 strcpy(
1213 GameUI_StatusBar_TimedString, 1219 GameUI_StatusBar_TimedString,
1214 &pLevelStr[pLevelStrOffsets[_evt->v5 1220 &pLevelStr[pLevelStrOffsets[_evt->v5
1215 + ((_evt->v6 1221 + ((_evt->v6
1216 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)]]); 1222 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)]]);
1217 v105 = v122; 1223 v105 = curr_seq_num;
1218 v121 = 26; 1224 v121 = 26;
1219 LABEL_295: 1225 LABEL_295:
1220 sub_4451A8_press_any_key(uEventID, v105, v121); 1226 sub_4451A8_press_any_key(uEventID, v105, v121);
1221 LABEL_301: 1227 LABEL_301:
1222 if ( v133 == 1 ) 1228 if ( v133 == 1 )
1233 { 1239 {
1234 v11 = _evt->v17; 1240 v11 = _evt->v17;
1235 LABEL_130: 1241 LABEL_130:
1236 //v124 = -1; 1242 //v124 = -1;
1237 LABEL_131: 1243 LABEL_131:
1238 v122 = v11 - 1; 1244 curr_seq_num = v11 - 1;
1239 } 1245 }
1240 ++v122; 1246 ++curr_seq_num;
1241 //v4 = v124; 1247 //v4 = v124;
1242 //v5 = pSomeEVT; 1248 //v5 = pSomeEVT;
1243 //v6 = v123; 1249 //v6 = v123;
1244 //v7 = ""; 1250 //v7 = "";
1245 break; 1251 break;
1260 } 1266 }
1261 if ( v86 == 4 ) 1267 if ( v86 == 4 )
1262 { 1268 {
1263 if ( !uActiveCharacter ) 1269 if ( !uActiveCharacter )
1264 { 1270 {
1265 ++v122; 1271 ++curr_seq_num;
1266 //v4 = v124; 1272 //v4 = v124;
1267 //v5 = pSomeEVT; 1273 //v5 = pSomeEVT;
1268 //v6 = v123; 1274 //v6 = v123;
1269 //v7 = ""; 1275 //v7 = "";
1270 break; 1276 break;
1275 goto LABEL_234; 1281 goto LABEL_234;
1276 } 1282 }
1277 if ( v86 != 5 ) 1283 if ( v86 != 5 )
1278 { 1284 {
1279 v119 = _evt->v6; 1285 v119 = _evt->v6;
1280 v115 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v1 << 8)) << 8)) << 8); 1286 v115 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10<< 8)) << 8)) << 8);
1281 v89 = rand() % 4; 1287 v89 = rand() % 4;
1282 LABEL_233: 1288 LABEL_233:
1283 v88 = &pParty->pPlayers[v89]; 1289 v88 = &pParty->pPlayers[v89];
1284 LABEL_234: 1290 LABEL_234:
1285 v88->ReceiveDamage(v115, v119); 1291 v88->ReceiveDamage(v115, v119);
1286 ++v122; 1292 ++curr_seq_num;
1287 //v4 = v124; 1293 //v4 = v124;
1288 //v5 = pSomeEVT; 1294 //v5 = pSomeEVT;
1289 //v6 = v123; 1295 //v6 = v123;
1290 //v7 = ""; 1296 //v7 = "";
1291 break; 1297 break;
1295 { 1301 {
1296 v87->ReceiveDamage(v85, _evt->v6); 1302 v87->ReceiveDamage(v85, _evt->v6);
1297 ++v87; 1303 ++v87;
1298 } 1304 }
1299 while ( (signed int)v87 < (signed int)pParty->pHirelings ); 1305 while ( (signed int)v87 < (signed int)pParty->pHirelings );
1300 ++v122; 1306 ++curr_seq_num;
1301 //v4 = v124; 1307 //v4 = v124;
1302 //v5 = pSomeEVT; 1308 //v5 = pSomeEVT;
1303 //v6 = v123; 1309 //v6 = v123;
1304 //v7 = ""; 1310 //v7 = "";
1305 break; 1311 break;
1306 case EVENT_ToggleIndoorLight: 1312 case EVENT_ToggleIndoorLight:
1307 pIndoor->ToggleLight(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), _evt->v9); 1313 pIndoor->ToggleLight(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), _evt->v9);
1308 ++v122; 1314 ++curr_seq_num;
1309 //v4 = v124; 1315 //v4 = v124;
1310 //v5 = pSomeEVT; 1316 //v5 = pSomeEVT;
1311 //v6 = v123; 1317 //v6 = v123;
1312 //v7 = ""; 1318 //v7 = "";
1313 break; 1319 break;
1314 case EVENT_SetFacesBit: 1320 case EVENT_SetFacesBit:
1315 sub_44892E_set_faces_bit(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), 1321 sub_44892E_set_faces_bit(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8),
1316 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); 1322 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13);
1317 ++v122; 1323 ++curr_seq_num;
1318 //v4 = v124; 1324 //v4 = v124;
1319 //v5 = pSomeEVT; 1325 //v5 = pSomeEVT;
1320 //v6 = v123; 1326 //v6 = v123;
1321 //v7 = ""; 1327 //v7 = "";
1322 break; 1328 break;
1323 case EVENT_ToggleChestFlag: 1329 case EVENT_ToggleChestFlag:
1324 Chest::ToggleFlag(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), 1330 Chest::ToggleFlag(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8),
1325 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); 1331 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13);
1326 ++v122; 1332 ++curr_seq_num;
1327 //v4 = v124; 1333 //v4 = v124;
1328 //v5 = pSomeEVT; 1334 //v5 = pSomeEVT;
1329 //v6 = v123; 1335 //v6 = v123;
1330 //v7 = ""; 1336 //v7 = "";
1331 break; 1337 break;
1332 case EVENT_ToggleActorFlag: 1338 case EVENT_ToggleActorFlag:
1333 Actor::ToggleFlag(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), 1339 Actor::ToggleFlag(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8),
1334 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); 1340 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13);
1335 ++v122; 1341 ++curr_seq_num;
1336 //v4 = v124; 1342 //v4 = v124;
1337 //v5 = pSomeEVT; 1343 //v5 = pSomeEVT;
1338 //v6 = v123; 1344 //v6 = v123;
1339 //v7 = ""; 1345 //v7 = "";
1340 break; 1346 break;
1341 case EVENT_ToggleActorGroupFlag: 1347 case EVENT_ToggleActorGroupFlag:
1342 ToggleActorGroupFlag( 1348 ToggleActorGroupFlag(
1343 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), 1349 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8),
1344 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), 1350 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8),
1345 _evt->v13); 1351 _evt->v13);
1346 ++v122; 1352 ++curr_seq_num;
1347 //v4 = v124; 1353 //v4 = v124;
1348 //v5 = pSomeEVT; 1354 //v5 = pSomeEVT;
1349 //v6 = v123; 1355 //v6 = v123;
1350 //v7 = ""; 1356 //v7 = "";
1351 break; 1357 break;
1352 case EVENT_SetSnow: 1358 case EVENT_SetSnow:
1353 if ( !_evt->v5 ) 1359 if ( !_evt->v5 )
1354 pWeather->bRenderSnow = _evt->v6 != 0; 1360 pWeather->bRenderSnow = _evt->v6 != 0;
1355 ++v122; 1361 ++curr_seq_num;
1356 //v4 = v124; 1362 //v4 = v124;
1357 //v5 = pSomeEVT; 1363 //v5 = pSomeEVT;
1358 //v6 = v123; 1364 //v6 = v123;
1359 //v7 = ""; 1365 //v7 = "";
1360 break; 1366 break;
1363 if ( _5C3420_pDecoration ) 1369 if ( _5C3420_pDecoration )
1364 { 1370 {
1365 if ( _5C3420_pDecoration == (LevelDecoration *)1 ) 1371 if ( _5C3420_pDecoration == (LevelDecoration *)1 )
1366 { 1372 {
1367 ptr_F8B1E8 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90]; 1373 ptr_F8B1E8 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90];
1368 ++v122; 1374 ++curr_seq_num;
1369 //v4 = v124; 1375 //v4 = v124;
1370 //v5 = pSomeEVT; 1376 //v5 = pSomeEVT;
1371 //v6 = v123; 1377 //v6 = v123;
1372 //v7 = ""; 1378 //v7 = "";
1373 break; 1379 break;
1375 if ( a3 == 1 ) 1381 if ( a3 == 1 )
1376 { 1382 {
1377 v91 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90]; 1383 v91 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90];
1378 //LABEL_248: 1384 //LABEL_248:
1379 ShowStatusBarString(v91, 2u); 1385 ShowStatusBarString(v91, 2u);
1380 ++v122; 1386 ++curr_seq_num;
1381 //v4 = v124; 1387 //v4 = v124;
1382 //v5 = pSomeEVT; 1388 //v5 = pSomeEVT;
1383 //v6 = v123; 1389 //v6 = v123;
1384 //v7 = ""; 1390 //v7 = "";
1385 break; 1391 break;
1389 { 1395 {
1390 if ( a3 == 1 ) 1396 if ( a3 == 1 )
1391 { 1397 {
1392 v91 = &pLevelStr[pLevelStrOffsets[v90]]; 1398 v91 = &pLevelStr[pLevelStrOffsets[v90]];
1393 ShowStatusBarString(v91, 2u); 1399 ShowStatusBarString(v91, 2u);
1394 ++v122; 1400 ++curr_seq_num;
1395 //v4 = v124; 1401 //v4 = v124;
1396 //v5 = pSomeEVT; 1402 //v5 = pSomeEVT;
1397 //v6 = v123; 1403 //v6 = v123;
1398 //v7 = ""; 1404 //v7 = "";
1399 break; 1405 break;
1400 } 1406 }
1401 } 1407 }
1402 ++v122; 1408 ++curr_seq_num;
1403 //v4 = v124; 1409 //v4 = v124;
1404 //v5 = pSomeEVT; 1410 //v5 = pSomeEVT;
1405 //v6 = v123; 1411 //v6 = v123;
1406 //v7 = ""; 1412 //v7 = "";
1407 break; 1413 break;
1415 } 1421 }
1416 else 1422 else
1417 { 1423 {
1418 strcpy(byte_5B0938, &pLevelStr[pLevelStrOffsets[v92]]); 1424 strcpy(byte_5B0938, &pLevelStr[pLevelStrOffsets[v92]]);
1419 } 1425 }
1420 ++v122; 1426 ++curr_seq_num;
1421 //v4 = v124; 1427 //v4 = v124;
1422 //v5 = pSomeEVT; 1428 //v5 = pSomeEVT;
1423 //v6 = v123; 1429 //v6 = v123;
1424 //v7 = ""; 1430 //v7 = "";
1425 break; 1431 break;
1428 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8), 1434 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8),
1429 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8), 1435 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8),
1430 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8), 1436 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8),
1431 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8), 1437 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8),
1432 _evt->v28 + ((_evt->v29 + ((_evt->v30 + ((uint)_evt->v31 << 8)) << 8)) << 8)); 1438 _evt->v28 + ((_evt->v29 + ((_evt->v30 + ((uint)_evt->v31 << 8)) << 8)) << 8));
1433 ++v122; 1439 ++curr_seq_num;
1434 //v4 = v124; 1440 //v4 = v124;
1435 //v5 = pSomeEVT; 1441 //v5 = pSomeEVT;
1436 //v6 = v123; 1442 //v6 = v123;
1437 //v7 = ""; 1443 //v7 = "";
1438 break; 1444 break;
1439 case EVENT_SetTexture: 1445 case EVENT_SetTexture:
1440 sub_44861E_set_texture(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), (char *)&_evt->v9); 1446 sub_44861E_set_texture(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), (char *)&_evt->v9);
1441 ++v122; 1447 ++curr_seq_num;
1442 //v4 = v124; 1448 //v4 = v124;
1443 //v5 = pSomeEVT; 1449 //v5 = pSomeEVT;
1444 //v6 = v123; 1450 //v6 = v123;
1445 //v7 = ""; 1451 //v7 = "";
1446 break; 1452 break;
1447 case EVENT_SetSprite: 1453 case EVENT_SetSprite:
1448 SetDecorationSprite(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), _evt->v9, (char *)&_evt->v10); 1454 SetDecorationSprite(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), _evt->v9, (char *)&_evt->v10);
1449 ++v122; 1455 ++curr_seq_num;
1450 //v4 = v124; 1456 //v4 = v124;
1451 //v5 = pSomeEVT; 1457 //v5 = pSomeEVT;
1452 //v6 = v123; 1458 //v6 = v123;
1453 //v7 = ""; 1459 //v7 = "";
1454 break; 1460 break;
1457 _evt->v8 + ((_evt->v9 + ((_evt->v10 + ((uint)_evt->v11 << 8)) << 8)) << 8), 1463 _evt->v8 + ((_evt->v9 + ((_evt->v10 + ((uint)_evt->v11 << 8)) << 8)) << 8),
1458 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8), 1464 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8),
1459 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8), 1465 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8),
1460 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8), 1466 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8),
1461 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8)); 1467 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8));
1462 ++v122; 1468 ++curr_seq_num;
1463 //v4 = v124; 1469 //v4 = v124;
1464 //v5 = pSomeEVT; 1470 //v5 = pSomeEVT;
1465 //v6 = v123; 1471 //v6 = v123;
1466 //v7 = ""; 1472 //v7 = "";
1467 break; 1473 break;
1468 case EVENT_MouseOver: 1474 case EVENT_MouseOver:
1469 case EVENT_LocationName: 1475 case EVENT_LocationName:
1470 --v122; 1476 --curr_seq_num;
1471 ++v122; 1477 ++curr_seq_num;
1472 //v4 = v124; 1478 //v4 = v124;
1473 //v5 = pSomeEVT; 1479 //v5 = pSomeEVT;
1474 //v6 = v123; 1480 //v6 = v123;
1475 //v7 = ""; 1481 //v7 = "";
1476 break; 1482 break;
1477 case EVENT_ChangeDoorState: 1483 case EVENT_ChangeDoorState:
1478 sub_449A49_door_switch_animation(_evt->v5, _evt->v6); 1484 sub_449A49_door_switch_animation(_evt->v5, _evt->v6);
1479 ++v122; 1485 ++curr_seq_num;
1480 //v4 = v124; 1486 //v4 = v124;
1481 //v5 = pSomeEVT; 1487 //v5 = pSomeEVT;
1482 //v6 = v123; 1488 //v6 = v123;
1483 //v7 = ""; 1489 //v7 = "";
1484 break; 1490 break;
1485 case EVENT_OpenChest: 1491 case EVENT_OpenChest:
1486 if ( !Chest::Open(_evt->v5) ) 1492 if ( !Chest::Open(_evt->v5) )
1487 goto LABEL_301; 1493 goto LABEL_301;
1488 ++v122; 1494 ++curr_seq_num;
1489 //v4 = v124; 1495 //v4 = v124;
1490 //v5 = pSomeEVT; 1496 //v5 = pSomeEVT;
1491 //v6 = v123; 1497 //v6 = v123;
1492 //v7 = ""; 1498 //v7 = "";
1493 break; 1499 break;
1505 { 1511 {
1506 if ( pRenderer->pRenderD3D && !pRenderer->bWindowMode ) 1512 if ( pRenderer->pRenderD3D && !pRenderer->bWindowMode )
1507 pRenderer->_49FD3A(); 1513 pRenderer->_49FD3A();
1508 sub_444839_move_map(_evt->v29, _evt->v30, v135, v132, v126, v129, v95, v134, (char *)&_evt->v31); 1514 sub_444839_move_map(_evt->v29, _evt->v30, v135, v132, v126, v129, v95, v134, (char *)&_evt->v31);
1509 dword_5C3418 = uEventID; 1515 dword_5C3418 = uEventID;
1510 dword_5C341C = v122 + 1; 1516 dword_5C341C = curr_seq_num + 1;
1511 goto LABEL_301; 1517 goto LABEL_301;
1512 } 1518 }
1513 _5B65AC_npcdata_fame_or_other = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); 1519 _5B65AC_npcdata_fame_or_other = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8);
1514 _5B65A8_npcdata_uflags_or_other = v94; 1520 _5B65A8_npcdata_uflags_or_other = v94;
1515 _5B65B0_npcdata_rep_or_other = v126; 1521 _5B65B0_npcdata_rep_or_other = v126;
1585 pIcons_LOD->_40F9C5(); 1591 pIcons_LOD->_40F9C5();
1586 } 1592 }
1587 goto LABEL_302; 1593 goto LABEL_302;
1588 } 1594 }
1589 } 1595 }
1590 ++v122; 1596 ++curr_seq_num;
1591 //v4 = v124; 1597 //v4 = v124;
1592 //v5 = pSomeEVT; 1598 //v5 = pSomeEVT;
1593 //v6 = v123; 1599 //v6 = v123;
1594 //v7 = ""; 1600 //v7 = "";
1595 break; 1601 break;
1610 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); 1616 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8);
1611 pItemsTable->GenerateItem(_evt->v5, _evt->v6, &item); 1617 pItemsTable->GenerateItem(_evt->v5, _evt->v6, &item);
1612 if ( v102 ) 1618 if ( v102 )
1613 item.uItemID = v102; 1619 item.uItemID = v102;
1614 pParty->SetHoldingItem(&item); 1620 pParty->SetHoldingItem(&item);
1615 ++v122; 1621 ++curr_seq_num;
1616 //v4 = v124; 1622 //v4 = v124;
1617 //v5 = pSomeEVT; 1623 //v5 = pSomeEVT;
1618 //v6 = v123; 1624 //v6 = v123;
1619 //v7 = ""; 1625 //v7 = "";
1620 break; 1626 break;
1634 ptr_507BC0->CreateButton(0xB1u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 2u, 0x32u, "", 0); 1640 ptr_507BC0->CreateButton(0xB1u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 2u, 0x32u, "", 0);
1635 ptr_507BC0->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, "", 0); 1641 ptr_507BC0->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, "", 0);
1636 ptr_507BC0->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, "", 0); 1642 ptr_507BC0->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, "", 0);
1637 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); 1643 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0);
1638 } 1644 }
1639 ++v122; 1645 ++curr_seq_num;
1640 //v4 = v124; 1646 //v4 = v124;
1641 //v5 = pSomeEVT; 1647 //v5 = pSomeEVT;
1642 //v6 = v123; 1648 //v6 = v123;
1643 //v7 = ""; 1649 //v7 = "";
1644 break; 1650 break;
1645 case EVENT_PressAnyKey: 1651 case EVENT_PressAnyKey:
1646 v121 = 33; 1652 v121 = 33;
1647 v105 = v122 + 1; 1653 v105 = curr_seq_num + 1;
1648 goto LABEL_295; 1654 goto LABEL_295;
1649 case EVENT_Exit: 1655 case EVENT_Exit:
1650 goto LABEL_301; 1656 goto LABEL_301;
1651 default: 1657 default:
1652 ++v122; 1658 ++curr_seq_num;
1653 //v4 = v124; 1659 //v4 = v124;
1654 //v5 = pSomeEVT; 1660 //v5 = pSomeEVT;
1655 //v6 = v123; 1661 //v6 = v123;
1656 //v7 = ""; 1662 //v7 = "";
1657 break; 1663 break;