Dane statusu

Treść POST /api/v1/status, schemat vw.status/1. Wysyłaj co 5–10 sekund, gdy klient działa. Pól, których nie znasz, nie wysyłaj; panel pokazuje to, co dostaje.

PoleTypOpis
schema"vw.status/1"Payload schema and version
modulewymaganestringName and version of the sending module, for example voidwatch-feed/0.3.0do 40 znaków
onlinewymaganebooleanThe character is logged in
characterwymaganeCharacter
character.namewymaganestringCharacter namedo 30 znaków
character.vocationstringVocation, for example Elite Knightdo 30 znaków
character.levelwymaganeinteger≥ 1, ≤ 5000
character.expwymaganeintegerTotal experience points≥ 0
poswymaganePosition
pos.xwymaganeintegerMap x≥ 0, ≤ 65535
pos.ywymaganeintegerMap y≥ 0, ≤ 65535
pos.zwymaganeintegerFloor, 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 routedo 80 znaków
routeOnbooleanThe cavebot is running
labelstringThe route label the bot is atdo 40 znaków
routesstring[]Every route the bot can loaddo 100 elementów
suppliesCounted[]do 30 elementów
supplies[].namewymaganestringItem or creature name, as the game writes itdo 60 znaków
supplies[].havewymaganeintegerHow many the character has now≥ 0
supplies[].wantwymaganeintegerHow many the bot keeps in stock, or the task goal≥ 0
tasksCounted[]do 10 elementów
tasks[].namewymaganestringItem or creature name, as the game writes itdo 60 znaków
tasks[].havewymaganeintegerHow many the character has now≥ 0
tasks[].wantwymaganeintegerHow many the bot keeps in stock, or the task goal≥ 0
lootLootItem[]do 200 elementów
loot[].namewymaganestringItem namedo 60 znaków
loot[].countwymaganeintegerLooted 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 viewdo 20 elementów
skulls[].namewymaganestringPlayer namedo 30 znaków
skulls[].skullwymagane"white" | "red" | "black" | "yellow" | "green" | "orange"Skull colour
blessedbooleanOnly on servers with blessings
redemptionLeftintegerOnly on servers with redemption≥ 0

Przykład

{
  "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": []
}

Wersje

Nazwa schematu niesie wersję. Nowe pole zachowuje wersję; zmienione lub usunięte pole dostaje nową, a stara działa jeszcze co najmniej pół roku.