Hello all, I am looking for someone that can assist me in developing a function that, simply, will just check which party group the unit I am checking is in.
I am using this as a means for Prayer of Healing, a spell that only hits units that art in the same party. There currently is no WoW API that supports this without indexing the raid.
Code:
function GroupNumber(unit)
for i=1, GetNumGroupMembers() do
local name, rank, subgroup = GetRaidRosterInfo(i)
if name == UnitName(unit) then
return "Group "..subgroup
end
end
end
I want something more like this, I just don't have the tool kit to make it work correctly
Code:
select(3,GetRaidRosterInfo(string.sub(tostring(unit), 5)))
Any assistance with this would be greatly appreciated and the successful creation of it will be generously compensated.