Thread Tools Display Modes
09-12-05, 03:59 PM   #1
Azile
A Kobold Labourer
Join Date: Sep 2005
Posts: 1
Extracting Zone from GetRaidRosterInfo

Hi I am trying to write a ui plugin that will allow me to dump a list of players who are in the same zone as me and in my raid as me. I cannot seem to get the zone info to jive though. Here is the basic portion of what I am doing:

function ZonedTrack()
local name, rank, subgroup, level, class, fileName, zone, online, isDead
local x,y;
local Text;
local tab = " ";
local Position="";

local numRaidMembers = GetNumRaidMembers();
if numRaidMembers ~= 0 then
local currentZoneName = GetZoneText();
x, y = GetPlayerMapPosition("player");
Text = "";
--Text = Text .. "Zone Name: " .. currentZoneName.."\n"
for i=1, numRaidMembers do
local name, rank, subgroup, level, class, fileName, zone, online, isDead = GetRaidRosterInfo(i);
if RaidPosition == 2 then
Position = "Raid Leader";
elseif RaidPosition == 1 then
Position = "Officer";
else
Position = "";
end
if i ~= 1 then
Text = Text .. "\n";
end
if currentZoneName == zone then
Text = Text ..name ..zone;
else

end
end
-- Unknown (2) - Raid Leader, (1) = Officer, (0) - Player
RAID_INFO_TEXT = RAID_INFO_TEXT.."\n"..Text;
RIScrollEditBox:SetText(RAID_INFO_TEXT);
RegisterForSave("RAID_INFO_TEXT");
else
DEFAULT_CHAT_FRAME:AddMessage("You are not in a raid, no raid information can be gathered",1,1,1);
end
end
  Reply With Quote
09-13-05, 04:38 AM   #2
farang
A Deviate Faerie Dragon
 
farang's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2005
Posts: 19
as a general hint:
use DEFAULT_CHAT_FRAME:AddMessage("...") to debug your code.

as far as i can see ,you should get the zone info.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Extracting Zone from GetRaidRosterInfo


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

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