imanuel1322
Member
- Joined
- Nov 12, 2014
- Messages
- 15
- Reaction score
- 0
I want to take/get the description of some dialog, how I take it?
DWORD dialogPtr = *(DWORD*)(sampBase + 0x212A40);
if (dialogPtr != NULL) {
int isActive = *(int*)(dialogPtr + 0x28);
if (isActive) {
char *text = (char*)*(DWORD*)(dialogPtr + 0x34);
AddMessageToChatWindow(color, text);
}
}
if (g_Dialog->iDialogShowed)
char *text = g_Dialog->pszText;
springfield link said:Code:DWORD dialogPtr = *(DWORD*)(sampBase + 0x212A40); if (dialogPtr != NULL) { int isActive = *(int*)(dialogPtr + 0x28); if (isActive) { char *text = (char*)*(DWORD*)(dialogPtr + 0x34); AddMessageToChatWindow(color, text); } }
If you use mod_sa, just use g_Dialog struct.
Code:if (g_Dialog->iDialogShowed) char *text = g_Dialog->pszText;