Implement SMSG_STANDSTATE_UPDATE and SMSG_ITEM_PUSH_RESULT handlers

SMSG_STANDSTATE_UPDATE:
- Parse uint8 stand state from server confirmation packet
- Store in standState_ member (0=stand, 7=dead, 8=kneel, etc.)
- Expose getStandState(), isSitting(), isDead(), isKneeling() accessors

SMSG_ITEM_PUSH_RESULT:
- Parse full WotLK 3.3.5a payload: guid, received, created, showInChat,
  bagSlot, itemSlot, itemId, suffixFactor, randomPropertyId, count, totalCount
- Show "Received: <name> x<count>" chat notification when showInChat=1
- Queue item info lookup via queryItemInfo so name resolves asap
This commit is contained in:
Kelsi 2026-03-09 12:58:52 -07:00
parent bae32c1823
commit b0d7dbc32c
2 changed files with 43 additions and 6 deletions

View file

@ -332,6 +332,10 @@ public:
// Stand state
void setStandState(uint8_t state); // 0=stand, 1=sit, 2=sit_chair, 3=sleep, 4=sit_low_chair, 5=sit_medium_chair, 6=sit_high_chair, 7=dead, 8=kneel, 9=submerged
uint8_t getStandState() const { return standState_; }
bool isSitting() const { return standState_ >= 1 && standState_ <= 6; }
bool isDead() const { return standState_ == 7; }
bool isKneeling() const { return standState_ == 8; }
// Display toggles
void toggleHelm();
@ -1381,6 +1385,7 @@ private:
// ---- Display state ----
bool helmVisible_ = true;
bool cloakVisible_ = true;
uint8_t standState_ = 0; // 0=stand, 1=sit, ..., 7=dead, 8=kneel (server-confirmed)
// ---- Follow state ----
uint64_t followTargetGuid_ = 0;