FEAT REQ: /rtarg
Posted: Fri Oct 03, 2003 11:00 pm
Was wondering if its possible to have /Rtarget function as target does under MQ.
Need to talk about MacroQuest to other MacroQuest users?
https://mq64.org/phpBB3/
Code: Select all
/alias /rtt /target "$lasttell"Code: Select all
VOID Detour(PCHAR szMsg, DWORD dwColor, DWORD dwUnknown)
{
DebugSpew("CChatHook::Detour(%s)",szMsg);
gbInChat = TRUE;
if ((!strncmp(szMsg,"You have entered ",17)) || (strstr(szMsg," saved."))) {
if (gZoning) {
gDelayZoning += gZoneDelay;
gZoning=FALSE;
}
gbInGame=TRUE;
} else if (!strcmp(szMsg,"Welcome to EverQuest!")) {
gbDoAutoRun=TRUE;
} else if (strstr(szMsg," tells you, '")) {
strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," tells you, '")-szMsg));
} Code: Select all
VOID Detour(PCHAR szMsg, DWORD dwColor, DWORD dwUnknown)
{
DebugSpew("CChatHook::Detour(%s)",szMsg);
gbInChat = TRUE;
if ((!strncmp(szMsg,"You have entered ",17)) || (strstr(szMsg," saved."))) {
if (gZoning) {
gDelayZoning += gZoneDelay;
gZoning=FALSE;
}
gbInGame=TRUE;
} else if (!strcmp(szMsg,"Welcome to EverQuest!")) {
gbDoAutoRun=TRUE;
} else if (strstr(szMsg," tells you, '")) {
strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," tells you, '")-szMsg));
*(gLastTell+((DWORD)(strstr(szMsg," tells you, '")-szMsg))) = 0;
}
Code: Select all
} else if (strstr(szMsg," tells you, '")) {
[color=red] ZeroMemory(gLastTell,MAX_STRING]);[/color]
strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," tells you, '")-szMsg));
}
Code: Select all
VOID Detour(PCHAR szMsg, DWORD dwColor, DWORD dwUnknown)
{
DebugSpew("CChatHook::Detour(%s)",szMsg);
gbInChat = TRUE;
if ((!strncmp(szMsg,"You have entered ",17)) || (strstr(szMsg," saved."))) {
if (gZoning) {
gDelayZoning += gZoneDelay;
gZoning=FALSE;
}
gbInGame=TRUE;
} else if (!strcmp(szMsg,"Welcome to EverQuest!")) {
gbDoAutoRun=TRUE;
} else if (strstr(szMsg," tells you, '")) {
strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," tells you, '")-szMsg)); *(gLastTell+((DWORD)(strstr(szMsg," tells you, '")-szMsg))) = 0;
}