I need to make a loop through all group members to apply an auras on them.
how could i do this?
Player *plr = m_caster->getVictim();
Group *grp = plr->GetGroup();
for(itr = grp->m_memberSlots.begin(); itr != grp->m_memberSlots.end(); ++itr)
{
...
}
this is looping through group::memberslots struct, so i can get players guid only.
so... is there a better way to loop through group, or can i get players by theyr guids?
EDIT: main question would be: How to get players by they guid`s?, and i mean Player *player = get by guid or sth
thanks in advance