How to make #chat capture from EQIM tells ?

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

VesperKnight
orc pawn
orc pawn
Posts: 29
Joined: Tue Jul 29, 2003 5:37 am

How to make #chat capture from EQIM tells ?

Post by VesperKnight » Wed Jul 30, 2003 4:05 pm

Hrmm... think this would be possible? As it is #chat tell will not react if tells are coming from EQIM as opposed to real tells

anyone got any idea how to make this work?

somemage
a lesser mummy
a lesser mummy
Posts: 35
Joined: Mon May 12, 2003 7:44 pm

Post by somemage » Wed Jul 30, 2003 8:02 pm

It should be easy to add. What's the exact text you get when you receive one of these tells?

VesperKnight
orc pawn
orc pawn
Posts: 29
Joined: Tue Jul 29, 2003 5:37 am

Post by VesperKnight » Thu Jul 31, 2003 5:47 am

you get the same text as if you received a regular tell

but if press R to reply.. or if you wanted to send a tell to someone you knew was on EQIM and not in-game.. you'd have to type ;tell instead of /tell

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Thu Jul 31, 2003 7:59 am

No, there is a slight difference in the text, I just can't remember exactly what it is.

I can tell the difference between an EQIM tell and an in-game tell.

User avatar
Kint
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 13, 2003 3:36 am

Post by Kint » Thu Jul 31, 2003 3:35 pm

I think it usually tells you something like "server.name tells you, '...'"
even if the server is the one you're currently on

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Post by MacroFiend » Thu Jul 31, 2003 4:10 pm

With some of the more recent client changes, same-server ;tells only show the person's name. Haven't done many cross-server tells but it comes in handy on Fir Vie where you don't have a common tongue.

Shin Noir
a ghoul
a ghoul
Posts: 90
Joined: Tue Aug 05, 2003 8:18 pm

Post by Shin Noir » Wed Aug 06, 2003 12:24 am

In game tells have the syntax: <person> tells you, '<msg>'
EQIM (chat server) do syntax: <person> told you, '<msg>'

subtle difference but that's what you're asking ya?

VesperKnight
orc pawn
orc pawn
Posts: 29
Joined: Tue Jul 29, 2003 5:37 am

Post by VesperKnight » Wed Aug 06, 2003 4:58 pm

thanks.. well now that we know the difference.. can anyone figure how to make commands receivable via the EQIM? that was the whole point of this thread

somemage
a lesser mummy
a lesser mummy
Posts: 35
Joined: Mon May 12, 2003 7:44 pm

Post by somemage » Wed Aug 06, 2003 5:22 pm

Ok then. Open EQLib_Hooks.cpp go to void CChatHook::detour(PCHAR,DWORD,DWORD), find the if/elseif blocks and add this (red is existing code):

Code: Select all

[color=red]				AddEvent(EVENT_CHAT,"tell",Arg1,Arg2);[/color]
			} else if ((strstr(szMsg," told you, '")) && (CHATEVENT(CHAT_TELL))) { 
				strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," told you, '")-szMsg)); 
				strcpy(Arg2,strstr(szMsg," told you, '")+12); 
				Arg2[strlen(Arg2)-1]=0; 
				AddEvent(EVENT_CHAT,"tell",Arg1,Arg2);
[color=red]			} else if ((strstr(szMsg," says out of character, '")) && (CHATEVENT(CHAT_OOC))) {[/color]
Last edited by somemage on Sat Aug 09, 2003 8:49 am, edited 1 time in total.

VesperKnight
orc pawn
orc pawn
Posts: 29
Joined: Tue Jul 29, 2003 5:37 am

Post by VesperKnight » Fri Aug 08, 2003 11:13 pm

thanks a lot? any chance to have this included in the cvs files since I think it's missing from there and should be there.

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Post by MacroFiend » Sat Aug 09, 2003 1:53 pm

Wouldn't we also want the cross-server chat to set the gLastTell to be that person also?

Also in EQLib_Hooks.cpp

Code: Select all

[color=red]				gZoning=FALSE; 
			} 
			gbInGame=TRUE; 
		} else if (strstr(szMsg," tells you, '")) { 
			strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," tells you, '")-szMsg)); [/color]
		} else if (strstr(szMsg," told you, '")) { 
			strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," told you, '")-szMsg)); 

DebianSEQ
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sat Aug 30, 2003 12:33 pm

Post by DebianSEQ » Fri Oct 10, 2003 10:33 am

Please, add this to CVS. I'm tired of changing it after getting the new .zip and having the change overwritten. I use EQIM to check my bazaar mule's status while at work.

Edit: changed as of last MQ patch.

Code: Select all

[color=red]                                } else if (strstr(szMsg," tells you, '")) { 
			ZeroMemory(gLastTell,MAX_STRING);
			strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," tells you, '")-szMsg)); [/color]
		} else if (strstr(szMsg," told you, '")) { 
			ZeroMemory(gLastTell,MAX_STRING);
			strncpy(gLastTell,szMsg,(DWORD)(strstr(szMsg," told you, '")-szMsg)); 
		} 
DebianSEQ