NEW FEAT: /whofilter invisible [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 invisible [on|off]

Post by MacroFiend » Thu Nov 13, 2003 12:40 am

This will allow you to toggle the display of invisible mobs in the /who lists.
Red are new lines, cyan are changed lines.

MQ.h

Code: Select all

	BOOL ConColor;[color=red]
	BOOL Invisible;[/color]
} SWHOFILTER, *PSWHOFILTER;
EQLib_Main.cpp

Code: Select all

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

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

Code: Select all

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

Code: Select all

			if ((pFilter->bGroup) && (!IsInGroup(pSpawn))) continue; [color=cyan]
			if (((!pFilter->bTargInvis) || (gFilterSWho.Invisible)) && (pSpawn->BodyType>0x40)) continue;[/color]
            if ((pFilter->bTrader) && (!pSpawn->pActorInfo->Trader)) continue;

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

Post by Mckorr » Thu Nov 13, 2003 9:43 am

CVS'd
MQ2: Think of it as Evolution in action.

GothOpie
orc pawn
orc pawn
Posts: 11
Joined: Wed Nov 12, 2003 12:12 pm

/whofilter invisible on not working

Post by GothOpie » Fri Nov 14, 2003 2:18 am

when I set /whofilter invisible on, I'm still not able to /who on invis npc's
I checked the ini file, it shows:
[SWho Filter]
Invisible=1
I tried exiting MQ and EQ, logging back in, and still cannot /who them(using /who npc THEinvisNPC'sname)
tried the suggestion from http://macroquest2.com/phpBB2/viewtopic ... isible+npc
(/who npc range 1 2 invis) still no luck
tried about every varation I could think of using "npc", "invis" and/or "invisible", what am I doing wrong?

(and yes, trust me there ARE invis npc's where I'm at ;)
edit: forgot to mention, I just downloaded and compiled the newest MQ about 10 minutes ago
-
Classes are not that out of balance -AbsorEQ

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

Post by MacroFiend » Fri Nov 14, 2003 10:19 am

Sorry ... that's my fault. I just looked at the logic of the statement again and it is wrong. I forgot I was dealing with inverse logic on these statements.

Code: Select all

if (((!pFilter->bTargInvis) || (gFilterSWho.Invisible)) && (pSpawn->BodyType>0x40)) continue;
should be

Code: Select all

if ((!pFilter->bTargInvis) && (!gFilterSWho.Invisible) && (pSpawn->BodyType>0x40)) continue;

Homer
orc pawn
orc pawn
Posts: 28
Joined: Fri Apr 11, 2003 12:01 pm

Post by Homer » Fri Nov 14, 2003 10:58 am

This last change is not in the current CVS.

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

Post by MacroFiend » Fri Nov 14, 2003 11:40 am

I don't have CVS access, so I can't put it there directly. One of the devs has to update CVS.

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

Post by Mckorr » Fri Nov 14, 2003 12:05 pm

It's not in the CVS because there is a parentheses missing :)

Edit: No there's not, I'm just blind today. Fixing it now, will be in dev CVS in a minute or two.
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 14, 2003 12:09 pm

With the OR, they needed to be grouped ... but w/ the &&'s it doesn't make a difference, so I removed the inner parenthesisesissiissiis.

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

Post by Mckorr » Fri Nov 14, 2003 12:13 pm

I got it, I just kept miscounting. Normally I just cut and paste the code in, but for such a minor change was faster to type it and that through my count off. Just needed to go back over what you actually wrote as opposed to what I thought you wrote, if that makes any sense.
MQ2: Think of it as Evolution in action.

Milten
a hill giant
a hill giant
Posts: 176
Joined: Thu Oct 09, 2003 11:40 am

Post by Milten » Thu Feb 12, 2004 6:09 am

Sorry to bump such an old topic.. but:

/ npc guy => 0
/ npc guy invis => elem, muddite, vegerog
/whofilter invisible => off
/whofilter invisible on => on
/ npc guy => 0
/ npc guy invis => elem, muddite, vegerog

relogging doesnt change a thing...

P.S. I hope this somehow makes sense :)

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: NEW FEAT: /whofilter invisible [on|off]

Post by xyilla » Wed Oct 15, 2025 8:02 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: NEW FEAT: /whofilter invisible [on|off]

Post by xyilla » Wed Oct 15, 2025 8:03 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: NEW FEAT: /whofilter invisible [on|off]

Post by xyilla » Wed Oct 15, 2025 8:04 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: NEW FEAT: /whofilter invisible [on|off]

Post by xyilla » Wed Oct 15, 2025 8:06 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: NEW FEAT: /whofilter invisible [on|off]

Post by xyilla » Wed Oct 15, 2025 8:07 am