benilla-re systems structs docs

Script::SendChatMessage

function · ui · primitive

Address
0x49f1e0 · 1461 bytes, up to 0x49f794
Signature
int __fastcall (lua_State *L)
Meaning
Sends a chat line: checks the type, group and channel, runs the text steps and writes opcode 0x95
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/chatsend#arguments-of-sendchatmessage
Test
ui::glue_geom_49f1e0_percent_byte

Finding: Arguments of SendChatMessage in ui: sending chat

SendChatMessage(text [, type] [, language] [, target]) needs a local player (else it does nothing) and a string or number text (else it raises Usage: SendChatMessage(text [,type] [,language] [,targetPlayer])). The type is a name looked up without case in a 13-entry table (SAY 0, PARTY 1, RAID 2, GUILD 3, OFFICER 4, YELL 5, WHISPER 6, EMOTE 8, CHANNEL 14, AFK 20, DND 21, RAID_WARNING 88, BATTLEGROUND 92); an unknown name raises Unknown chat type; no type is SAY. An empty text sends nothing unless the type is AFK or DND. The language is the race's default (GetDefaultLanguage) unless named, an unknown name raising Unknown language.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 28

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