Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Formatting/clarification, also no signing please, see http://www.wowwiki.com/WoWWiki_talk:Village_pump#Stop_the_signing_and_discussing_please)
Line 13: Line 13:
   
 
Because this sends a request to the server, you will not get the data instantly you must register and watch for the ARENA_TEAM_ROSTER_UPDATE event.
 
Because this sends a request to the server, you will not get the data instantly you must register and watch for the ARENA_TEAM_ROSTER_UPDATE event.
It appears that ARENA_TEAM_ROSTER_UPDATE will not fire if the data was already requested last call, meaning requesting #1 twice will not fire it but requesting #2.
+
It appears that ARENA_TEAM_ROSTER_UPDATE will not fire if you requested the same team index last call.
   
 
As of 2.0.10 calling ArenaTeamRoster with PVPTeamDetails.team being nil will cause an error in PVPFrame.lua, while you do not have to set it to the team index you are calling it's suggested that you do so.
 
As of 2.0.10 calling ArenaTeamRoster with PVPTeamDetails.team being nil will cause an error in PVPFrame.lua, while you do not have to set it to the team index you are calling it's suggested that you do so.

Revision as of 02:56, 25 March 2007

Requests the arena team information from the server

ArenaTeamRoster(teamIndex); 

Parameters

Arguments

index
Index of the arena team to request information from, index can be a value of 1 through 3.

Details

Because this sends a request to the server, you will not get the data instantly you must register and watch for the ARENA_TEAM_ROSTER_UPDATE event. It appears that ARENA_TEAM_ROSTER_UPDATE will not fire if you requested the same team index last call.

As of 2.0.10 calling ArenaTeamRoster with PVPTeamDetails.team being nil will cause an error in PVPFrame.lua, while you do not have to set it to the team index you are calling it's suggested that you do so.