Hi everyone !!!
First of all : please Cypher apologize for my dumb question yesterday in my PM ^^ It was really too silly after all
Well my current gold is to execute functions in order to control my char in game with DLL injection.
I wanted to start by jumping.
So I started IDA and look after "JumpOrAscendStart" into String
I found it at :
Code:
.rdata:0095BEC0 aJumporascendst db 'JumpOrAscendStart',0 ; DATA XREF: .data:off_FCCFD8o
I press Ctrl-x in order to see what calls this string and it leads to :
Code:
.data:00FCCFD8 off_FCCFD8 dd offset aJumporascendst ; DATA XREF: sub_552A00+9r
.data:00FCCFD8 ; sub_552A30:loc_552A33r
.data:00FCCFD8 ; "JumpOrAscendStart"
There are 2 functions : sub_552A00 and sub_552A30.
First of all : does those functions are used by WoW to Jump your char ? Moreover, I saw that some LUA functions (as JumpOrAscendStart) are disable by Blizzard. Is it only disable for addons or is it disable for using in memory ? (can I use them with DLL injection ?) Well they are not fully disable because WoW use them but perhaps they have to be enable before used.
Then I tried to use the first function with a DLL injection with :
Code:
#include <windows.h>
void (__stdcall *sub_552A00) () = (void(__stdcall *)()) 0x00552A00;
int WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
MessageBox(NULL,L"DLL loaded successfuly",L"Sucess",MB_OK);
sub_552A00;
break;
case DLL_PROCESS_DETACH:
//Should have inserted something here but it was just for test
break;
}
return true;
}
First in my code I declare the sub_552A00 function but I dont really think it is the right way... (I put stdcall but I didnt know what else I could put... there is nothing in IDA that call help me, or I dont know it)
Then I call the function but nothing happened in game...
To summarize :
Does the sub_552A00 is really used by WoW to jump ? If it's not, how could I find the correct function. I've read that I could call JumpOrAscendStart with DoString in order to call the function by LUA, but I wanted to find the direct function to jump.
Moreover : Sub functions never have parameters... Well those i saw in IDA... This is very strange and I think i'm missing something here...
This thread can be considered as a newb post and I apologize for it
And I apologize also for my crappy english ^^