CreateGmTicket
function · objectlayer · primitive
- Address
0x5ef740· 739 bytes, up to0x5efa22- Meaning
- Sends CMSG_GMTICKET_CREATE with the position and text, and the compressed chat log for category 2
- Confidence
- verified, proof one
- Finding
- objectlayer/playermessages#gm-tickets
Finding: GM tickets in objectlayer: player messages
| message | reads | does |
|---|---|---|
| 0x206, 0x208 | i32 r | 1 ERR_TICKET_ALREADY_EXISTS; 2, 4 send 0x211; 3 ERR_TICKET_CREATE_ERROR; 5 ERR_TICKET_UPDATE_ERROR |
| 0x212 | i32 s | 6: the ticket's text, category and three floats (a negative first float as 0) and two bytes, to UPDATE_TICKET; any other: ERR_TICKET_DB_ERROR for 0, then the no-ticket event |
| 0x218 | i32 | 9 UPDATE_TICKET with 0 and ""; else ERR_TICKET_DB_ERROR |
| 0x21b | i32 | UPDATE_GM_STATUS |
| 0x328 | i32 s | 1 sends 0x211; 2 the no-ticket event; 3 GMSURVEY_DISPLAY |
The no-ticket event passes seven dwords (0, "", −1, −1, −1, 0, 0) to the format %d%s%f%f%f%d%d,
which reads ten. The first float is 0xFFFFFFFFFFFFFFFF, a NaN; the second 0x00000000FFFFFFFF, a
denormal; the third takes its high half, and both %d their values, from past the arguments.
0x5ef740(category, text) sends 0x205 with the map, position, text and "Reserved for future use";
category 2 adds the 60 chat lines, their ages and the compressed text. 0x5efac0 sends 0x207;
0x5efbb0 0x211; 0x5efc20 0x217.
The derivation is in the doc.
Callers 1
Callees 21
- __alloca_probe crt
- CDataStore::PutInt8 base
- CDataStore::PutUInt32 base
- CDataStore::PutUInt32_3 base
- CDataStore::PutUInt32_2 base
- CDataStore::PutFloat base
- CDataStore::PutCString base
- CDataStore::PutData base
- GetUnixTime core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::DisplayError ui
- HasChatHistoryLine ui
- GetChatHistoryLine ui
- GetChatHistoryTime ui
- ClientServices::Send net
- GetCurrentMapId objectlayer
- SMemAlloc storm
- SMemFree storm
- SStrCopy storm
- ZlibCompressWithArena zlib
Calls and jumps by a bare address, from tables/calls.tsv.