Status payload

The body of POST /api/v1/status, schema vw.status/1. Send it every 5 to 10 seconds while the client runs. Fields you do not know stay out; the dashboard shows what it gets.

FieldTypeDescription
schema"vw.status/1"Payload schema and version
modulerequiredstringName and version of the sending module, for example voidwatch-feed/0.3.0up to 40 characters
onlinerequiredbooleanThe character is logged in
characterrequiredCharacter
character.namerequiredstringCharacter nameup to 30 characters
character.vocationstringVocation, for example Elite Knightup to 30 characters
character.levelrequiredinteger≥ 1, ≤ 5000
character.exprequiredintegerTotal experience points≥ 0
posrequiredPosition
pos.xrequiredintegerMap x≥ 0, ≤ 65535
pos.yrequiredintegerMap y≥ 0, ≤ 65535
pos.zrequiredintegerFloor, 0 to 15; 7 is ground level≥ 0, ≤ 15
capintegerFree capacity, in oz≥ 0
staminaintegerStamina, in minutes≥ 0, ≤ 2520
expPerHourintegerExp per hour as the client measures it≥ 0
routestringThe loaded cavebot routeup to 80 characters
routeOnbooleanThe cavebot is running
labelstringThe route label the bot is atup to 40 characters
routesstring[]Every route the bot can loadup to 100 items
suppliesCounted[]up to 30 items
supplies[].namerequiredstringItem or creature name, as the game writes itup to 60 characters
supplies[].haverequiredintegerHow many the character has now≥ 0
supplies[].wantrequiredintegerHow many the bot keeps in stock, or the task goal≥ 0
tasksCounted[]up to 10 items
tasks[].namerequiredstringItem or creature name, as the game writes itup to 60 characters
tasks[].haverequiredintegerHow many the character has now≥ 0
tasks[].wantrequiredintegerHow many the bot keeps in stock, or the task goal≥ 0
lootLootItem[]up to 200 items
loot[].namerequiredstringItem nameup to 60 characters
loot[].countrequiredintegerLooted since the session started≥ 0
loot[].sellintegerNPC price per item, if the module knows it. The server fills it in otherwise≥ 0
lootHoursnumberHours since the loot counter started≥ 0
skullsSkull[]Skulled players in viewup to 20 items
skulls[].namerequiredstringPlayer nameup to 30 characters
skulls[].skullrequired"white" | "red" | "black" | "yellow" | "green" | "orange"Skull colour
blessedbooleanOnly on servers with blessings
redemptionLeftintegerOnly on servers with redemption≥ 0

Example

{
  "schema": "vw.status/1",
  "module": "voidwatch-feed/0.3.0",
  "online": true,
  "character": {
    "name": "Franz Kafka",
    "vocation": "Royal Paladin",
    "level": 589,
    "exp": 3380000000
  },
  "pos": {
    "x": 32376,
    "y": 31779,
    "z": 7
  },
  "cap": 8568,
  "stamina": 2502,
  "expPerHour": 14998739,
  "route": "[afk] fu.exodar HH",
  "routeOn": true,
  "label": "hunt",
  "routes": [
    "[afk] fu.exodar HH",
    "UD & HH Left"
  ],
  "supplies": [
    {
      "name": "great spirit potion",
      "have": 3498,
      "want": 4000
    }
  ],
  "tasks": [
    {
      "name": "hellhound",
      "have": 578,
      "want": 1000
    }
  ],
  "loot": [
    {
      "name": "fire sword",
      "count": 192
    }
  ],
  "lootHours": 2.4,
  "skulls": []
}

Versions

The schema name carries the version. A new field keeps the version; a changed or removed field gets a new one, and the old version keeps working for at least six months.