Dados de status

O corpo de POST /api/v1/status, esquema vw.status/1. Envie a cada 5 a 10 segundos enquanto o cliente roda. Campos que você não conhece ficam de fora; o painel mostra o que recebe.

CampoTipoDescrição
schema"vw.status/1"Payload schema and version
moduleobrigatóriostringName and version of the sending module, for example voidwatch-feed/0.3.0até 40 caracteres
onlineobrigatóriobooleanThe character is logged in
characterobrigatórioCharacter
character.nameobrigatóriostringCharacter nameaté 30 caracteres
character.vocationstringVocation, for example Elite Knightaté 30 caracteres
character.levelobrigatóriointeger≥ 1, ≤ 5000
character.expobrigatóriointegerTotal experience points≥ 0
posobrigatórioPosition
pos.xobrigatóriointegerMap x≥ 0, ≤ 65535
pos.yobrigatóriointegerMap y≥ 0, ≤ 65535
pos.zobrigatóriointegerFloor, 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 routeaté 80 caracteres
routeOnbooleanThe cavebot is running
labelstringThe route label the bot is ataté 40 caracteres
routesstring[]Every route the bot can loadaté 100 itens
suppliesCounted[]até 30 itens
supplies[].nameobrigatóriostringItem or creature name, as the game writes itaté 60 caracteres
supplies[].haveobrigatóriointegerHow many the character has now≥ 0
supplies[].wantobrigatóriointegerHow many the bot keeps in stock, or the task goal≥ 0
tasksCounted[]até 10 itens
tasks[].nameobrigatóriostringItem or creature name, as the game writes itaté 60 caracteres
tasks[].haveobrigatóriointegerHow many the character has now≥ 0
tasks[].wantobrigatóriointegerHow many the bot keeps in stock, or the task goal≥ 0
lootLootItem[]até 200 itens
loot[].nameobrigatóriostringItem nameaté 60 caracteres
loot[].countobrigatóriointegerLooted 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 viewaté 20 itens
skulls[].nameobrigatóriostringPlayer nameaté 30 caracteres
skulls[].skullobrigatório"white" | "red" | "black" | "yellow" | "green" | "orange"Skull colour
blessedbooleanOnly on servers with blessings
redemptionLeftintegerOnly on servers with redemption≥ 0

Exemplo

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

Versões

O nome do esquema traz a versão. Um campo novo mantém a versão; um campo alterado ou removido ganha uma nova, e a antiga continua funcionando por pelo menos seis meses.