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.
| Pole | Typ | Opis |
|---|---|---|
schema | "vw.status/1" | Payload schema and version |
modulewymagane | string | Name and version of the sending module, for example voidwatch-feed/0.3.0do 40 znaków |
onlinewymagane | boolean | The character is logged in |
characterwymagane | Character | |
character.namewymagane | string | Character namedo 30 znaków |
character.vocation | string | Vocation, for example Elite Knightdo 30 znaków |
character.levelwymagane | integer | ≥ 1, ≤ 5000 |
character.expwymagane | integer | Total experience points≥ 0 |
poswymagane | Position | |
pos.xwymagane | integer | Map x≥ 0, ≤ 65535 |
pos.ywymagane | integer | Map y≥ 0, ≤ 65535 |
pos.zwymagane | 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 routedo 80 znaków |
routeOn | boolean | The cavebot is running |
label | string | The route label the bot is atdo 40 znaków |
routes | string[] | Every route the bot can loaddo 100 elementów |
supplies | Counted[] | do 30 elementów |
supplies[].namewymagane | string | Item or creature name, as the game writes itdo 60 znaków |
supplies[].havewymagane | integer | How many the character has now≥ 0 |
supplies[].wantwymagane | integer | How many the bot keeps in stock, or the task goal≥ 0 |
tasks | Counted[] | do 10 elementów |
tasks[].namewymagane | string | Item or creature name, as the game writes itdo 60 znaków |
tasks[].havewymagane | integer | How many the character has now≥ 0 |
tasks[].wantwymagane | integer | How many the bot keeps in stock, or the task goal≥ 0 |
loot | LootItem[] | do 200 elementów |
loot[].namewymagane | string | Item namedo 60 znaków |
loot[].countwymagane | 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 viewdo 20 elementów |
skulls[].namewymagane | string | Player namedo 30 znaków |
skulls[].skullwymagane | "white" | "red" | "black" | "yellow" | "green" | "orange" | Skull colour |
blessed | boolean | Only on servers with blessings |
redemptionLeft | integer | Only 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.