• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Ignore Npc Dialogue

Skilled Illusionist
Joined
Apr 21, 2010
Messages
378
Reaction score
96
Option Window code:

WndOption.cpp

Add:

Code:
#ifdef __ignoreNpcDialogue
	CWndButton* pWndIgnoreNpcDialogue = (CWndButton*)GetDlgItem(WIDC_CHECK13);
	pWndIgnoreNpcDialogue->SetCheck(g_Option.ignoreNpcDialogue);
	pWndButton[0] = (CWndButton*)GetDlgItem(WIDC_CHECK13);
	if (pWndButton[0])
		pWndButton[0]->SetCheck(g_Option.ignoreNpcDialogue);
#endif

Add:

Code:
#ifdef __ignoreNpcDialogue
	CWndButton* pWndIgnoreNpcDialogue = (CWndButton*)GetDlgItem(WIDC_CHECK13);
#endif

Add:

Code:
#ifdef __ignoreNpcDialogue
	case WIDC_CHECK13:
	{
		if (pWndIgnoreNpcDialogue->GetCheck())
			g_Option.ignoreNpcDialogue = TRUE;
		else
			g_Option.ignoreNpcDialogue = FALSE;
	}
	break;
#endif

resdata.inc

At the bottom at "APP_OPTEX_AV12"

Code:
    WTYPE_BUTTON WIDC_CHECK13 "ButtCheck.bmp" 0 285 288 475 304 0x220008 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_019687
    }
    {
    // ToolTip
    IDS_RESDATA_INC_019688
    }

resData.txt.txt

Code:
IDS_RESDATA_INC_019687	Hide NPC dialog
IDS_RESDATA_INC_019688
 
Back
Top