Other players
Chat, party and squad
Chat, your party and squad, contacts, mail, votes and PvP.
Party and squad members and contacts are found by account name (Name.1234), display name or uuid. Functions that act on one return false when nobody matches.
A user is {uuid, account_name, display_name, achievement_points, level, profession, mastery_level, map_id, server_id, online_status, invite_status, sharing_participation}.
chat
Sends a message to a channel, such as
chat.SQUAD.Whispers to a player.
chat.channels()integer[]?
The channels you're in.
Messages arrive in the on_message callback.
Channels, as chat.LOCAL and so on
LOCALMAPPARTYSQUADTEAMGUILDGUILD1GUILD2GUILD3GUILD4GUILD5GUILD6GUILD_UNKNOWNWHISPEREMOTELFGCUSTOMCHATTERDEVFEEDBACKDEPRECATED_SUBGROUPINFOINFO_BUCKETINFO_CHARACTERINFO_CONTACTSINFO_GUILDINFO_INVENTORYINFO_PVEINFO_PVPINFO_SQUADINFO_WVWCOMBATCOMBAT_IN_BUFFCOMBAT_IN_HEALCOMBAT_IN_INTERRUPTCOMBAT_IN_MITIGATIONCOMBAT_IN_STRIKECOMBAT_OUT_BUFFCOMBAT_OUT_HEALCOMBAT_OUT_INTERRUPTCOMBAT_OUT_MITIGATIONCOMBAT_OUT_STRIKEparty
party.in_party()boolean
Whether you're in a party.
party.members()table[]
The party's members, as users.
Invites a player.
Joins a player's party.
party.accept(name)boolean
Accepts a member's request or invite.
party.decline(name)boolean
Declines it.
party.kick(name)boolean
Kicks a member.
party.join_instance(name)boolean
Joins a member's instance.
Leaves the party.
squad
squad.in_squad()boolean
Whether you're in a squad.
squad.members()table[]
The squad's members:
{user, account_name, pending, ready_state, subgroup}.Starts a squad.
Joins a player's squad.
Invites a player.
squad.kick(name)boolean
Kicks a member.
Leaves the squad.
Starts a ready check.
Sets the squad message.
Moves a member to a subgroup.
Turns participation sharing on or off for a member.
squad.has_commander_tag()boolean
Whether the squad has a commander tag.
squad.in_raid_mode()boolean
Whether it's in raid mode.
Turns raid mode on or off.
squad.is_private()boolean
Whether the squad is private.
Makes it private or public.
squad.join_mode()integer?
Who can join.
Sets who can join.
Whether members can invite.
Lets members invite, or not.
Locks or unlocks every subgroup.
contacts
contacts.current_user()table?
You, as a user.
contacts.friends()table[]?
Your friends.
contacts.blocked()table[]?
Players you blocked.
Adds a friend.
contacts.remove_friend(name)boolean
Removes a friend.
Blocks a player.
contacts.unblock(name)boolean
Unblocks a player.
mail.list()table[]
Your mail:
{parcel_id, sender, title, body, is_from_player, coins, items}, each item {slot, id, item_type, rarity, name, quantity, def}.Sends mail, with coins (in copper) and a list of
Items.mail.take_coins(parcel_id)boolean
Takes a mail's coins.
Takes one of its items.
Sends it back.
mail.delete(parcel_id)boolean
Deletes it.
vote
vote.active()table[]
Votes in progress (such as kick votes), each a list of
{player_id, value}.vote.cast(value [, index])boolean
Votes
vote.ACCEPT or vote.DECLINE on the first vote, or the index-th.Vote values
ACCEPTDECLINEACCEPTEDpvp
pvp.game_state()integer?
The match state: one of the constants below.
pvp.players()table[]?
Players in the match:
{flags, ready, uuid, agent}.Marks you ready, or not.
Leaves the match.
pvp.modes()integer[]?
The lobby's game modes.
pvp.play_mode(mode)boolean
Queues for a mode.
pvp.match()table?
The match found:
{players, map_guids, selected_map_guid}, each player {accepted, user}.Accepts the match.
Declines it.
Votes for a map.
Leaves the roster.
Match states
WAITING_FOR_PLAYERSABOUT_TO_BEGINCOUNTDOWNONGOINGFINISHED