Unofficial World of Warcraft Forums  
Please respect other members. Please do not post links or information about hacking/warez/cheats.
Read the rules of these forums as we rarely warn before banning. Lost or need RSS check the forum map.

Quick Site Nav
Navigation
Worldofwar.Net
WoW Forums
WoWDigger WoW Database
Articles
Community Blogs
WoW Info
Wrath of the Lich King Info
Primary Professions
Secondary Professions
Maps
Classes
PvP
A-Z Index
Guides
Submit Guides
List Guides
UI/Mods
Latest Mods
Submit Mod
List Macros
Submit Macro
Media Gallery
Gallery Home
Upload Pics
Community WoW Shots
Community BC Shots
Player Pics
Official WoW Shots
Official BC Shots


Donate and get extra forum perks
Support WoW:IncGamers

Go Back   Unofficial World of Warcraft Forums > WoW Community Forums > UI Customisation > UI/Mod Developer Forum

Reply
 
Thread Tools Display Modes
Old 20-06-2006, 04:57 PM   #1
Athene
WorldofWar.Net Member
 
Athene's Avatar
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 43
raid members problem

I'm having a problem with this function:
Code:
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:
Code:
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?

Last edited by Athene; 20-06-2006 at 05:39 PM..
Athene is offline   Reply With Quote
Old 20-06-2006, 06:05 PM   #2
Athene
WorldofWar.Net Member
 
Athene's Avatar
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 43
Small typo, it's supposed to be
Code:
for member = 1, 40 do
if ( IsRaidLeader(member) == 1 ) then
DEFAULT_CHAT_FRAME:AddMessage(member.." is leader");
end
Athene is offline   Reply With Quote
Old 21-06-2006, 08:39 AM   #3
include
WorldofWar.Net Member
 
include's Avatar
 
Join Date: Mar 2006
Posts: 62
NOPE!

look at wowwiki.com

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
include is offline   Reply With Quote
Old 21-06-2006, 11:53 AM   #4
Athene
WorldofWar.Net Member
 
Athene's Avatar
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 43
D'uh that's stupid, makes it alot more complicated:\
Athene is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden