WoW:API GetNumPartyMembers: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:WoW API}}<center>'''GetNumPartyMembers''' ''-Documentation by Sarf-''</center>
{{wowapi}} __NOTOC__
 
Returns number of party members.
Returns number of party members.
numberOfPartyMembers = GetNumPartyMembers();


numberOfPartyMembers = GetNumPartyMembers();
==Parameters==
 
===Returns===
----
:;numberOfPartyMembers : Integer - The number of party members - from 0 to 4 (excluding the player).
;''Arguments''
 
:;None
 
----
;''Returns''
 
:(Number numberOfPartyMembers)
 
:;numberOfPartyMembers : The number of party members - from 0 to 4 (excluding the player).
 
----
;''Example''
if ( GetNumPartyMembers() > 0 ) then CastSpellByName("Aura of Retribution"); end
 
;''Result''
 
Casts Aura of Retribution if player is in a group.
 
----
;''Description''
 
: Returns number of party members.


;''See Also''
==Example==
local n = GetNumPartyMembers();
if (n > 0) then
  message("There are " .. n .. " other people in your party.");
end


:* [[API GetNumRaidMembers|GetNumRaidMembers]]
===Result===
Displays a message stating the number of people in the player's current party.


----
==See Also==
* [[API GetNumRaidMembers|GetNumRaidMembers]]

Revision as of 18:49, 23 December 2006

WoW API < GetNumPartyMembers

Returns number of party members.

numberOfPartyMembers = GetNumPartyMembers();

Parameters

Returns

numberOfPartyMembers
Integer - The number of party members - from 0 to 4 (excluding the player).

Example

local n = GetNumPartyMembers();
if (n > 0) then 
 message("There are " .. n .. " other people in your party.");
end

Result

Displays a message stating the number of people in the player's current party.

See Also