RaidWatch 2

API / Party

Parameters in red are optional.

Party:GetNumAlive()

Get the number of player currently alive in the party.

Returns The number of alive people.

Party:GetPartySize()

Get the current size of the party.

Returns Current party size.

Party:GetPartyTargetId(target)

Fimd a party member with current target matching the one passed in.

Parameters

  • target (string) Name of the target to search for.

Returns the uID of a party member targeting the target if found, else false.

Party:GetPartyType()

Get the current party type

Returns Current party type (raid, party, battleground)

Party:GetPartyTypeLocalized()

Get current party type localized

Returns Current party type in localized format.

Party:GetRank(name)

Check the current rank of a player.

Parameters

  • name (string) Name of the player to check.

Returns Returns the rank of the player if currently in the same party, else nil.

Party:InParty()

Check if currently in a party.

Returns True if in a party, else false.

Party:InParty()

Check if currently in a party.

Returns True if in a party, else false.

Party:IsML(name)

Check if player is currently master looter.

Parameters

  • name (string) Name of the player to check

Returns True if the player is the current master looter, else nil.

Party:PartyIterator()

Get an interator for the current party

Returns An iterator to iterate over the current party.

You must login to post a comment. Don't have an account? Register to get one!