Script::SendChatMessage
function · ui · primitive
- Address
0x49f1e0· 1461 bytes, up to0x49f794- 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
- CDataStore::PutUInt32 base
- CDataStore::PutUInt32_3 base
- CDataStore::PutCString base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CheckActivePlayer ui
- CGGameUI::DisplayError ui
- AddChatLine ui
- GetChannelNameByNumber ui
- ResolveChatTypeName ui
- ResolveLanguageName ui
- AcknowledgeTutorial ui
- IsRaidLeaderOrAssistant ui
- ExpandTargetTokens ui
- DrunkTransformText ui
- ClientServices::Send net
- SetAfk objectlayer
- ClearAfk objectlayer
- CGPlayer_C::GetRaceField20 objectlayer
- IsDeadOrGhost objectlayer
- SStrChr2 storm
- SStrPrintf storm
- SStrToInt storm
- SStrStr storm
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
- FrameScript_GetText ui
Calls and jumps by a bare address, from tables/calls.tsv.