View Single Post

Old 01-16-2008, 05:38 PM   #11 (permalink)
BitSaber
Mortal
 
Join Date: Jan 2008
Posts: 4
BitSaber is on a distinguished road
Default

Quote:
Originally Posted by Perma View Post
That should work.
Code:
void Warcraft_TextOut(char *cText)
{
    static unsigned long WC3FXN_GlobalClass = 0x6F84CC20;
    static unsigned long WC3FXN_Text = 0x6F663740;

    __asm {       
        push 0FFFFFFFFh
        mov eax, WC3FXN_GlobalClass
        mov eax, dword ptr ds:[eax]
        mov eax, dword ptr ds:[eax+0x3E0]
        mov edx, dword ptr ds:[eax]
        push 0
        push 41200000h
        mov ecx, esp
        lea ecx, dword ptr ss:[ecx+0x08]
        push ecx        
        mov ecx, cText
        push ecx
        mov ecx, eax
        call dword ptr [WC3FXN_Text]
    }
}
BitSaber 15 0FF11|\|3   Reply With Quote