how can i find addresses of functions (to call these) in a game?
e.g. if i want that a bot uses a skill, walks around etc? is there a tutorial of finding these functions (maybe with a debugger)?
thanks!
I would start by finding the addy the holds the value u want to change. For instance the ammo count... you would find the value that contains: ur ammo value. Now that u have that... find out which functions access that value.
Some memory scanners have functions that do this automatically such as "Find what references" in CE or MHS. Now I imagine that would do this by searching for that address in memory and disassembling the memory regions that access that addy. Now that the memory region is disassembled. Try to find the beginning of the function. Tthe beginning of a function is usually pretty easy to pick out if it has a standard stack frame:
Code:
push ebp
mov ebp, esp
sub esp, 10 ; any number can go here
http://en.wikibooks.org/wiki/X86_Dis...d_Stack_Frames
The function is declaring space for its local variables, which is why its so easy to pick out. Now the start of that stack frame will most likely be the beginning of your function. What u can do w/ that function depends on ur skills w/ disassembly, however hooking it would be a good start. try using the same technique to see what accesses the address of the beginning of the function then disassemble that mem region as well to see what parameters are passed. That or just set a breakpoint at ur functions addy and check the stack for params.