benilla-re systems structs docs

ShowPetTameFailure

function · spell · primitive

Address
0x6e6a20 · 160 bytes, up to 0x6e6abf
Signature
void __fastcall (uint8_t reason)
Meaning
Shows ERR_TAME_FAILED with the PETTAME_ text of a reason, PETTAME_UNKNOWNERROR outside 1 to 11
Confidence
verified, proof one
Finding
spell/failures#pet-tame-failure

Finding: Pet tame failure in spell: failures

SMSG_PET_TAME_FAILURE (0x173) is one u8 reason. 0x6e97e0 reads it and calls 0x6e6a20, which shows ERR_TAME_FAILED (0xee) with the GlobalStrings text of a PETTAME_ key: 1 INVALIDCREATURE, 2 TOOMANY, 3 CREATUREALREADYOWNED, 4 NOTTAMEABLE, 5 ANOTHERSUMMONACTIVE, 6 UNITSCANTTAME, 7 NOPETAVAILABLE, 8 INTERNALERROR, 9 TOOHIGHLEVEL, 10 DEAD, 11 NOTDEAD, any other byte UNKNOWNERROR. The client's own check calls 0x6e6a20 with 2 and then reports reason 0x17 to 0x6e1a00.

The derivation is in the doc.

Callers 2

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.