Well i have the will to code a dll file with some simple patching memory functions for start.
But part of the main goal is for me to create a menu for the hack, so you can toggle easily anything you desire.
I noticed that in WoW.exe's memory is loaded opengl32.dll
I have the following 2 procedures (i code in delphi btw)
Code:
procedure glPrint(bs: integer; s: pchar); // draw text
begin
glPushAttrib($00020000);
oldglListBase(bs - 32);
oldglCallLists(length(s), $1401, s);
glPopAttrib;
end;
Code:
procedure DrawMenuText(x, y, bs: integer; s: pchar; red, green, blue: single); // draw menu text
begin
glColor4f(0, 0, 0, 1); // set gray color
oldglRasterPos2f(x+3, y+3); // set text coord
glPrint(bs,s); // print text
glColor4f(red,green,blue,1); // set new color
oldglRasterPos2f(x,y); // set text coord
glPrint(bs,s); // draw colored text
end;
So far so good ... this code is not working for me, nothing is being drawn if i use the following for example:
Code:
drawmenutext(swidth-80-80,120,base,'my greeny text is here',0,1,0);
So anyway, my question is for you to help me a little bit more what should i use to draw 2D custom text (with custom coords,color) in WoW?
Please excues my bad english, and i am sorry if i posted it in the wrong section but i suppose that dll injections and hooking ogl functions should be in "memory editing" :wave: