Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Don Cullen on July 01, 2005, 03:14 PM

Title: Found the text display function...
Post by: Don Cullen on July 01, 2005, 03:14 PM
Took me a while to locate it. Now I've found it, I'm not quite sure as to how to call it from within vb.

TextFunction :

0047AC4E   E8 AD37FFFF      CALL starcraf.0046E400

ECX and EDI hold pointers to Text.

Any ideas on how I can use it, without resorting to DLL injection?

Title: Re: Found the text display function...
Post by: Kp on July 01, 2005, 08:11 PM
SetThreadContext? :)
Title: Re: Found the text display function...
Post by: Don Cullen on July 01, 2005, 08:15 PM
Clarify?
Title: Re: Found the text display function...
Post by: iago on July 01, 2005, 09:09 PM
It's doubtful that EDI is used after the function is called.  ECX and EDX would be where you want to look.

Incidentally, is this for 1.12 or 1.13?  If it's for 1.13, then you were pretty fast :P
Title: Re: Found the text display function...
Post by: Don Cullen on July 01, 2005, 09:13 PM
1.13, and I was following a tutorial- I simply disregarded the offsets the tutorial gave, and went by comparing the asm code with the code I found. That's how I got this far, in spite of the patch. Even if the offsets change, the code barely changed for that section, so that helped.

My question is, how would I go about calling that function?
Title: Re: Found the text display function...
Post by: Warrior on July 02, 2005, 01:43 AM
Quote from: Kyro on July 01, 2005, 03:14 PM
I'm not quite sure as to how to call it from within  vb.

:P