View Single Post
08/21/14, 08:17 PM   #12
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
I had not looked at it

Oh, yeah your right it is local.
No I hadn't looked at it, but I see you were all ready doing what I suggested.

Looks like it would work to me. Although I think you could get rid of one of the loops by doing this:

Warning: Spoiler


EDIT:
Or I may have spoke to soon. I've never done any pvp/raid stuff. I have no idea how any of it even works. I may be wrong about what I said above...I thought this memberIndex:
Lua Code:
  1. local numMembers = GetNumRaidScoreNotificationMembers(notificationId)
  2.         local hasFriend = false
  3.         local hasGuildMember = false
  4.         for memberIndex = 1, numMembers do
  5.             local displayName, characterName, isFriend, isGuildMember = GetRaidScoreNotificationMemberInfo(notificationId, memberIndex)

was refering to the same memberIndex used for a guild members index,
Lua Code:
  1. local displayName = GetGuildMemberInfo(guildId, memberIndex)

but I read it again and think they might not be the same? Does the first one refer to memberIndex as the "memberIndex" for members of a raid party (people involved in that notification)? If so what I said would not work.

Last edited by circonian : 08/21/14 at 08:53 PM.
  Reply With Quote