Skip to content

sdk.status

Live self-status cache: conditions, server target, tactics, last vitals. Filled from inbound PlayerState (162), UpdateTarget (163), SetTactics (167), PlayerDataCurrent (160). Official protobuf assign: PlayerState has_bits bit0=state u64@24, bit1=icons u32@32.

lua
local M = require("sdk.status")

Constants

Lua 5.4 has no enums — these are integer (or string) fields on the module.

NameValueSummary
POISON1Same bits as OTClient / official player-state icons (uint64 since 14.05).
BURN2
ENERGY4
DRUNK8
MANA_SHIELD16
PARALYZE32
HASTE64
SWORDS128
DROWNING256
FREEZING512
DAZZLED1024
CURSED2048
PARTY_BUFF4096
PZ_BLOCK8192
PZ16384
BLEEDING32768
HUNGRY65536
LESSER_HEX65536
INTENSE_HEX131072
GREATER_HEX262144
ROOTED524288
FEARED1048576
NEW_MANA_SHIELD67108864
FIGHT_OFFENSIVE1
FIGHT_BALANCED2
FIGHT_DEFENSIVE3
CHASE_STAND0
CHASE_FOLLOW1
PVP_DOVE0
PVP_WHITE1
PVP_YELLOW2
PVP_RED3

bits

function · bits()

Latest PlayerState condition bitmask.

icons

function · icons()

Latest icon bitmask.

has

function · has(bit)

True when a condition bit is set; nil when unknown.

target_id

function · target_id()

Current official target id.

tactics

function · tactics()

Latest tactics snapshot.

note_state

function · note_state(state, icons)

Update cached state/icons from an event.

note_target

function · note_target(id)

Update cached target id.

note_vitals

function · note_vitals(vitals)

Update cached HP/mana vitals.

vitals

function · vitals()

Cached vital snapshot.

note_tactics

function · note_tactics(tactics)

Update cached tactics.

reset

function · reset()

Clear all status caches.

direction

function · direction()

Cached look direction.

enrich

function · enrich(data)

Copy cached status onto a creature snapshot.

Arcane SDK catalog generated from scripts/sdk