Code:
void Warcraft_TextOut(char *cText)
{
static unsigned long WC3CLS_OutputClass = (*(int*)(*(int*)0x6F84CC20+0x3E0));
static unsigned long WC3FXN_PrintText = 0x6F663740;
__asm {
push -1
push 0
push 0x41200000
lea ecx, dword ptr [esp+0x08]
push ecx
push cText
mov ecx, WC3CLS_OutputClass
call dword ptr [WC3FXN_Text]
}
}
For whatever reason, I wasn't able to just edit my above post.
I didn't do any work on Warcraft III yet, but this should work.