group check

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

iam_clint
orc pawn
orc pawn
Posts: 21
Joined: Sun Oct 02, 2005 9:06 am

group check

Post by iam_clint » Sat Oct 22, 2005 2:20 am

Is there a way to make a macro check if your target is in your group or not

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Sat Oct 22, 2005 2:25 am

The Fucking Manual wrote:group

Members groupmember Member[n] n is 1 to 5 (0 gives self)
int Member[name] Gives the number, as used above
int Members Total group members, excluding self
groupmember Leader The leader of the group
To String Same as Members
The proper usage is:

Code: Select all

${Group.Member[Name]}
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

iam_clint
orc pawn
orc pawn
Posts: 21
Joined: Sun Oct 02, 2005 9:06 am

Post by iam_clint » Sat Oct 22, 2005 2:31 am

not exactly what i meant to ask...
i am wanting to know if theres not a run around way to check if they are not in your group so you don't have to write a loop to check each group member something like if !${Group.Member} { yada }


[ Although i did find out ${Group.Member[<Target>]} would return a number if they are in your group so if it returns null when their not ]
Last edited by iam_clint on Sat Oct 22, 2005 2:33 am, edited 1 time in total.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Sat Oct 22, 2005 2:33 am

You put the person's name in there and it returns NULL if they aren't in the group, or a # if they're in it. So it's:

Code: Select all

!${Group.Member[JimmyBuffet]}
Edit: I beat your edit, RAWR
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]










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

Re: group check

Post by xyilla » Thu Jan 08, 2026 7:48 am