Valhalla Legends Forums Archive | Advanced Programming | World of Warcraft - Chat Print

AuthorMessageTime
TheMinistered
I've located a nice function for printing to the chat

The definition for the function is as follows:

void __fastcall ChatPrint(char* Text, unsigned long Color, DWORD unknown1, DWORD unknown2, DWORD unknown3, DWORD unknown4, DWORD unknown5);

I am unsure why it uses so many parameters because everytime I see it called it uses 0 for each parameter.

The offset for this function is: 004A4560

[code]
void ChatPrint(char* Text, unsigned long Color)
{
LPVOID ptrChatPrint = (LPVOID)0x004A4560;

_asm
{
mov ecx, Text
mov edx, Color
push 0
push 0
push 0
push 0
push 0
mov eax, ptrChatPrint
call eax
}
}
[/code]

I will post the color codes as I figure them out!
January 1, 2005, 3:57 AM
Grok
Hah, nice.  You're a lunatic. :p
January 4, 2005, 6:52 PM
Ban
Perhaps the unknowns have something to do with string formatting?
May 3, 2005, 3:10 PM

Search