Page 1 of 1

NEW FEAT: /whofilter concolor [on/off]

Posted: Thu Nov 06, 2003 7:34 pm
by MacroFiend
For those who might like setting a filter to always show the concolor in the /who output, here is an addition to the /whofilter that will let you toggle the concolor display on or off. (/who concolor remains unchanged) This has been compile tested but not functionally tested.

MQ.h

Code: Select all

	BOOL Holding;[color=red]
	BOOL ConColor;[/color]
} SWHOFILTER, *PSWHOFILTER;
EQLib_Main.cpp
Inside ParseINIFile()

Code: Select all

	gFilterSWho.Holding = GetPrivateProfileInt("SWho Filter","Holding",0,Filename);[color=red]
	gFilterSWho.ConColor= GetPrivateProfileInt("SWho Filter","ConColor",0,Filename);[/color]

    gTelnetServer= GetPrivateProfileInt("Telnet Server","Enabled",0,Filename);
EQLib_Commands.cpp
Inside SWhoFilter()

Code: Select all

		SetDisplaySWhoFilter(&gFilterSWho.Holding,"Holding",szToggle);[color=red]
	} else if (!stricmp(szArg,"ConColor")) {
		SetDisplaySWhoFilter(&gFilterSWho.ConColor,"ConColor",szToggle);[/color]
	} else {[color=red]
		WriteChatBuffer("Usage: /whofilter <lastname|class|race|level|gm|guild|holding|ld|anon|lfg|npctag|spawnid|trader|afk|concolor> [on|off]",USERCOLOR_DEFAULT);[/color]
	}

Inside SuperWhoDisplay

Code: Select all

		szMsg[0]='\a';
		szMsg[2]=0;[color=red]
		if (Color || gFilterSWho.ConColor)[/color]
		{
Edit: I hate it when I auto-complete grabs the wrong info.

Posted: Thu Nov 06, 2003 11:30 pm
by MacroFiend
I have tested this and fixed the one typo in it :( Can I get this put in CVS please?

Posted: Fri Nov 07, 2003 9:53 am
by Mckorr
I CVS'd it in, compiled fine. Where was the typo so I can check that and fix it if need be?

Posted: Fri Nov 07, 2003 10:43 am
by MacroFiend

Code: Select all

szMsg[0]='\a'; 
      szMsg[2]=0; 
      if (Color || gFilterSWho.[color=red]ConColor[/color]) 
      {
It had been gFilterSWho.Guild and not ConColor.

If you CVS'd it this morning, then it is correct. I made the correction to the original code right before I posted my note about it having had a typo and asking it to be CVS'd.

Posted: Fri Nov 07, 2003 10:51 am
by Mckorr
It's correct in the CVS.