Raid.Group[n] TLO Support?

Bearcub

Lifetimer
Joined
Feb 17, 2007
Messages
1,002
Reaction score
3
Points
38
I am looking at the documentation but not really finding this.

I want to basically loop through the groups 1-12 in my raid and buff each one.
However, Macroquest2 Documentation if you look at the TLO Raid there doesn't seem to be a property that has the Groups[] available.

Anyone have any ideas or snippets? Is there a plugin that randomly gives you access to that sort of TLO? I assume the data is available somehow, because it shows in the UI.
 
Ah. OK. That is a more round-about way to do it than I had expected.
I will have to basically 'build' the group collections, and pick member 1 of each group to target to cast the group buff on.

Can do.
 
Ah. OK. That is a more round-about way to do it than I had expected.
I will have to basically 'build' the group collections, and pick member 1 of each group to target to cast the group buff on.

Can do.

In your for loop just add the condition to see if they need it or not.
 
I can't inspect buffs of targetted chars on my current EMU server (and I also cant see what debuffs are on mobs, but I digress).

I usually just manually fire MGBs before events anyway, but wanted to be able to fire it on an event "DOGROUPBUFFS" and have them save their MGBs and walk through the raid.

It will happen :)
 
A little brute force, but this gives me 1 member per group in raid to cast GROUP buffs on.

Code:
Sub doRaidBuffs 
	/if (!${bln_doRaidBuff}) /return
	
	/echo Doing Raid Buffs [OOCBUFF]
	/if (${Raid.Members} <= 6) /return
	/declare	i	int	local
	/declare	g	int	local
	/declare        b       int     local
	/declare arrGroupLeaders[12] string NULL

	/for i 1 to ${Raid.Members}
		/varset g ${Raid.Member[${i}].Group}
		/if (${g} > 0) {
			/varset arrGroupLeaders[${g}] ${Raid.Member[${i}]}
		}
	/next i
	
	/for i 1 to 12
		/if (${arrGroupLeaders[${i}].NotEqual[NULL]}) {
			/call oocBuffTGT ${arrGroupLeaders[${i}]}
		}
	/next i
	/bc ${Me.Class.Name} RAID BUFF COMPLETE
	

/return