Question: Raid Info

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Tamian
a lesser mummy
a lesser mummy
Posts: 54
Joined: Wed Nov 12, 2003 2:41 pm

Question: Raid Info

Post by Tamian » Sun Jun 13, 2004 1:45 pm

I am having something unusual happen and wonder if others are as well.

Specifically:

Code: Select all

	if (pRaid->RaidMemberCount)
	{
		for (nMember=0;nMember<72;nMember++)
		{
			if (strlen(pRaid->RaidMember[nMember].Name))
			{
				lpAttendeeListNode = new CDKPRaidAttendeeListNode;

				if (lpAttendeeListNode)
				{
					// TODO: Find Group Member Number and MA
					lpAttendeeListNode->cStrName			 = pRaid->RaidMember[nMember].Name;
					lpAttendeeListNode->cStrBottedByName	= "";
					lpAttendeeListNode->cStrClass			= pRaid->RaidMember[nMember].Class;
					lpAttendeeListNode->cStrLevel			= pRaid->RaidMember[nMember].Level;
					lpAttendeeListNode->dwGroupNumber		= (pRaid->RaidMember[nMember].GroupNumber>11 ? 0 : pRaid->RaidMember[nMember].GroupNumber+1);
									lpAttendeeListNode->bIsGroupLeader		= (pRaid->RaidMember[nMember].GroupLeader ? true : false);
									lpAttendeeListNode->bIsRaidLeader		= (pRaid->RaidMember[nMember].RaidLeader ? true : false);
				
					AddAttendeeListNode(lpAttendeeListNode,false);
				}
			}
		}
	}
Now .. ignoring the fact I am storing this elsewhere .. I delete that list (its a linked list) and rebuild for each raid. The prob I am having is that I can not get correct info in the following conditions:

1- Seems to work fine when Raid is intially built.
2- Any transfer of leadership does not show
3- Leaving and comming back does not change the leader
4- Group numbers go to hell ....

Am I grabing the info from the wrong spot or was there a steath struct change?

Teh_ish
UI Guru
Posts: 168
Joined: Wed Nov 05, 2003 12:18 am

Post by Teh_ish » Sun Jun 13, 2004 3:07 pm

Maybe I'm reading the code wrong(or it's outside the scope of that code), but it doesn't appear that you're looping it around to update it. You're only firing it off as a onetime deal, which would explain why it's not updating. But maybe I'm just not seeing something :)
OMGWTFBBQ

Tamian
a lesser mummy
a lesser mummy
Posts: 54
Joined: Wed Nov 12, 2003 2:41 pm

Post by Tamian » Sun Jun 13, 2004 4:57 pm

Nah this is a function I call each time I want to pull in attendee's.