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 27-06-2006, 08:54 AM   #1
Rosemourne
WorldofWar.Net Member
 
Join Date: Jun 2006
Posts: 1
Help getting info of a raid member.

I'm making an addon that works great so far, but I would like to include a failsafe so that it doesn't fire under certain conditions when your target player entered is not in the raid / offline / not in the zone.

I've checked with WoWWiki, but I can't seem to find a good way to determine if the player is in the raid, online and in the zone. Do I have to call the ID of every raid member and then have the addon /who them for it?

I hope not :X
Rosemourne is offline   Reply With Quote
Old 05-07-2006, 07:29 AM   #2
Elsewhere
WorldofWar.Net Member
 
Join Date: Aug 2005
Posts: 1
not tested, but should work
Code:
for i = 1, GetNumRaidMemebers() do
     if ( UnitIsUnit("target", "raid"..i) ) then
          local unit = "raid"..i;
          break;
      end
end
local name, rank, subgroup, level, class, fileName, zone, online, isDead = GetRaidRosterInfo(unit)
if zone == (GetZoneText) and name == (UnitName("target")) and (not isDead) and online then
    ...do your stuff here...
end
Elsewhere 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 12:50 AM.


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