partyFind

Look a player up by name.

How you get the `accountId` that `partyInvite` needs. A miss is reported as `found: false` rather than as a failure, so branch on the flag rather than on the status code.

In Party.

Request

POST /api/v1/sessions/{accountKey}/actions/partyFind

Parameters

NameTypeRequiredDescription
nickname (nick)stringyesTheir in-game name, spelled exactly.

Example request

{ "nickname": "Alice" }

Response

`{ result, found, friend }`.

FieldTypeMeaning
foundbooleanWhether anyone answers to that name.
friend.accountIdstringWhat `partyInvite` takes.
friend.partyMembersintegerHow large their party already is — with `partyMax`, whether there is room for you.

Example response

{
  "result": 1,
  "found": true,
  "friend": {
    "accountId": "acc-2", "characterId": "char-2", "characterClass": "Cleric",
    "level": 15, "gender": 2, "locationStatus": 2,
    "partyMembers": 1, "partyMax": 3,
    "name": "Alice", "stream": "", "rank": "Novice I", "fame": 4, "karma": 0,
    "nickName": { "originalNickName": "Alice" }
  }
}

Errors

CodeWhen
action_failedNo character is in the lobby, or the lookup timed out.

See also

DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.