PDA

View Full Version : raid members problem


Athene
20-06-2006, 04:57 PM
I'm having a problem with this function:
Raiders = ( GetNumRaidMembers());
Am I right if I say that this function will only work when I am the raidleader? Because it always ends up as "0" if Im not(atleast I think that is the reason).
Any ideas how I can count the number of members while not being the raidleader?

Also, I need to get the playername of the raidleader, but I havent found a way to do that

Problem 3:
for member = 1, 40 do
if ( IsRaidLeader(member) == 0 ) then
DEFAULT_CHAT_FRAME:AddMessage(member.." is leader");
end
I'm getting a " (player number) is leader" on every single raid member here, even though there's only 2 members of the raid... wtf?

Athene
20-06-2006, 06:05 PM
Small typo, it's supposed to be
for member = 1, 40 do
if ( IsRaidLeader(member) == 1 ) then
DEFAULT_CHAT_FRAME:AddMessage(member.." is leader");
end

include
21-06-2006, 08:39 AM
NOPE!

look at wowwiki.com (http://www.wowwiki.com/API_IsRaidLeader)

IsRaidLeader()
Will return 1 if the player is the raid leader. Will return nil if the player is not the raid leader.


so: theres no check for raidmembers, only for YOURSELF!



may you should use GetRaidRosterInfo (http://www.wowwiki.com/API_GetRaidRosterInfo)

Athene
21-06-2006, 11:53 AM
D'uh that's stupid, makes it alot more complicated:\