comparison mm7_5.cpp @ 299:b0db84628733

paperdoll array
author Ritor1
date Tue, 19 Feb 2013 17:11:57 +0600
parents 0ea5fbd16edb
children 00452bbbac47
comparison
equal deleted inserted replaced
298:055cea8660e5 299:b0db84628733
7290 if ( !v21 ) 7290 if ( !v21 )
7291 goto LABEL_59; 7291 goto LABEL_59;
7292 v230 = pPlayer->pEquipment.uBow; 7292 v230 = pPlayer->pEquipment.uBow;
7293 v22 = (int)&v217->pInventoryItems[v21-1]; 7293 v22 = (int)&v217->pInventoryItems[v21-1];
7294 v23 = *(int *)v22; 7294 v23 = *(int *)v22;
7295 v24 = pPaperdoll_BodyX + array_4E4C30[pBodyComplection].equip_x - pItemsTable->pItems[v23].uEquipX; 7295 v24 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[v23].uEquipX;
7296 a3b = pPaperdoll_BodyY + array_4E4C30[pBodyComplection].equip_y - pItemsTable->pItems[v23].uEquipY; 7296 a3b = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[v23].uEquipY;
7297 v241 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v23].pIconName, TEXTURE_16BIT_PALETTE); 7297 v241 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v23].pIconName, TEXTURE_16BIT_PALETTE);
7298 v25 = *(int *)(v22 + 20); 7298 v25 = *(int *)(v22 + 20);
7299 if ( !(*(int *)(v22 + 20) & 0xF0) ) 7299 if ( !(*(int *)(v22 + 20) & 0xF0) )
7300 { 7300 {
7301 if ( v25 & 2 ) 7301 if ( v25 & 2 )
7348 LABEL_72: 7348 LABEL_72:
7349 if ( v33 < 0 || v33 >= 10 ) 7349 if ( v33 < 0 || v33 >= 10 )
7350 goto LABEL_93; 7350 goto LABEL_93;
7351 LABEL_74: 7351 LABEL_74:
7352 v34 = v33 + 10 * pBodyComplection; 7352 v34 = v33 + 10 * pBodyComplection;
7353 v35 = paperdoll_array_511828[0][v34]; 7353 v35 = paperdoll_array_511828[0][v34];//Texture_Cloak
7354 a2c = pPaperdoll_BodyX + paperdoll_array_4E5570[0][v34][0];// TODO indexing 7354 a2c = pPaperdoll_BodyX + paperdoll_Cloak[0][v34][0];
7355 v36 = pPaperdoll_BodyY + paperdoll_array_4E5570[0][v34][1]; 7355 v36 = pPaperdoll_BodyY + paperdoll_Cloak[0][v34][1];
7356 v37 = *(int *)(v32 + 20); 7356 v37 = *(int *)(v32 + 20);
7357 a3c = v36; 7357 a3c = v36;
7358 if ( !(v37 & 0xF0) ) 7358 if ( !(v37 & 0xF0) )
7359 { 7359 {
7360 v41 = v35 + 1; 7360 v41 = v35 + 1;
7400 LABEL_104: 7400 LABEL_104:
7401 if ( v45 < 0 || v45 >= 17 ) 7401 if ( v45 < 0 || v45 >= 17 )
7402 goto LABEL_127; 7402 goto LABEL_127;
7403 LABEL_106: 7403 LABEL_106:
7404 v46 = 17 * pBodyComplection + v45; 7404 v46 = 17 * pBodyComplection + v45;
7405 a2d = pPaperdoll_BodyX + paperdoll_array_4E4E30[0][v46][0];// TODO indexing 7405 a2d = pPaperdoll_BodyX + paperdoll_Armor[0][v46][0];
7406 v47 = pPaperdoll_BodyY + paperdoll_array_4E4E30[0][v46][1]; 7406 v47 = pPaperdoll_BodyY + paperdoll_Armor[0][v46][1];
7407 v48 = paperdoll_array_511290[0][v46][0]; 7407 v48 = paperdoll_array_511290[0][v46][0];//Texture_Armor
7408 v49 = *(int *)(v44 + 20); 7408 v49 = *(int *)(v44 + 20);
7409 a3d = v47; 7409 a3d = v47;
7410 if ( !(v49 & 0xF0) ) 7410 if ( !(v49 & 0xF0) )
7411 { 7411 {
7412 v53 = v48 + 1; 7412 v53 = v48 + 1;
7440 v57 = (int)&v217->pInventoryItems[v56-1]; 7440 v57 = (int)&v217->pInventoryItems[v56-1];
7441 v221 = v57; 7441 v221 = v57;
7442 v58 = *(int *)v57; 7442 v58 = *(int *)v57;
7443 if ( *(int *)v57 == 529 ) 7443 if ( *(int *)v57 == 529 )
7444 { 7444 {
7445 a3e = pPaperdoll_BodyY + paredoll_array_4E54B8[pBodyComplection][1]; 7445 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][5][1];
7446 a2e = pPaperdoll_BodyX + paredoll_array_4E54B8[pBodyComplection][0]; 7446 a2e = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][5][0];
7447 v59 = papredoll_flying_feet[v244]; 7447 v59 = papredoll_flying_feet[v244];
7448 } 7448 }
7449 else 7449 else
7450 { 7450 {
7451 if ( v58 == 512 ) 7451 if ( v58 == 512 )
7452 { 7452 {
7453 a3e = pPaperdoll_BodyY + paredoll_array_4E54B8[pBodyComplection][3]; 7453 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][6][1];
7454 a2e = pPaperdoll_BodyX + paredoll_array_4E54B8[pBodyComplection][2]; 7454 a2e = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][6][0];
7455 v59 = dword_511638[pBodyComplection][5]; 7455 v59 = dword_511638[pBodyComplection][5];
7456 } 7456 }
7457 else 7457 else
7458 { 7458 {
7459 v60 = v58 - 115; 7459 v60 = v58 - 115;
7464 v59 = dword_511638[pBodyComplection][0]; 7464 v59 = dword_511638[pBodyComplection][0];
7465 } 7465 }
7466 else 7466 else
7467 { 7467 {
7468 v61 = v60 + 7 * pBodyComplection; 7468 v61 = v60 + 7 * pBodyComplection;
7469 a3e = pPaperdoll_BodyY + dword_4E5490[0][v61][1]; 7469 a3e = pPaperdoll_BodyY + paperdoll_Boot[0][v61][1];
7470 a2e = pPaperdoll_BodyX + dword_4E5490[0][v61][0]; 7470 a2e = pPaperdoll_BodyX + paperdoll_Boot[0][v61][0];
7471 v59 = dword_511638[0][v60 + 6 * pBodyComplection]; 7471 v59 = dword_511638[0][v60 + 6 * pBodyComplection];
7472 } 7472 }
7473 } 7473 }
7474 } 7474 }
7475 v62 = *(int *)(v57 + 20); 7475 v62 = *(int *)(v57 + 20);
7499 pRenderer->_4A612A(a2e, a3e, v67, v233); 7499 pRenderer->_4A612A(a2e, a3e, v67, v233);
7500 LABEL_155: 7500 LABEL_155:
7501 v68 = v217; 7501 v68 = v217;
7502 v69 = v217->pEquipment.uMainHand; 7502 v69 = v217->pEquipment.uMainHand;
7503 uPlayerID_a = 2 * pBodyComplection; 7503 uPlayerID_a = 2 * pBodyComplection;
7504 if ( !v69 || (v70 = *(int *)&v217->pInventoryItems[v69-1], 7504 if ( !v69 || (v70 = *(int *)&v217->pInventoryItems[v69-1], pItemsTable->pItems[v70].uEquipType != 1)
7505 pItemsTable->pItems[v70].uEquipType != 1)
7506 && (pItemsTable->pItems[v70].uSkillType != 4 || v217->pEquipment.uOffHand) ) 7505 && (pItemsTable->pItems[v70].uSkillType != 4 || v217->pEquipment.uOffHand) )
7507 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[2 * pBodyComplection], 7506 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0],
7508 pPaperdoll_BodyY + pPaperdoll_LeftHand[2 * pBodyComplection + 1], 7507 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1],
7509 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); 7508 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0));
7510 v71 = v217->pEquipment.uBelt; 7509 v71 = v217->pEquipment.uBelt;
7511 if ( v71 ) 7510 if ( v71 )
7512 { 7511 {
7513 v234 = v217->pEquipment.uBelt; 7512 v234 = v217->pEquipment.uBelt;
7528 } 7527 }
7529 if ( v73 >= 0 && v73 < 7 ) 7528 if ( v73 >= 0 && v73 < 7 )
7530 { 7529 {
7531 LABEL_168: 7530 LABEL_168:
7532 v74 = 7 * pBodyComplection + v73; 7531 v74 = 7 * pBodyComplection + v73;
7533 a2f = pPaperdoll_BodyX + dword_4E57F0[0][v74][0]; 7532 a2f = pPaperdoll_BodyX + paperdoll_Belt[0][v74][0];
7534 a3f = pPaperdoll_BodyY + dword_4E57F0[0][v74][1]; 7533 a3f = pPaperdoll_BodyY + paperdoll_Belt[0][v74][1];
7535 if ( IsDwarf != 1 || v73 == 5 ) 7534 if ( IsDwarf != 1 || v73 == 5 )
7536 v75 = stru_511718.texids[v74]; 7535 v75 = stru_511718.texids[v74];
7537 else 7536 else
7538 v75 = stru_511718.texids[v73 + 7 * (pBodyComplection - 2)]; 7537 v75 = stru_511718.texids[v73 + 7 * (pBodyComplection - 2)];
7539 v76 = *(int *)&v217->field_1F5[36 * v71 + 15]; 7538 v76 = *(int *)&v217->field_1F5[36 * v71 + 15];
7559 pRenderer->DrawTransparentGreenShade(a2f, a3f, v81); 7558 pRenderer->DrawTransparentGreenShade(a2f, a3f, v81);
7560 } 7559 }
7561 } 7560 }
7562 if ( !bRingsShownInCharScreen ) 7561 if ( !bRingsShownInCharScreen )
7563 pRenderer->_4A612A(a2f, a3f, v81, v234); 7562 pRenderer->_4A612A(a2f, a3f, v81, v234);
7564 goto LABEL_191; 7563 v68 = v217;
7564 goto LABEL_192;
7565 } 7565 }
7566 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) != 16 ) 7566 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) != 16 )
7567 { 7567 {
7568 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 32 ) 7568 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 32 )
7569 { 7569 {
7570 v172 = "sp28a"; 7570 v172 = "sp28a";
7571 goto LABEL_181;
7572 }
7573 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 64 )
7574 {
7575 v172 = "sp30a";
7576 goto LABEL_181;
7577 }
7578 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 128 )
7579 {
7580 v172 = "sp91a";
7581 LABEL_181:
7582 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; 7571 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
7583 dword_50C9A8 -= pEventTimer->uTimeElapsed; 7572 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7584 if ( dword_50C9A8 <= 0 ) 7573 if ( dword_50C9A8 <= 0 )
7585 { 7574 {
7586 dword_50C9A8 = 0; 7575 dword_50C9A8 = 0;
7587 *(char *)(v222 + 20) &= 0xFu; 7576 *(char *)(v222 + 20) &= 0xFu;
7588 ptr_50C9A4 = 0; 7577 ptr_50C9A4 = 0;
7589 } 7578 }
7590 v78 = (double)GetTickCount() * 0.1; 7579 v78 = (double)GetTickCount() * 0.1;
7591 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), 7580 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
7592 v77, (signed __int64)v78, 0, 255); 7581 v68 = v217;
7593 LABEL_191: 7582 goto LABEL_192;
7583 }
7584 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 64 )
7585 {
7586 v172 = "sp30a";
7587 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
7588 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7589 if ( dword_50C9A8 <= 0 )
7590 {
7591 dword_50C9A8 = 0;
7592 *(char *)(v222 + 20) &= 0xFu;
7593 ptr_50C9A4 = 0;
7594 }
7595 v78 = (double)GetTickCount() * 0.1;
7596 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
7597 v68 = v217;
7598 goto LABEL_192;
7599 }
7600 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 128 )
7601 {
7602 v172 = "sp91a";
7603 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
7604 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7605 if ( dword_50C9A8 <= 0 )
7606 {
7607 dword_50C9A8 = 0;
7608 *(char *)(v222 + 20) &= 0xFu;
7609 ptr_50C9A4 = 0;
7610 }
7611 v78 = (double)GetTickCount() * 0.1;
7612 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
7594 v68 = v217; 7613 v68 = v217;
7595 goto LABEL_192; 7614 goto LABEL_192;
7596 } 7615 }
7597 } 7616 }
7598 v172 = "sptext01"; 7617 v172 = "sptext01";
7599 goto LABEL_181; 7618 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
7619 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7620 if ( dword_50C9A8 <= 0 )
7621 {
7622 dword_50C9A8 = 0;
7623 *(char *)(v222 + 20) &= 0xFu;
7624 ptr_50C9A4 = 0;
7625 }
7626 v78 = (double)GetTickCount() * 0.1;
7627 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
7628 v68 = v217;
7629 goto LABEL_192;
7600 } 7630 }
7601 } 7631 }
7602 LABEL_192: 7632 LABEL_192:
7603 v82 = v68->pEquipment.uMainHand; 7633 v82 = v68->pEquipment.uMainHand;
7604 if ( v82 ) 7634 if ( v82 )
7605 { 7635 {
7606 v83 = *(int *)&v68->pInventoryItems[v82-1]; 7636 v83 = *(int *)&v68->pInventoryItems[v82-1];
7607 if ( pItemsTable->pItems[v83].uEquipType == 1 7637 if ( pItemsTable->pItems[v83].uEquipType == 1
7608 || pItemsTable->pItems[v83].uSkillType == 4 && !v68->pEquipment.uOffHand ) 7638 || pItemsTable->pItems[v83].uSkillType == 4 && !v68->pEquipment.uOffHand )
7609 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[uPlayerID_a], 7639 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a],
7610 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[uPlayerID_a + 1], 7640 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1],
7611 (Texture *)(*(unsigned int *)((char *)papredoll_dlaus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlaus + v240)] : 0)); 7641 (Texture *)(*(unsigned int *)((char *)papredoll_dlaus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlaus + v240)] : 0));
7612 } 7642 }
7613 v84 = v68->pEquipment.uBody; 7643 v84 = v68->pEquipment.uBody;
7614 v235 = v84; 7644 v235 = v84;
7615 v85 = (int)((char *)v68 + 36 * v84); 7645 v85 = (int)((char *)v68 + 36 * v84);
7672 LABEL_293: 7702 LABEL_293:
7673 if ( v244 == 12 || v244 == 13 ) 7703 if ( v244 == 12 || v244 == 13 )
7674 { 7704 {
7675 v122 = papredoll_dbrds[v244]; 7705 v122 = papredoll_dbrds[v244];
7676 if ( v122 != pIcons_LOD->FindTextureByName("Pending") ) 7706 if ( v122 != pIcons_LOD->FindTextureByName("Pending") )
7677 pRenderer->DrawTextureTransparent( 7707 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * v244 - 24],
7678 pPaperdoll_BodyX + dword_4E5AD0[2 * v244 - 24], 7708 pPaperdoll_BodyY + pPaperdoll_Beards[2 * v244 - 23],
7679 pPaperdoll_BodyY + dword_4E5AD4[2 * v244 - 24],
7680 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0)); 7709 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0));
7681 } 7710 }
7682 v123 = v68->pEquipment.uHelm; 7711 v123 = v68->pEquipment.uHelm;
7683 if ( !v123 ) 7712 if ( !v123 )
7684 goto LABEL_335; 7713 goto LABEL_335;
7700 break; 7729 break;
7701 default: 7730 default:
7702 if ( *(int *)v124 != 544 ) 7731 if ( *(int *)v124 != 544 )
7703 { 7732 {
7704 v125 = *(int *)v124 - 89; 7733 v125 = *(int *)v124 - 89;
7705 LABEL_310:
7706 if ( v125 < 0 || v125 >= 16 ) 7734 if ( v125 < 0 || v125 >= 16 )
7707 goto LABEL_335; 7735 goto LABEL_335;
7708 goto LABEL_312; 7736 goto LABEL_312;
7709 } 7737 }
7710 v192 = 15; 7738 v192 = 15;
7725 if ( (*(int *)(v124 + 20) & 0xF0) != 16 ) 7753 if ( (*(int *)(v124 + 20) & 0xF0) != 16 )
7726 { 7754 {
7727 if ( (*(int *)(v124 + 20) & 0xF0) == 32 ) 7755 if ( (*(int *)(v124 + 20) & 0xF0) == 32 )
7728 { 7756 {
7729 v180 = "sp28a"; 7757 v180 = "sp28a";
7730 goto LABEL_325;
7731 }
7732 if ( (*(int *)(v124 + 20) & 0xF0) == 64 )
7733 {
7734 v180 = "sp30a";
7735 goto LABEL_325;
7736 }
7737 if ( (*(int *)(v124 + 20) & 0xF0) == 128 )
7738 {
7739 v180 = "sp91a";
7740 LABEL_325:
7741 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)]; 7758 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
7742 dword_50C9A8 -= pEventTimer->uTimeElapsed; 7759 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7743 if ( dword_50C9A8 <= 0 ) 7760 if ( dword_50C9A8 <= 0 )
7744 { 7761 {
7745 dword_50C9A8 = 0; 7762 dword_50C9A8 = 0;
7746 *(char *)(v226 + 20) &= 0xFu; 7763 *(char *)(v226 + 20) &= 0xFu;
7747 ptr_50C9A4 = 0; 7764 ptr_50C9A4 = 0;
7748 } 7765 }
7749 v130 = (double)GetTickCount() * 0.1; 7766 v130 = (double)GetTickCount() * 0.1;
7750 pRenderer->_4A63E6( 7767 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
7751 a2j, 7768 v129, (signed __int64)v130, 0, 255);
7752 a3i, 7769 goto LABEL_335;
7753 (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0), 7770 }
7754 v129, 7771 if ( (*(int *)(v124 + 20) & 0xF0) == 64 )
7755 (signed __int64)v130, 7772 {
7756 0, 7773 v180 = "sp30a";
7757 255); 7774 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
7775 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7776 if ( dword_50C9A8 <= 0 )
7777 {
7778 dword_50C9A8 = 0;
7779 *(char *)(v226 + 20) &= 0xFu;
7780 ptr_50C9A4 = 0;
7781 }
7782 v130 = (double)GetTickCount() * 0.1;
7783 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
7784 v129, (signed __int64)v130, 0, 255);
7785 goto LABEL_335;
7786 }
7787 if ( (*(int *)(v124 + 20) & 0xF0) == 128 )
7788 {
7789 v180 = "sp91a";
7790 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
7791 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7792 if ( dword_50C9A8 <= 0 )
7793 {
7794 dword_50C9A8 = 0;
7795 *(char *)(v226 + 20) &= 0xFu;
7796 ptr_50C9A4 = 0;
7797 }
7798 v130 = (double)GetTickCount() * 0.1;
7799 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
7800 v129, (signed __int64)v130, 0, 255);
7758 goto LABEL_335; 7801 goto LABEL_335;
7759 } 7802 }
7760 } 7803 }
7761 v180 = "sptext01"; 7804 v180 = "sptext01";
7762 goto LABEL_325; 7805 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
7806 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7807 if ( dword_50C9A8 <= 0 )
7808 {
7809 dword_50C9A8 = 0;
7810 *(char *)(v226 + 20) &= 0xFu;
7811 ptr_50C9A4 = 0;
7812 }
7813 v130 = (double)GetTickCount() * 0.1;
7814 pRenderer->_4A63E6(a2j, a3i, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0),
7815 v129, (signed __int64)v130, 0, 255);
7816 goto LABEL_335;
7763 } 7817 }
7764 v131 = v127 + 1; 7818 v131 = v127 + 1;
7765 v132 = (char *)&pIcons_LOD->pTextures[v127]; 7819 v132 = (char *)&pIcons_LOD->pTextures[v127];
7766 if ( v128 & 2 ) 7820 if ( v128 & 2 )
7767 { 7821 {
7790 v238 = v217->pEquipment.uMainHand; 7844 v238 = v217->pEquipment.uMainHand;
7791 v135 = (int)&v217->pInventoryItems[v134-1]; 7845 v135 = (int)&v217->pInventoryItems[v134-1];
7792 v227 = v135; 7846 v227 = v135;
7793 v136 = *(int *)v135; 7847 v136 = *(int *)v135;
7794 v137 = *(int *)v135; 7848 v137 = *(int *)v135;
7795 a2k = pPaperdoll_BodyX 7849 a2k = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v137].uEquipX;
7796 + array_4E4C30[pBodyComplection].field_8 7850 a3j = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[v137].uEquipY;
7797 - pItemsTable->pItems[v137].uEquipX;
7798 a3j = pPaperdoll_BodyY
7799 + array_4E4C30[pBodyComplection].field_C
7800 - pItemsTable->pItems[v137].uEquipY;
7801 if ( v136 == 64 ) 7851 if ( v136 == 64 )
7802 v181 = "item64v1"; 7852 v181 = "item64v1";
7803 else 7853 else
7804 v181 = pItemsTable->pItems[v137].pIconName; 7854 v181 = pItemsTable->pItems[v137].pIconName;
7805 v138 = pIcons_LOD->LoadTexture(v181, TEXTURE_16BIT_PALETTE); 7855 v138 = pIcons_LOD->LoadTexture(v181, TEXTURE_16BIT_PALETTE);
7839 v148 = *(int *)v146; 7889 v148 = *(int *)v146;
7840 v149 = pItemsTable->pItems[v148].uSkillType; 7890 v149 = pItemsTable->pItems[v148].uSkillType;
7841 if ( v149 != 2 && v149 != 1 ) 7891 if ( v149 != 2 && v149 != 1 )
7842 { 7892 {
7843 v245 = 0; 7893 v245 = 0;
7844 LABEL_362: 7894 v150 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[v148].uEquipX;
7845 v150 = pPaperdoll_BodyX 7895 a3k = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[v148].uEquipY;
7846 + array_4E4C30[pBodyComplection].field_0
7847 - pItemsTable->pItems[v148].uEquipX;
7848 a3k = pPaperdoll_BodyY
7849 + LODWORD(array_4E4C30[pBodyComplection].field_4)
7850 - pItemsTable->pItems[v148].uEquipY;
7851 goto LABEL_370; 7896 goto LABEL_370;
7852 } 7897 }
7853 v151 = v147 - 400; 7898 v151 = v147 - 400;
7854 v245 = 1; 7899 v245 = 1;
7855 if ( v151 ) 7900 if ( v151 )
7856 { 7901 {
7857 v152 = v151 - 3; 7902 v152 = v151 - 3;
7858 if ( v152 ) 7903 if ( v152 )
7859 { 7904 {
7860 if ( v152 != 12 ) 7905 if ( v152 != 12 )
7861 goto LABEL_362; 7906 {
7907 v150 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[v148].uEquipX;
7908 a3k = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[v148].uEquipY;
7909 goto LABEL_370;
7910 }
7862 v150 = 595; 7911 v150 = 595;
7863 a3k = 33; 7912 a3k = 33;
7864 LABEL_370: 7913 LABEL_370:
7865 v153 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v148].pIconName, TEXTURE_16BIT_PALETTE); 7914 v153 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v148].pIconName, TEXTURE_16BIT_PALETTE);
7866 v154 = v153; 7915 v154 = v153;
7878 v29 = (v155 & 1) == 0; 7927 v29 = (v155 & 1) == 0;
7879 v160 = (char *)&pIcons_LOD->pTextures[v243]; 7928 v160 = (char *)&pIcons_LOD->pTextures[v243];
7880 if ( v29 ) 7929 if ( v29 )
7881 { 7930 {
7882 v159 = (Texture *)(v243 != -1 ? (int)v160 : 0); 7931 v159 = (Texture *)(v243 != -1 ? (int)v160 : 0);
7883 pRenderer->DrawTransparentGreenShade( 7932 pRenderer->DrawTransparentGreenShade(v150, a3k, (Texture *)(v243 != -1 ? (int)v160 : 0));
7884 v150,
7885 a3k,
7886 (Texture *)(v243 != -1 ? (int)v160 : 0));
7887 } 7933 }
7888 else 7934 else
7889 { 7935 {
7890 v159 = (Texture *)(v243 != -1 ? (int)v160 : 0); 7936 v159 = (Texture *)(v243 != -1 ? (int)v160 : 0);
7891 pRenderer->DrawTextureTransparent( 7937 pRenderer->DrawTextureTransparent(v150, a3k, (Texture *)(v243 != -1 ? (int)v160 : 0));
7892 v150,
7893 a3k,
7894 (Texture *)(v243 != -1 ? (int)v160 : 0));
7895 } 7938 }
7896 } 7939 }
7897 if ( !bRingsShownInCharScreen ) 7940 if ( !bRingsShownInCharScreen )
7898 pRenderer->_4A612A(v150, a3k, v159, v249); 7941 pRenderer->_4A612A(v150, a3k, v159, v249);
7899 goto LABEL_391; 7942 if ( v245 )
7943 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
7944 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
7945 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
7946 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
7947 goto LABEL_393;
7900 } 7948 }
7901 if ( (*(int *)(v228 + 20) & 0xF0) != 16 ) 7949 if ( (*(int *)(v228 + 20) & 0xF0) != 16 )
7902 { 7950 {
7903 if ( (*(int *)(v228 + 20) & 0xF0) == 32 ) 7951 if ( (*(int *)(v228 + 20) & 0xF0) == 32 )
7904 { 7952 {
7910 { 7958 {
7911 v156 = pIcons_LOD; 7959 v156 = pIcons_LOD;
7912 if ( (*(int *)(v228 + 20) & 0xF0) == 128 ) 7960 if ( (*(int *)(v228 + 20) & 0xF0) == 128 )
7913 { 7961 {
7914 v183 = "sp91a"; 7962 v183 = "sp91a";
7915 LABEL_381: 7963 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
7916 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(
7917 v183,
7918 TEXTURE_16BIT_PALETTE)];
7919 dword_50C9A8 -= pEventTimer->uTimeElapsed; 7964 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7920 if ( dword_50C9A8 <= 0 ) 7965 if ( dword_50C9A8 <= 0 )
7921 { 7966 {
7922 dword_50C9A8 = 0; 7967 dword_50C9A8 = 0;
7923 *(char *)(v228 + 20) &= 0xFu; 7968 *(char *)(v228 + 20) &= 0xFu;
7924 ptr_50C9A4 = 0; 7969 ptr_50C9A4 = 0;
7925 } 7970 }
7926 v158 = (double)GetTickCount() * 0.1; 7971 v158 = (double)GetTickCount() * 0.1;
7927 pRenderer->_4A63E6( 7972 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
7928 v150, 7973 v157, (signed __int64)v158, 0, 255);
7929 a3k,
7930 (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
7931 v157,
7932 (signed __int64)v158,
7933 0,
7934 255);
7935 LABEL_391:
7936 if ( v245 ) 7974 if ( v245 )
7937 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX 7975 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
7938 + pPaperdollLeftEmptyHand[uPlayerID_a],
7939 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1], 7976 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
7940 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs 7977 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
7941 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0)); 7978 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
7942 goto LABEL_393; 7979 goto LABEL_393;
7943 } 7980 }
7944 LABEL_380:
7945 v183 = "sptext01"; 7981 v183 = "sptext01";
7946 goto LABEL_381; 7982 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
7983 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7984 if ( dword_50C9A8 <= 0 )
7985 {
7986 dword_50C9A8 = 0;
7987 *(char *)(v228 + 20) &= 0xFu;
7988 ptr_50C9A4 = 0;
7989 }
7990 v158 = (double)GetTickCount() * 0.1;
7991 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
7992 v157, (signed __int64)v158, 0, 255);
7993 if ( v245 )
7994 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
7995 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
7996 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
7997 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
7998 goto LABEL_393;
7947 } 7999 }
7948 v183 = "sp30a"; 8000 v183 = "sp30a";
7949 } 8001 }
7950 v156 = pIcons_LOD; 8002 v156 = pIcons_LOD;
7951 goto LABEL_381; 8003 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
8004 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8005 if ( dword_50C9A8 <= 0 )
8006 {
8007 dword_50C9A8 = 0;
8008 *(char *)(v228 + 20) &= 0xFu;
8009 ptr_50C9A4 = 0;
8010 }
8011 v158 = (double)GetTickCount() * 0.1;
8012 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
8013 v157, (signed __int64)v158, 0, 255);
8014 if ( v245 )
8015 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
8016 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
8017 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
8018 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
8019 goto LABEL_393;
7952 } 8020 }
7953 v156 = pIcons_LOD; 8021 v156 = pIcons_LOD;
7954 goto LABEL_380; 8022 v183 = "sptext01";
8023 v157 = &pIcons_LOD->pTextures[v156->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
8024 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8025 if ( dword_50C9A8 <= 0 )
8026 {
8027 dword_50C9A8 = 0;
8028 *(char *)(v228 + 20) &= 0xFu;
8029 ptr_50C9A4 = 0;
8030 }
8031 v158 = (double)GetTickCount() * 0.1;
8032 pRenderer->_4A63E6(v150, a3k, (Texture *)(v154 != -1 ? (int)&pIcons_LOD->pTextures[v154] : 0),
8033 v157, (signed __int64)v158, 0, 255);
8034 if ( v245 )
8035 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[uPlayerID_a],
8036 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[uPlayerID_a + 1],
8037 (Texture *)(*(unsigned int *)((char *)papredoll_dlhs
8038 + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhs + v240)] : 0));
8039 goto LABEL_393;
7955 } 8040 }
7956 a3k = 28; 8041 a3k = 28;
7957 } 8042 }
7958 else 8043 else
7959 { 8044 {
7965 if ( (*(int *)(v227 + 20) & 0xF0) != 16 ) 8050 if ( (*(int *)(v227 + 20) & 0xF0) != 16 )
7966 { 8051 {
7967 if ( (*(int *)(v227 + 20) & 0xF0) == 32 ) 8052 if ( (*(int *)(v227 + 20) & 0xF0) == 32 )
7968 { 8053 {
7969 v182 = "sp28a"; 8054 v182 = "sp28a";
7970 goto LABEL_348; 8055 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
8056 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8057 if ( dword_50C9A8 <= 0 )
8058 {
8059 dword_50C9A8 = 0;
8060 *(char *)(v227 + 20) &= 0xFu;
8061 ptr_50C9A4 = 0;
8062 }
8063 v141 = (double)GetTickCount() * 0.1;
8064 pRenderer->_4A63E6(a2k, a3j, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0),
8065 v140, (signed __int64)v141, 0, 255);
8066 goto LABEL_358;
7971 } 8067 }
7972 if ( (*(int *)(v227 + 20) & 0xF0) == 64 ) 8068 if ( (*(int *)(v227 + 20) & 0xF0) == 64 )
7973 { 8069 {
7974 v182 = "sp30a"; 8070 v182 = "sp30a";
7975 goto LABEL_348; 8071 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
8072 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8073 if ( dword_50C9A8 <= 0 )
8074 {
8075 dword_50C9A8 = 0;
8076 *(char *)(v227 + 20) &= 0xFu;
8077 ptr_50C9A4 = 0;
8078 }
8079 v141 = (double)GetTickCount() * 0.1;
8080 pRenderer->_4A63E6(a2k, a3j, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0),
8081 v140, (signed __int64)v141, 0, 255);
8082 goto LABEL_358;
7976 } 8083 }
7977 if ( (*(int *)(v227 + 20) & 0xF0) == 128 ) 8084 if ( (*(int *)(v227 + 20) & 0xF0) == 128 )
7978 { 8085 {
7979 v182 = "sp91a"; 8086 v182 = "sp91a";
7980 LABEL_348:
7981 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)]; 8087 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
7982 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8088 dword_50C9A8 -= pEventTimer->uTimeElapsed;
7983 if ( dword_50C9A8 <= 0 ) 8089 if ( dword_50C9A8 <= 0 )
7984 { 8090 {
7985 dword_50C9A8 = 0; 8091 dword_50C9A8 = 0;
7991 v140, (signed __int64)v141, 0, 255); 8097 v140, (signed __int64)v141, 0, 255);
7992 goto LABEL_358; 8098 goto LABEL_358;
7993 } 8099 }
7994 } 8100 }
7995 v182 = "sptext01"; 8101 v182 = "sptext01";
7996 goto LABEL_348; 8102 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
8103 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8104 if ( dword_50C9A8 <= 0 )
8105 {
8106 dword_50C9A8 = 0;
8107 *(char *)(v227 + 20) &= 0xFu;
8108 ptr_50C9A4 = 0;
8109 }
8110 v141 = (double)GetTickCount() * 0.1;
8111 pRenderer->_4A63E6(a2k, a3j, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0),
8112 v140, (signed __int64)v141, 0, 255);
8113 goto LABEL_358;
7997 } 8114 }
7998 v125 = 11; 8115 v125 = 11;
7999 goto LABEL_310; 8116 if ( v125 < 0 || v125 >= 16 )
8117 goto LABEL_335;
8118 goto LABEL_312;
8000 } 8119 }
8001 if ( !(*(int *)(v225 + 20) & 0xF0) ) 8120 if ( !(*(int *)(v225 + 20) & 0xF0) )
8002 { 8121 {
8003 v119 = v116 + 1; 8122 v119 = v116 + 1;
8004 v120 = (char *)&pIcons_LOD->pTextures[v116]; 8123 v120 = (char *)&pIcons_LOD->pTextures[v116];
8019 if ( (*(int *)(v225 + 20) & 0xF0) != 16 ) 8138 if ( (*(int *)(v225 + 20) & 0xF0) != 16 )
8020 { 8139 {
8021 if ( (*(int *)(v225 + 20) & 0xF0) == 32 ) 8140 if ( (*(int *)(v225 + 20) & 0xF0) == 32 )
8022 { 8141 {
8023 v179 = "sp28a"; 8142 v179 = "sp28a";
8024 goto LABEL_284;
8025 }
8026 if ( (*(int *)(v225 + 20) & 0xF0) == 64 )
8027 {
8028 v179 = "sp30a";
8029 goto LABEL_284;
8030 }
8031 if ( (*(int *)(v225 + 20) & 0xF0) == 128 )
8032 {
8033 v179 = "sp91a";
8034 LABEL_284:
8035 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)]; 8143 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
8036 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8144 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8037 if ( dword_50C9A8 <= 0 ) 8145 if ( dword_50C9A8 <= 0 )
8038 { 8146 {
8039 dword_50C9A8 = 0; 8147 dword_50C9A8 = 0;
8040 *(char *)(v225 + 20) &= 0xFu; 8148 *(char *)(v225 + 20) &= 0xFu;
8041 ptr_50C9A4 = 0; 8149 ptr_50C9A4 = 0;
8042 } 8150 }
8043 v118 = (double)GetTickCount() * 0.1; 8151 v118 = (double)GetTickCount() * 0.1;
8044 pRenderer->_4A63E6( 8152 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
8045 v117, 8153 a2i, (signed __int64)v118, 0, 255);
8046 a3h, 8154 goto LABEL_292;
8047 (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0), 8155 }
8048 a2i, 8156 if ( (*(int *)(v225 + 20) & 0xF0) == 64 )
8049 (signed __int64)v118, 8157 {
8050 0, 8158 v179 = "sp30a";
8051 255); 8159 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
8160 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8161 if ( dword_50C9A8 <= 0 )
8162 {
8163 dword_50C9A8 = 0;
8164 *(char *)(v225 + 20) &= 0xFu;
8165 ptr_50C9A4 = 0;
8166 }
8167 v118 = (double)GetTickCount() * 0.1;
8168 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
8169 a2i, (signed __int64)v118, 0, 255);
8170 goto LABEL_292;
8171 }
8172 if ( (*(int *)(v225 + 20) & 0xF0) == 128 )
8173 {
8174 v179 = "sp91a";
8175 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
8176 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8177 if ( dword_50C9A8 <= 0 )
8178 {
8179 dword_50C9A8 = 0;
8180 *(char *)(v225 + 20) &= 0xFu;
8181 ptr_50C9A4 = 0;
8182 }
8183 v118 = (double)GetTickCount() * 0.1;
8184 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
8185 a2i, (signed __int64)v118, 0, 255);
8052 goto LABEL_292; 8186 goto LABEL_292;
8053 } 8187 }
8054 } 8188 }
8055 v179 = "sptext01"; 8189 v179 = "sptext01";
8056 goto LABEL_284; 8190 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
8191 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8192 if ( dword_50C9A8 <= 0 )
8193 {
8194 dword_50C9A8 = 0;
8195 *(char *)(v225 + 20) &= 0xFu;
8196 ptr_50C9A4 = 0;
8197 }
8198 v118 = (double)GetTickCount() * 0.1;
8199 pRenderer->_4A63E6(v117, a3h, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0),
8200 a2i, (signed __int64)v118, 0, 255);
8201 goto LABEL_292;
8057 } 8202 }
8058 v191 = 9; 8203 v191 = 9;
8059 break; 8204 break;
8060 } 8205 }
8061 v114 = v191; 8206 v114 = v191;
8075 v223 = paperdoll_array_511290[0][v91][2]; 8220 v223 = paperdoll_array_511290[0][v91][2];
8076 if ( v223 == pIcons_LOD->FindTextureByName("pending") ) 8221 if ( v223 == pIcons_LOD->FindTextureByName("pending") )
8077 { 8222 {
8078 v93 = 2 * v91; 8223 v93 = 2 * v91;
8079 v94 = paperdoll_array_511290[0][v92][1]; 8224 v94 = paperdoll_array_511290[0][v92][1];
8080 a2g = pPaperdoll_BodyX + dword_4E5050[v93]; 8225 a2g = pPaperdoll_BodyX + paperdoll_shoulder[0][0][v93];
8081 v95 = dword_4E5050[v93 + 1]; 8226 v95 = paperdoll_shoulder[0][0][v93 + 1];
8082 } 8227 }
8083 else 8228 else
8084 { 8229 {
8085 v94 = v223; 8230 v94 = v223;
8086 a2g = pPaperdoll_BodyX + dword_4E5270[2 * v91]; 8231 a2g = pPaperdoll_BodyX + dword_4E5270[2 * v91];
8087 v95 = dword_4E5270[2 * v91 + 1]; 8232 v95 = dword_4E5270[2 * v91 + 1];
8088 } 8233 }
8089 a3g = pPaperdoll_BodyY + v95; 8234 a3g = pPaperdoll_BodyY + v95;
8090 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) 8235 if ( v94 == pIcons_LOD->FindTextureByName("pending") )
8091 goto LABEL_258; 8236 {
8237 v68 = v217;
8238 goto LABEL_259;
8239 }
8092 if ( *(int *)(v242 + 516) & 0xF0 ) 8240 if ( *(int *)(v242 + 516) & 0xF0 )
8093 { 8241 {
8094 if ( (*(int *)(v242 + 516) & 0xF0) != 16 ) 8242 if ( (*(int *)(v242 + 516) & 0xF0) != 16 )
8095 { 8243 {
8096 if ( (*(int *)(v242 + 516) & 0xF0) == 32 ) 8244 if ( (*(int *)(v242 + 516) & 0xF0) == 32 )
8097 { 8245 {
8098 v173 = "sp28a"; 8246 v173 = "sp28a";
8099 goto LABEL_226;
8100 }
8101 if ( (*(int *)(v242 + 516) & 0xF0) == 64 )
8102 {
8103 v173 = "sp30a";
8104 goto LABEL_226;
8105 }
8106 if ( (*(int *)(v242 + 516) & 0xF0) == 128 )
8107 {
8108 v173 = "sp91a";
8109 LABEL_226:
8110 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)]; 8247 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
8111 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8248 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8112 if ( dword_50C9A8 <= 0 ) 8249 if ( dword_50C9A8 <= 0 )
8113 { 8250 {
8114 dword_50C9A8 = 0; 8251 dword_50C9A8 = 0;
8116 ptr_50C9A4 = 0; 8253 ptr_50C9A4 = 0;
8117 } 8254 }
8118 v187 = 255; 8255 v187 = 255;
8119 v174 = 0; 8256 v174 = 0;
8120 v97 = (double)GetTickCount(); 8257 v97 = (double)GetTickCount();
8121 LABEL_249:
8122 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), 8258 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8123 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); 8259 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8124 goto LABEL_258; 8260 v68 = v217;
8261 goto LABEL_259;
8262 }
8263 if ( (*(int *)(v242 + 516) & 0xF0) == 64 )
8264 {
8265 v173 = "sp30a";
8266 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
8267 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8268 if ( dword_50C9A8 <= 0 )
8269 {
8270 dword_50C9A8 = 0;
8271 *(char *)(v242 + 516) &= 0xFu;
8272 ptr_50C9A4 = 0;
8273 }
8274 v187 = 255;
8275 v174 = 0;
8276 v97 = (double)GetTickCount();
8277 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8278 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8279 v68 = v217;
8280 goto LABEL_259;
8281 }
8282 if ( (*(int *)(v242 + 516) & 0xF0) == 128 )
8283 {
8284 v173 = "sp91a";
8285 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
8286 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8287 if ( dword_50C9A8 <= 0 )
8288 {
8289 dword_50C9A8 = 0;
8290 *(char *)(v242 + 516) &= 0xFu;
8291 ptr_50C9A4 = 0;
8292 }
8293 v187 = 255;
8294 v174 = 0;
8295 v97 = (double)GetTickCount();
8296 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8297 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8298 v68 = v217;
8299 goto LABEL_259;
8125 } 8300 }
8126 } 8301 }
8127 v173 = "sptext01"; 8302 v173 = "sptext01";
8128 goto LABEL_226; 8303 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
8304 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8305 if ( dword_50C9A8 <= 0 )
8306 {
8307 dword_50C9A8 = 0;
8308 *(char *)(v242 + 516) &= 0xFu;
8309 ptr_50C9A4 = 0;
8310 }
8311 v187 = 255;
8312 v174 = 0;
8313 v97 = (double)GetTickCount();
8314 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8315 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8316 v68 = v217;
8317 goto LABEL_259;
8129 } 8318 }
8130 v98 = v94 + 1; 8319 v98 = v94 + 1;
8131 v99 = (char *)&pIcons_LOD->pTextures[v94]; 8320 v99 = (char *)&pIcons_LOD->pTextures[v94];
8132 v100 = pRenderer; 8321 v100 = pRenderer;
8133 if ( *(int *)(v242 + 516) & 2 ) 8322 if ( *(int *)(v242 + 516) & 2 )
8134 { 8323 {
8135 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); 8324 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0);
8136 v188 = v101; 8325 v188 = v101;
8137 v175 = a3g; 8326 v175 = a3g;
8138 v163 = a2g; 8327 v163 = a2g;
8139 LABEL_231:
8140 v100->_4A6776(v163, v175, v188); 8328 v100->_4A6776(v163, v175, v188);
8141 goto LABEL_256; 8329 if ( !bRingsShownInCharScreen )
8330 pRenderer->_4A612A(a2g, a3g, v101, v235);
8331 v68 = v217;
8332 goto LABEL_259;
8142 } 8333 }
8143 if ( *(char *)(v242 + 516) & 1 ) 8334 if ( *(char *)(v242 + 516) & 1 )
8144 { 8335 {
8145 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); 8336 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0);
8146 v189 = v101; 8337 v189 = v101;
8147 v176 = a3g; 8338 v176 = a3g;
8148 v164 = a2g; 8339 v164 = a2g;
8149 LABEL_234:
8150 pRenderer->DrawTextureTransparent(v164, v176, v189); 8340 pRenderer->DrawTextureTransparent(v164, v176, v189);
8151 goto LABEL_256; 8341 if ( !bRingsShownInCharScreen )
8342 pRenderer->_4A612A(a2g, a3g, v101, v235);
8343 v68 = v217;
8344 goto LABEL_259;
8152 } 8345 }
8153 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); 8346 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0);
8154 v190 = v101; 8347 v190 = v101;
8155 v177 = a3g; 8348 v177 = a3g;
8156 v165 = a2g; 8349 v165 = a2g;
8157 goto LABEL_255; 8350 pRenderer->DrawTransparentGreenShade(v165, v177, v190);
8351 if ( !bRingsShownInCharScreen )
8352 pRenderer->_4A612A(a2g, a3g, v101, v235);
8353 v68 = v217;
8354 goto LABEL_259;
8158 } 8355 }
8159 v102 = 17 * pBodyComplection + v90; 8356 v102 = 17 * pBodyComplection + v90;
8160 v94 = paperdoll_array_511290[0][v102][1]; 8357 v94 = paperdoll_array_511290[0][v102][1];
8161 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) 8358 if ( v94 == pIcons_LOD->FindTextureByName("pending") )
8162 { 8359 {
8163 LABEL_258:
8164 v68 = v217; 8360 v68 = v217;
8165 goto LABEL_259; 8361 goto LABEL_259;
8166 } 8362 }
8167 v103 = pPaperdoll_BodyX + dword_4E5050[2 * v102]; 8363 v103 = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0];
8168 v104 = pPaperdoll_BodyY + dword_4E5050[2 * v102 + 1]; 8364 v104 = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1];
8169 v224 = *(int *)(v242 + 516); 8365 v224 = *(int *)(v242 + 516);
8170 v105 = *(int *)(v242 + 516) & 0xF0; 8366 v105 = *(int *)(v242 + 516) & 0xF0;
8171 a2g = pPaperdoll_BodyX + dword_4E5050[2 * v102]; 8367 a2g = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0];
8172 a3g = pPaperdoll_BodyY + dword_4E5050[2 * v102 + 1]; 8368 a3g = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1];
8173 if ( !v105 ) 8369 if ( !v105 )
8174 { 8370 {
8175 v109 = v94 + 1; 8371 v109 = v94 + 1;
8176 v110 = (char *)&pIcons_LOD->pTextures[v94]; 8372 v110 = (char *)&pIcons_LOD->pTextures[v94];
8177 if ( v224 & 2 ) 8373 if ( v224 & 2 )
8179 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); 8375 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0);
8180 v188 = v101; 8376 v188 = v101;
8181 v175 = v104; 8377 v175 = v104;
8182 v163 = v103; 8378 v163 = v103;
8183 v100 = pRenderer; 8379 v100 = pRenderer;
8184 goto LABEL_231; 8380 v100->_4A6776(v163, v175, v188);
8381 if ( !bRingsShownInCharScreen )
8382 pRenderer->_4A612A(a2g, a3g, v101, v235);
8383 v68 = v217;
8384 goto LABEL_259;
8185 } 8385 }
8186 if ( v224 & 1 ) 8386 if ( v224 & 1 )
8187 { 8387 {
8188 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); 8388 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0);
8189 v189 = v101; 8389 v189 = v101;
8190 v176 = v104; 8390 v176 = v104;
8191 v164 = v103; 8391 v164 = v103;
8192 v100 = pRenderer; 8392 v100 = pRenderer;
8193 goto LABEL_234; 8393 pRenderer->DrawTextureTransparent(v164, v176, v189);
8394 if ( !bRingsShownInCharScreen )
8395 pRenderer->_4A612A(a2g, a3g, v101, v235);
8396 v68 = v217;
8397 goto LABEL_259;
8194 } 8398 }
8195 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); 8399 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0);
8196 v190 = v101; 8400 v190 = v101;
8197 v177 = v104; 8401 v177 = v104;
8198 v165 = v103; 8402 v165 = v103;
8199 v100 = pRenderer; 8403 v100 = pRenderer;
8200 LABEL_255:
8201 pRenderer->DrawTransparentGreenShade(v165, v177, v190); 8404 pRenderer->DrawTransparentGreenShade(v165, v177, v190);
8202 LABEL_256:
8203 if ( !bRingsShownInCharScreen ) 8405 if ( !bRingsShownInCharScreen )
8204 pRenderer->_4A612A(a2g, a3g, v101, v235); 8406 pRenderer->_4A612A(a2g, a3g, v101, v235);
8205 goto LABEL_258; 8407 v68 = v217;
8408 goto LABEL_259;
8206 } 8409 }
8207 v106 = v105 - 16; 8410 v106 = v105 - 16;
8208 if ( v106 ) 8411 if ( v106 )
8209 { 8412 {
8210 v107 = v106 - 16; 8413 v107 = v106 - 16;
8211 if ( !v107 ) 8414 if ( !v107 )
8212 { 8415 {
8213 v178 = "sp28a"; 8416 v178 = "sp28a";
8214 goto LABEL_246;
8215 }
8216 v108 = v107 - 32;
8217 if ( !v108 )
8218 {
8219 v178 = "sp30a";
8220 goto LABEL_246;
8221 }
8222 if ( v108 == 64 )
8223 {
8224 v178 = "sp91a";
8225 LABEL_246:
8226 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)]; 8417 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
8227 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8418 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8228 if ( dword_50C9A8 <= 0 ) 8419 if ( dword_50C9A8 <= 0 )
8229 { 8420 {
8230 dword_50C9A8 = 0; 8421 dword_50C9A8 = 0;
8232 ptr_50C9A4 = 0; 8423 ptr_50C9A4 = 0;
8233 } 8424 }
8234 v187 = 255; 8425 v187 = 255;
8235 v174 = 0; 8426 v174 = 0;
8236 v97 = (double)GetTickCount(); 8427 v97 = (double)GetTickCount();
8237 goto LABEL_249; 8428 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8429 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8430 v68 = v217;
8431 goto LABEL_259;
8432 }
8433 v108 = v107 - 32;
8434 if ( !v108 )
8435 {
8436 v178 = "sp30a";
8437 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
8438 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8439 if ( dword_50C9A8 <= 0 )
8440 {
8441 dword_50C9A8 = 0;
8442 *(char *)(v242 + 516) &= 0xFu;
8443 ptr_50C9A4 = 0;
8444 }
8445 v187 = 255;
8446 v174 = 0;
8447 v97 = (double)GetTickCount();
8448 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8449 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8450 v68 = v217;
8451 goto LABEL_259;
8452 }
8453 if ( v108 == 64 )
8454 {
8455 v178 = "sp91a";
8456 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
8457 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8458 if ( dword_50C9A8 <= 0 )
8459 {
8460 dword_50C9A8 = 0;
8461 *(char *)(v242 + 516) &= 0xFu;
8462 ptr_50C9A4 = 0;
8463 }
8464 v187 = 255;
8465 v174 = 0;
8466 v97 = (double)GetTickCount();
8467 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8468 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8469 v68 = v217;
8470 goto LABEL_259;
8238 } 8471 }
8239 } 8472 }
8240 v178 = "sptext01"; 8473 v178 = "sptext01";
8241 goto LABEL_246; 8474 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
8475 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8476 if ( dword_50C9A8 <= 0 )
8477 {
8478 dword_50C9A8 = 0;
8479 *(char *)(v242 + 516) &= 0xFu;
8480 ptr_50C9A4 = 0;
8481 }
8482 v187 = 255;
8483 v174 = 0;
8484 v97 = (double)GetTickCount();
8485 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0),
8486 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187);
8487 v68 = v217;
8488 goto LABEL_259;
8242 } 8489 }
8243 v186 = 16; 8490 v186 = 16;
8244 } 8491 }
8245 else 8492 else
8246 { 8493 {
8260 if ( (*(int *)(v57 + 20) & 0xF0) != 16 ) 8507 if ( (*(int *)(v57 + 20) & 0xF0) != 16 )
8261 { 8508 {
8262 if ( (*(int *)(v57 + 20) & 0xF0) == 32 ) 8509 if ( (*(int *)(v57 + 20) & 0xF0) == 32 )
8263 { 8510 {
8264 v171 = "sp28a"; 8511 v171 = "sp28a";
8265 goto LABEL_145;
8266 }
8267 if ( (*(int *)(v57 + 20) & 0xF0) == 64 )
8268 {
8269 v171 = "sp30a";
8270 goto LABEL_145;
8271 }
8272 if ( (*(int *)(v57 + 20) & 0xF0) == 128 )
8273 {
8274 v171 = "sp91a";
8275 LABEL_145:
8276 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)]; 8512 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
8277 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8513 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8278 if ( dword_50C9A8 <= 0 ) 8514 if ( dword_50C9A8 <= 0 )
8279 { 8515 {
8280 dword_50C9A8 = 0; 8516 dword_50C9A8 = 0;
8281 *(char *)(v221 + 20) &= 0xFu; 8517 *(char *)(v221 + 20) &= 0xFu;
8282 ptr_50C9A4 = 0; 8518 ptr_50C9A4 = 0;
8283 } 8519 }
8284 v64 = (double)GetTickCount() * 0.1; 8520 v64 = (double)GetTickCount() * 0.1;
8285 pRenderer->_4A63E6( 8521 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
8286 a2e, 8522 (signed __int64)v64, 0, 255);
8287 a3e, 8523 goto LABEL_155;
8288 (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), 8524 }
8289 v63, 8525 if ( (*(int *)(v57 + 20) & 0xF0) == 64 )
8290 (signed __int64)v64, 8526 {
8291 0, 8527 v171 = "sp30a";
8292 255); 8528 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
8529 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8530 if ( dword_50C9A8 <= 0 )
8531 {
8532 dword_50C9A8 = 0;
8533 *(char *)(v221 + 20) &= 0xFu;
8534 ptr_50C9A4 = 0;
8535 }
8536 v64 = (double)GetTickCount() * 0.1;
8537 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
8538 (signed __int64)v64, 0, 255);
8539 goto LABEL_155;
8540 }
8541 if ( (*(int *)(v57 + 20) & 0xF0) == 128 )
8542 {
8543 v171 = "sp91a";
8544 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
8545 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8546 if ( dword_50C9A8 <= 0 )
8547 {
8548 dword_50C9A8 = 0;
8549 *(char *)(v221 + 20) &= 0xFu;
8550 ptr_50C9A4 = 0;
8551 }
8552 v64 = (double)GetTickCount() * 0.1;
8553 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
8554 (signed __int64)v64, 0, 255);
8293 goto LABEL_155; 8555 goto LABEL_155;
8294 } 8556 }
8295 } 8557 }
8296 v171 = "sptext01"; 8558 v171 = "sptext01";
8297 goto LABEL_145; 8559 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
8560 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8561 if ( dword_50C9A8 <= 0 )
8562 {
8563 dword_50C9A8 = 0;
8564 *(char *)(v221 + 20) &= 0xFu;
8565 ptr_50C9A4 = 0;
8566 }
8567 v64 = (double)GetTickCount() * 0.1;
8568 pRenderer->_4A63E6(a2e, a3e, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63,
8569 (signed __int64)v64, 0, 255);
8570 goto LABEL_155;
8298 } 8571 }
8299 if ( (*(int *)(v44 + 20) & 0xF0) != 16 ) 8572 if ( (*(int *)(v44 + 20) & 0xF0) != 16 )
8300 { 8573 {
8301 if ( (*(int *)(v44 + 20) & 0xF0) == 32 ) 8574 if ( (*(int *)(v44 + 20) & 0xF0) == 32 )
8302 { 8575 {
8308 { 8581 {
8309 v50 = pIcons_LOD; 8582 v50 = pIcons_LOD;
8310 if ( (*(int *)(v44 + 20) & 0xF0) == 128 ) 8583 if ( (*(int *)(v44 + 20) & 0xF0) == 128 )
8311 { 8584 {
8312 v170 = "sp91a"; 8585 v170 = "sp91a";
8313 LABEL_117:
8314 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)]; 8586 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
8315 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8587 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8316 if ( dword_50C9A8 <= 0 ) 8588 if ( dword_50C9A8 <= 0 )
8317 { 8589 {
8318 dword_50C9A8 = 0; 8590 dword_50C9A8 = 0;
8322 v52 = (double)GetTickCount() * 0.1; 8594 v52 = (double)GetTickCount() * 0.1;
8323 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0), 8595 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
8324 v51, (signed __int64)v52, 0, 255); 8596 v51, (signed __int64)v52, 0, 255);
8325 goto LABEL_127; 8597 goto LABEL_127;
8326 } 8598 }
8327 LABEL_116:
8328 v170 = "sptext01"; 8599 v170 = "sptext01";
8329 goto LABEL_117; 8600 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
8601 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8602 if ( dword_50C9A8 <= 0 )
8603 {
8604 dword_50C9A8 = 0;
8605 *(char *)(v220 + 20) &= 0xFu;
8606 ptr_50C9A4 = 0;
8607 }
8608 v52 = (double)GetTickCount() * 0.1;
8609 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
8610 v51, (signed __int64)v52, 0, 255);
8611 goto LABEL_127;
8330 } 8612 }
8331 v170 = "sp30a"; 8613 v170 = "sp30a";
8332 } 8614 }
8333 v50 = pIcons_LOD; 8615 v50 = pIcons_LOD;
8334 goto LABEL_117; 8616 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
8617 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8618 if ( dword_50C9A8 <= 0 )
8619 {
8620 dword_50C9A8 = 0;
8621 *(char *)(v220 + 20) &= 0xFu;
8622 ptr_50C9A4 = 0;
8623 }
8624 v52 = (double)GetTickCount() * 0.1;
8625 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
8626 v51, (signed __int64)v52, 0, 255);
8627 goto LABEL_127;
8335 } 8628 }
8336 v50 = pIcons_LOD; 8629 v50 = pIcons_LOD;
8337 goto LABEL_116; 8630 v170 = "sptext01";
8631 v51 = &pIcons_LOD->pTextures[v50->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
8632 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8633 if ( dword_50C9A8 <= 0 )
8634 {
8635 dword_50C9A8 = 0;
8636 *(char *)(v220 + 20) &= 0xFu;
8637 ptr_50C9A4 = 0;
8638 }
8639 v52 = (double)GetTickCount() * 0.1;
8640 pRenderer->_4A63E6(a2d, a3d, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0),
8641 v51, (signed __int64)v52, 0, 255);
8642 goto LABEL_127;
8338 } 8643 }
8339 v185 = 16; 8644 v185 = 16;
8340 } 8645 }
8341 } 8646 }
8342 v45 = v185; 8647 v45 = v185;
8357 { 8662 {
8358 v38 = pIcons_LOD; 8663 v38 = pIcons_LOD;
8359 if ( (*(int *)(v32 + 20) & 0xF0) == 128 ) 8664 if ( (*(int *)(v32 + 20) & 0xF0) == 128 )
8360 { 8665 {
8361 v169 = "sp91a"; 8666 v169 = "sp91a";
8362 LABEL_85:
8363 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; 8667 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
8364 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8668 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8365 if ( dword_50C9A8 <= 0 ) 8669 if ( dword_50C9A8 <= 0 )
8366 { 8670 {
8367 dword_50C9A8 = 0; 8671 dword_50C9A8 = 0;
8368 *(char *)(v219 + 20) &= 0xFu; 8672 *(char *)(v219 + 20) &= 0xFu;
8369 ptr_50C9A4 = 0; 8673 ptr_50C9A4 = 0;
8370 } 8674 }
8371 v40 = (double)GetTickCount() * 0.1; 8675 v40 = (double)GetTickCount() * 0.1;
8372 pRenderer->_4A63E6( 8676 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
8373 a2c, 8677 (signed __int64)v40, 0, 255);
8374 a3c,
8375 (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0),
8376 v39,
8377 (signed __int64)v40,
8378 0,
8379 255);
8380 goto LABEL_93; 8678 goto LABEL_93;
8381 } 8679 }
8382 LABEL_84:
8383 v169 = "sptext01"; 8680 v169 = "sptext01";
8384 goto LABEL_85; 8681 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
8682 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8683 if ( dword_50C9A8 <= 0 )
8684 {
8685 dword_50C9A8 = 0;
8686 *(char *)(v219 + 20) &= 0xFu;
8687 ptr_50C9A4 = 0;
8688 }
8689 v40 = (double)GetTickCount() * 0.1;
8690 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
8691 (signed __int64)v40, 0, 255);
8692 goto LABEL_93;
8385 } 8693 }
8386 v169 = "sp30a"; 8694 v169 = "sp30a";
8387 } 8695 }
8388 v38 = pIcons_LOD; 8696 v38 = pIcons_LOD;
8389 goto LABEL_85; 8697 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
8698 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8699 if ( dword_50C9A8 <= 0 )
8700 {
8701 dword_50C9A8 = 0;
8702 *(char *)(v219 + 20) &= 0xFu;
8703 ptr_50C9A4 = 0;
8704 }
8705 v40 = (double)GetTickCount() * 0.1;
8706 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
8707 (signed __int64)v40, 0, 255);
8708 goto LABEL_93;
8390 } 8709 }
8391 v38 = pIcons_LOD; 8710 v38 = pIcons_LOD;
8392 goto LABEL_84; 8711 v169 = "sptext01";
8712 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
8713 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8714 if ( dword_50C9A8 <= 0 )
8715 {
8716 dword_50C9A8 = 0;
8717 *(char *)(v219 + 20) &= 0xFu;
8718 ptr_50C9A4 = 0;
8719 }
8720 v40 = (double)GetTickCount() * 0.1;
8721 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39,
8722 (signed __int64)v40, 0, 255);
8723 goto LABEL_93;
8393 } 8724 }
8394 v184 = 9; 8725 v184 = 9;
8395 break; 8726 break;
8396 } 8727 }
8397 v33 = v184; 8728 v33 = v184;
8412 { 8743 {
8413 v26 = pIcons_LOD; 8744 v26 = pIcons_LOD;
8414 if ( (*(int *)(v22 + 20) & 0xF0) == 128 ) 8745 if ( (*(int *)(v22 + 20) & 0xF0) == 128 )
8415 { 8746 {
8416 v168 = "sp91a"; 8747 v168 = "sp91a";
8417 LABEL_49:
8418 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)]; 8748 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
8419 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8749 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8420 if ( dword_50C9A8 <= 0 ) 8750 if ( dword_50C9A8 <= 0 )
8421 { 8751 {
8422 dword_50C9A8 = 0; 8752 dword_50C9A8 = 0;
8426 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); 8756 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
8427 v28 = (double)GetTickCount() * 0.1; 8757 v28 = (double)GetTickCount() * 0.1;
8428 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255); 8758 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
8429 goto LABEL_57; 8759 goto LABEL_57;
8430 } 8760 }
8431 LABEL_48:
8432 v168 = "sptext01"; 8761 v168 = "sptext01";
8433 goto LABEL_49; 8762 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
8763 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8764 if ( dword_50C9A8 <= 0 )
8765 {
8766 dword_50C9A8 = 0;
8767 *(char *)(v22 + 20) &= 0xFu;
8768 ptr_50C9A4 = 0;
8769 }
8770 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
8771 v28 = (double)GetTickCount() * 0.1;
8772 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
8773 goto LABEL_57;
8434 } 8774 }
8435 v168 = "sp30a"; 8775 v168 = "sp30a";
8436 } 8776 }
8437 v26 = pIcons_LOD; 8777 v26 = pIcons_LOD;
8438 goto LABEL_49; 8778 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
8779 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8780 if ( dword_50C9A8 <= 0 )
8781 {
8782 dword_50C9A8 = 0;
8783 *(char *)(v22 + 20) &= 0xFu;
8784 ptr_50C9A4 = 0;
8785 }
8786 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
8787 v28 = (double)GetTickCount() * 0.1;
8788 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
8789 goto LABEL_57;
8439 } 8790 }
8440 v26 = pIcons_LOD; 8791 v26 = pIcons_LOD;
8441 goto LABEL_48; 8792 v168 = "sptext01";
8793 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
8794 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8795 if ( dword_50C9A8 <= 0 )
8796 {
8797 dword_50C9A8 = 0;
8798 *(char *)(v22 + 20) &= 0xFu;
8799 ptr_50C9A4 = 0;
8800 }
8801 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0);
8802 v28 = (double)GetTickCount() * 0.1;
8803 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255);
8804 goto LABEL_57;;
8442 } 8805 }
8443 a3 = pPaperdoll_BodyY; 8806 a3 = pPaperdoll_BodyY;
8444 a2 = pPaperdoll_BodyX; 8807 a2 = pPaperdoll_BodyX;
8445 v240 = 4 * uPlayerID_ - 4; 8808 v240 = 4 * uPlayerID_ - 4;
8446 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, 8809 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY,
8447 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); 8810 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0));
8448 //(Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? 72
8449 // * *(unsigned int *)((char *)papredoll_dbods
8450 // + v240)
8451 // + 7145548 : 0));
8452 if ( !bRingsShownInCharScreen ) 8811 if ( !bRingsShownInCharScreen )
8453 pRenderer->_4A612A(a2, a3, 8812 pRenderer->_4A612A(a2, a3,
8454 //(Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? 72
8455 // * *(unsigned int *)((char *)papredoll_dbods
8456 // + v240)
8457 // + 7145548 : 0),
8458 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0), 8813 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0),
8459 pPlayer->pEquipment.uBody); 8814 pPlayer->pEquipment.uBody);
8460 uPlayerID_a = 2 * v5; 8815 uPlayerID_a = 2 * v5;
8461 v6 = pPlayer->pEquipment.uMainHand; 8816 v6 = pPlayer->pEquipment.uMainHand;
8462 if ( !v6 8817 if ( !v6
8463 || (v7 = *(int *)&pPlayer->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1) 8818 || (v7 = *(int *)&pPlayer->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1)
8464 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayer->pEquipment.uOffHand) ) 8819 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayer->pEquipment.uOffHand) )
8465 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[2 * v5], pPaperdoll_BodyY + pPaperdoll_LeftHand[2 * v5 + 1], 8820 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[v5][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[v5][1],
8466 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); 8821 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0));
8467 //(Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? 72
8468 // * *(unsigned int *)((char *)papredoll_dlads
8469 // + v240)
8470 // + 7145548 : 0));
8471 v8 = pPlayer->pEquipment.uMainHand; 8822 v8 = pPlayer->pEquipment.uMainHand;
8472 if ( v8 ) 8823 if ( v8 )
8473 { 8824 {
8474 v229 = pPlayer->pEquipment.uMainHand; 8825 v229 = pPlayer->pEquipment.uMainHand;
8475 v9 = (int)&v217->pInventoryItems[v8-1]; 8826 v9 = (int)&v217->pInventoryItems[v8-1];
8476 v10 = v5 << 7; 8827 v10 = v5 << 7;
8477 v218 = v9; 8828 v218 = v9;
8478 v11 = *(int *)v9; 8829 v11 = *(int *)v9;
8479 v12 = *(int *)v9; 8830 v12 = *(int *)v9;
8480 v13 = pPaperdoll_BodyX + array_4E4C30[v5].field_8 - pItemsTable->pItems[v12].uEquipX; 8831 v13 = pPaperdoll_BodyX + paperdoll_Weapon[v5][1][0] - pItemsTable->pItems[v12].uEquipX;
8481 a2a = v13; 8832 a2a = v13;
8482 a3a = pPaperdoll_BodyY + *(int *)((char *)&array_4E4C30[0].field_C + v10) - pItemsTable->pItems[v12].uEquipY; 8833 a3a = pPaperdoll_BodyY + *(int *)((char *)&paperdoll_Weapon[0][1][1] + v10) - pItemsTable->pItems[v12].uEquipY;
8483 if ( v11 == 64 ) 8834 if ( v11 == 64 )
8484 v166 = "item64v1"; 8835 v166 = "item64v1";
8485 else 8836 else
8486 v166 = pItemsTable->pItems[v12].pIconName; 8837 v166 = pItemsTable->pItems[v12].pIconName;
8487 v14 = pIcons_LOD->LoadTexture(v166, TEXTURE_16BIT_PALETTE); 8838 v14 = pIcons_LOD->LoadTexture(v166, TEXTURE_16BIT_PALETTE);
8491 if ( (*(int *)(v218 + 20) & 0xF0) != 16 ) 8842 if ( (*(int *)(v218 + 20) & 0xF0) != 16 )
8492 { 8843 {
8493 if ( (*(int *)(v218 + 20) & 0xF0) == 32 ) 8844 if ( (*(int *)(v218 + 20) & 0xF0) == 32 )
8494 { 8845 {
8495 v167 = "sp28a"; 8846 v167 = "sp28a";
8496 goto LABEL_27; 8847 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
8848 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
8849 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8850 if ( dword_50C9A8 <= 0 )
8851 {
8852 dword_50C9A8 = 0;
8853 *(char *)(v218 + 20) &= 0xFu;
8854 ptr_50C9A4 = 0;
8855 }
8856 v17 = (double)GetTickCount() * 0.1;
8857 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
8858 goto LABEL_393;;
8497 } 8859 }
8498 if ( (*(int *)(v218 + 20) & 0xF0) == 64 ) 8860 if ( (*(int *)(v218 + 20) & 0xF0) == 64 )
8499 { 8861 {
8500 v167 = "sp30a"; 8862 v167 = "sp30a";
8501 goto LABEL_27; 8863 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
8864 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
8865 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8866 if ( dword_50C9A8 <= 0 )
8867 {
8868 dword_50C9A8 = 0;
8869 *(char *)(v218 + 20) &= 0xFu;
8870 ptr_50C9A4 = 0;
8871 }
8872 v17 = (double)GetTickCount() * 0.1;
8873 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
8874 goto LABEL_393;
8502 } 8875 }
8503 if ( (*(int *)(v218 + 20) & 0xF0) == 128 ) 8876 if ( (*(int *)(v218 + 20) & 0xF0) == 128 )
8504 { 8877 {
8505 v167 = "sp91a"; 8878 v167 = "sp91a";
8506 LABEL_27:
8507 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548); 8879 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
8508 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)]; 8880 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
8509
8510 dword_50C9A8 -= pEventTimer->uTimeElapsed; 8881 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8511 if ( dword_50C9A8 <= 0 ) 8882 if ( dword_50C9A8 <= 0 )
8512 { 8883 {
8513 dword_50C9A8 = 0; 8884 dword_50C9A8 = 0;
8514 *(char *)(v218 + 20) &= 0xFu; 8885 *(char *)(v218 + 20) &= 0xFu;
8515 ptr_50C9A4 = 0; 8886 ptr_50C9A4 = 0;
8516 } 8887 }
8517 v17 = (double)GetTickCount() * 0.1; 8888 v17 = (double)GetTickCount() * 0.1;
8518 pRenderer->_4A63E6( 8889 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
8519 v13,
8520 a3a,
8521 (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0),
8522 v16,
8523 (signed __int64)v17,
8524 0,
8525 255);
8526 goto LABEL_393; 8890 goto LABEL_393;
8527 } 8891 }
8528 } 8892 }
8529 v167 = "sptext01"; 8893 v167 = "sptext01";
8530 goto LABEL_27; 8894 //v16 = (Texture *)(72 * pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE) + 7145548);
8895 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
8896 dword_50C9A8 -= pEventTimer->uTimeElapsed;
8897 if ( dword_50C9A8 <= 0 )
8898 {
8899 dword_50C9A8 = 0;
8900 *(char *)(v218 + 20) &= 0xFu;
8901 ptr_50C9A4 = 0;
8902 }
8903 v17 = (double)GetTickCount() * 0.1;
8904 pRenderer->_4A63E6(v13, a3a, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
8905 goto LABEL_393;
8531 } 8906 }
8532 v18 = v14 + 1; 8907 v18 = v14 + 1;
8533 v19 = (char *)&pIcons_LOD->pTextures[v14]; 8908 v19 = (char *)&pIcons_LOD->pTextures[v14];
8534 if ( v15 & 2 ) 8909 if ( v15 & 2 )
8535 { 8910 {
8554 } 8929 }
8555 LABEL_393: 8930 LABEL_393:
8556 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[uPlayerID_a], 8931 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[uPlayerID_a],
8557 pPaperdoll_BodyY + pPaperdoll_RightHand[uPlayerID_a + 1], 8932 pPaperdoll_BodyY + pPaperdoll_RightHand[uPlayerID_a + 1],
8558 (Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_drhs + v240)] : 0)); 8933 (Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_drhs + v240)] : 0));
8559 //(Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? 72
8560 // * *(unsigned int *)((char *)papredoll_drhs + v240)
8561 // + 7145548 : 0));
8562 v161 = v217->pEquipment.uMainHand; 8934 v161 = v217->pEquipment.uMainHand;
8563 if ( v161 ) 8935 if ( v161 )
8564 { 8936 {
8565 v162 = *(int *)&v217->pInventoryItems[v161-1]; 8937 v162 = *(int *)&v217->pInventoryItems[v161-1];
8566 if ( pItemsTable->pItems[v162].uEquipType == 1 8938 if ( pItemsTable->pItems[v162].uEquipType == 1 || pItemsTable->pItems[v162].uSkillType == 4 && !v217->pEquipment.uOffHand )
8567 || pItemsTable->pItems[v162].uSkillType == 4 && !v217->pEquipment.uOffHand ) 8939 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a],
8568 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[uPlayerID_a], 8940 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1],
8569 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[uPlayerID_a + 1],
8570 (Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhus + v240)] : 0)); 8941 (Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhus + v240)] : 0));
8571 //(Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? 72
8572 // * *(unsigned int *)((char *)papredoll_dlhus
8573 // + v240)
8574 // + 7145548 : 0));
8575 } 8942 }
8576 if ( !bRingsShownInCharScreen ) 8943 if ( !bRingsShownInCharScreen )
8577 pRenderer->DrawTextureTransparent(0x25Bu, 0x12Bu, 8944 pRenderer->DrawTextureTransparent(0x25Bu, 0x12Bu,
8578 (Texture *)(uTextureID_MAGNIF_B != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_MAGNIF_B] : 0)); 8945 (Texture *)(uTextureID_MAGNIF_B != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_MAGNIF_B] : 0));
8579 pRenderer->DrawTextureTransparent(0x1D4u, 0, 8946 pRenderer->DrawTextureTransparent(0x1D4u, 0,