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.
| Campo | Tipo | Descrição |
|---|---|---|
schema | "vw.status/1" | Payload schema and version |
moduleobrigatório | string | Name and version of the sending module, for example voidwatch-feed/0.3.0até 40 caracteres |
onlineobrigatório | boolean | The character is logged in |
characterobrigatório | Character | |
character.nameobrigatório | string | Character nameaté 30 caracteres |
character.vocation | string | Vocation, for example Elite Knightaté 30 caracteres |
character.levelobrigatório | integer | ≥ 1, ≤ 5000 |
character.expobrigatório | integer | Total experience points≥ 0 |
posobrigatório | Position | |
pos.xobrigatório | integer | Map x≥ 0, ≤ 65535 |
pos.yobrigatório | integer | Map y≥ 0, ≤ 65535 |
pos.zobrigatório | integer | Floor, 0 to 15; 7 is ground level≥ 0, ≤ 15 |
cap | integer | Free capacity, in oz≥ 0 |
stamina | integer | Stamina, in minutes≥ 0, ≤ 2520 |
expPerHour | integer | Exp per hour as the client measures it≥ 0 |
route | string | The loaded cavebot routeaté 80 caracteres |
routeOn | boolean | The cavebot is running |
label | string | The route label the bot is ataté 40 caracteres |
routes | string[] | Every route the bot can loadaté 100 itens |
supplies | Counted[] | até 30 itens |
supplies[].nameobrigatório | string | Item or creature name, as the game writes itaté 60 caracteres |
supplies[].haveobrigatório | integer | How many the character has now≥ 0 |
supplies[].wantobrigatório | integer | How many the bot keeps in stock, or the task goal≥ 0 |
tasks | Counted[] | até 10 itens |
tasks[].nameobrigatório | string | Item or creature name, as the game writes itaté 60 caracteres |
tasks[].haveobrigatório | integer | How many the character has now≥ 0 |
tasks[].wantobrigatório | integer | How many the bot keeps in stock, or the task goal≥ 0 |
loot | LootItem[] | até 200 itens |
loot[].nameobrigatório | string | Item nameaté 60 caracteres |
loot[].countobrigatório | integer | Looted since the session started≥ 0 |
loot[].sell | integer | NPC price per item, if the module knows it. The server fills it in otherwise≥ 0 |
lootHours | number | Hours since the loot counter started≥ 0 |
skulls | Skull[] | Skulled players in viewaté 20 itens |
skulls[].nameobrigatório | string | Player nameaté 30 caracteres |
skulls[].skullobrigatório | "white" | "red" | "black" | "yellow" | "green" | "orange" | Skull colour |
blessed | boolean | Only on servers with blessings |
redemptionLeft | integer | Only 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.