Valhalla Legends Archive

Programming => Advanced Programming => Topic started by: TheMinistered on December 31, 2004, 09:57 PM

Title: World of Warcraft - Chat Print
Post by: TheMinistered on December 31, 2004, 09:57 PM
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


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
}
}


I will post the color codes as I figure them out!
Title: Re: World of Warcraft - Chat Print
Post by: Grok on January 04, 2005, 12:52 PM
Hah, nice.  You're a lunatic. :p
Title: Re: World of Warcraft - Chat Print
Post by: Ban on May 03, 2005, 10:10 AM
Perhaps the unknowns have something to do with string formatting?