View Single Post

Old 01-21-2008, 10:09 PM   #12 (permalink)
BitSaber
Mortal
 
Join Date: Jan 2008
Posts: 4
BitSaber is on a distinguished road
Default

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.
BitSaber 15 0FF11|\|3   Reply With Quote