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

AuthorMessageTime
TheMinisteredI'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
}
}

I will post the color codes as I figure them out!
December 31, 2004, 09:57 pm
GrokHah, nice.  You're a lunatic. :pJanuary 04, 2005, 12:52 pm
BanPerhaps the unknowns have something to do with string formatting?May 03, 2005, 10:10 am