Removing NPC Chat Bubbles

11/15/2019 03:17 DoctorOct#1
I'm currently working with cuvvvies clean v15 source and I'm seeking a way to remove ALL NPC dialog chat bubbles that auto-pop on the screen when you enter/stand around town, thanks in advance! For better clarification [Not the chat box that pops up when clicking on an NPC for quests.]
11/15/2019 11:48 Sedrika#2
WndManager.cpp ⇒ CWndMgr::PutString
Scroll down to the very end of the function and change
Code:
if (dwStyle & TMS_DIALOG)
{
	if (pObj->GetType() == OT_MOVER)
	{
		TCHAR* lpszChat = (TCHAR*)_tcschr(lpszString, _T(':'));
		lpszChat += sizeof(TCHAR) * 2;	// Skip ": "
		g_DialogMsg.AddMessage(pObj, lpszChat, 0xffffffff, 0, dwPStyle);
	}
}
with
Code:
if (dwStyle & TMS_DIALOG)
{
	if (pObj->GetType() == OT_MOVER && ((CMover*)pObj)->IsPlayer())
	{
		TCHAR* lpszChat = (TCHAR*)_tcschr(lpszString, _T(':'));
		lpszChat += sizeof(TCHAR) * 2;	// Skip ": "
		g_DialogMsg.AddMessage(pObj, lpszChat, 0xffffffff, 0, dwPStyle);
	}
}
NPC Messages should be disabled this way and player messages are still enabled.
This is only client side if you want to make it optional for individual players by adding a settings option.

However, if you want to disable it completely (server side) then go to scriptlib.cpp ⇒ int APIENTRY Speak and comment out everything but return 1;
11/16/2019 00:54 DoctorOct#3
I could kiss you! Thanks a bunch