Script::PetCanBeAbandoned
function · ui · orchestration
- Address
0x4be500· 114 bytes, up to0x4be571- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when the player's pet may be abandoned, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/petbar#abandon-and-rename
Finding: Abandon and rename in ui: the pet bar and the form bar
PetCanBeRenamed and PetCanBeAbandoned push 1 or nil: the pet resolves, was summoned by the player
(UNIT_FIELD_SUMMONEDBY, +0x18) and has UNIT_FIELD_FLAGS bit 0x10 (rename) or 0x20 (abandon). PetAbandon
sends opcode 0x176 with the pet guid after the kind 2 gate, and message 0x26f with the stable master guid
when the stable window is open. PetRename(name) shows an error for no pet (243), a pet that is not the
player's (244), one that cannot be renamed (245) or an empty name (246), then sends opcode 0x177:
u64 pet guid, cstring name, cut to 79 bytes. Nothing is echoed; the new name arrives through the name
cache, whose row is dropped and queried again when the pet's name timestamp field changes.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.