View Single Post

Old 10-14-2008, 04:02 AM   #18 (permalink)
Perma
rol 3905h, 8
Senior Member
Administrator

Saint
 
Perma's Avatar
 
Join Date: Jul 2004
Location: Canada
Posts: 5,468
Perma has disabled reputation
Default

Here is a different text function for the current patch.

Code:
Game_TextOut proc       szText:DWORD
   ;//Local text out function.

        .data
        WC3FXN_TextOut           dd 6F2F3130h

        .code
        push 0FF00FF00h
        push 41200000h
        push szText
        mov ecx, dword ptr ds:[6FAA1988h]
        call dword ptr [WC3FXN_TextOut]
        ret

Game_TextOut endp
This makes the text appear where other status messages appear (several indents to the right and lower than normal text messages). The first parameter is your default color (opacity, red value, green value, blue value), the next parameter is the timer, and the last is your text pointer.

Because you can change the color in the text string itself, the actual value of this color parameter is pretty much irrelevant. You can simplify your call parameters as I've shown above to save time.
Perma 15 0FF11|\|3   Reply With Quote