Mercurial > mm7
diff mm7_2.cpp @ 874:231523a39203
Buy books(first)
author | Ritor1 |
---|---|
date | Mon, 01 Apr 2013 17:37:32 +0600 |
parents | f4394e320312 |
children | b7246c149957 |
line wrap: on
line diff
--- a/mm7_2.cpp Mon Apr 01 16:28:10 2013 +0600 +++ b/mm7_2.cpp Mon Apr 01 17:37:32 2013 +0600 @@ -1006,35 +1006,26 @@ } if ( !sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() ) { - v56 = 0; - v52 = 0; - v50 = 0; - v49 = 0; - v48 = -1; - v47 = 0; - v46 = 0; - pAudioPlayer->PlaySound(SOUND_27, v46, v47, v48, v49, v50, v52, v56); + pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0); return; } switch(dialog_menu_id) { - case HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT: - { - pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; - sub_421EA6_OnInventoryLeftClick(); - break; - } - case HOUSE_DIALOGUE_GULD_BUY_BOOKS: - { + case HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT: + { + pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; + sub_421EA6_OnInventoryLeftClick(); + break; + } + case HOUSE_DIALOGUE_GUILD_BUY_BOOKS://Ritor1: in process + { v17 = pMouse->GetCursorPos(&v63); v18 = pRenderer->pActiveZBuffer[v17->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v61)->y]] & 0xFFFF; if ( !v18 ) return; - v19 = window_SpeakInHouse->ptr_1C; - v20 = (ItemGen *)(&pParty->pPlayers[1].uExpressionTimeLength + 18 * (v18 + 12 * (int)v19)); - //v21 = p2DEvents_minus1__20[13 * (signed int)v19]; - v21 = p2DEvents[(signed int)v19 - 1].fPriceMultiplier; + v20 = (ItemGen *)(&pParty->pPlayers[1].uExpressionTimeLength + 18 * (v18 + 12 * (int)window_SpeakInHouse->ptr_1C)); + v21 = p2DEvents[(signed int)window_SpeakInHouse->ptr_1C - 1].fPriceMultiplier; _this = v20; v22 = v20->GetValue(); v23 = v0->GetBuyingPrice(v22, v21); @@ -1043,7 +1034,6 @@ if ( pParty->uNumGold < v23 ) { v24 = 2; - //LABEL_62: PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, (HouseSoundID)v24); v9 = pGlobalTXT_LocalizationStrings[155]; v54 = 2; @@ -1062,16 +1052,11 @@ _this->Reset(); pRenderer->ClearZBuffer(0, 479); v27 = v77; - v53 = 0; - v51 = SPEECH_75; - v27->PlaySound((PlayerSpeech)v51, v53); + v27->PlaySound((PlayerSpeech)SPEECH_75, 0); return; } v0->PlaySound(SPEECH_NoRoom, 0); - v54 = 5; - //LABEL_70: - v9 = pGlobalTXT_LocalizationStrings[563]; // "Pack is Full!" - ShowStatusBarString(v9, v54); + ShowStatusBarString(pGlobalTXT_LocalizationStrings[563], 5); // "Pack is Full!" break; } @@ -1341,7 +1326,7 @@ break; } - default: + default:// if click video screen in shop { __debugbreak(); // please do record these dialogue ids to the HOUSE_DIALOGUE_MENU enum if( dialog_menu_id >= 36 && dialog_menu_id <= 72 )