-
Active Member
[Classic] 1.13.6.37497 SendChatMessage CGPlayer_C::GetDefaultLanguage
Code:
0xF27EB0
bool SendChatMessage(int chat_type, int language_type, uint64_t channel_id, void* unk1, const char* message);
chat_type values:
1 = say
2 or 51 = party
3 or 39 = raid
4 = guild
5 = officer
6 = yell
7 = whisper
10 = emote
17 = channel
23 = afk
24 = dnd
40 = raid warning
44 or 45 = battleground
language_type values:
i don't fucking know i use this other function for my default language:
0xB26630
uint64_t CGPlayer_C::GetDefaultLanguage(wowobject* activeplayer)
Pass your local player pointer into it and it returns the correct language_type
channel_id is obvious. its for which channel you want your shit in. 0 is default, so just pass 0.
unk1 is always nullptr.
message is your string. max 255 chars.
function returns true or false if message was successfully sent. it can fail if you reach the rate limit
enjoy
Last edited by scimmy; 03-23-2021 at 05:44 AM.
-
Post Thanks / Like - 1 Thanks
oiramario (1 members gave Thanks to scimmy for this useful post)
-
Established Member
thanks for your sharing!!!
-
-
Post Thanks / Like - 1 Thanks
oiramario (1 members gave Thanks to Jadd for this useful post)
-
Established Member
typedef char (__fastcall* FuncSendChatMessage)(uint32_t, uint32_t, uint8_t*, uint8_t*, uint8_t*);
channel
String - The channel or player receiving the message for "CHANNEL"/"WHISPER" communication. If sending to a channel you must use the number (eg. "1"); obtain it using GetChannelName("channelName"). This field is required for the "CHANNEL"/"WHISPER" chat types and ignored for any other chat type.
Last edited by oiramario; 08-19-2021 at 09:08 AM.