Playerbot: BotGear addon — use a non-zero sequence number

The server rejects any PBC frame with seq == 0 (AddonControl envelope
check), so GEAR_BAGS_REQ/GEAR_EQUIP_REQ were silently dropped and the panel
rendered with no data. Send uses an incrementing seq like PlayerbotControl.
This commit is contained in:
devbox
2026-08-17 18:15:46 +10:00
parent 8b3c826c16
commit 41ebd14db9
@@ -38,10 +38,12 @@ local EQUIP_SLOT_NAMES = {
}
-- Comms -------------------------------------------------------------
local seqCounter = 1 -- server rejects frames with seq == 0
local function Send(mtype, ...)
local args = {...}
local body = table.concat(args, "|")
local f = string.format("1|00000000|1|1|%s|%s", mtype, body)
local f = string.format("1|%08x|1|1|%s|%s", seqCounter, mtype, body)
seqCounter = (seqCounter % 0xFFFFFFFF) + 1
C_ChatInfo.SendAddonMessage(PREFIX, f, "WHISPER", botName or UnitName("player"))
end