NEW FEAT: /whofilter concolor [on/off]

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

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

NEW FEAT: /whofilter concolor [on/off]

Post by MacroFiend » Thu Nov 06, 2003 7:34 pm

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.

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

Post by MacroFiend » Thu Nov 06, 2003 11:30 pm

I have tested this and fixed the one typo in it :( Can I get this put in CVS please?

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Nov 07, 2003 9:53 am

I CVS'd it in, compiled fine. Where was the typo so I can check that and fix it if need be?
MQ2: Think of it as Evolution in action.

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

Post by MacroFiend » Fri Nov 07, 2003 10:43 am

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.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Nov 07, 2003 10:51 am

It's correct in the CVS.
MQ2: Think of it as Evolution in action.