Hi there, i'm new to bot dev/mem editing. I really strove not to ask a lot.. Sorry
So, i learned how to read wow memory, the next step is calling function. So:
1. In screenshot thread i found
Code:
private static void call_CastSpellById(int id)
{
uint codeCave = wow.AllocateMemory();
wow.Asm.Clear();
wow.Asm.AddLine("fs mov eax, [0x2C]");
wow.Asm.AddLine("mov eax, [eax]");
wow.Asm.AddLine("add eax, 8");
wow.Asm.AddLine("mov dword [eax], {0}", objectManager);
wow.Asm.AddLine("push 0");
wow.Asm.AddLine("push 0");
wow.Asm.AddLine("push 0");
wow.Asm.AddLine("push {0}", id);
wow.Asm.AddLine("call {0}", CASTSPELLBYID);
wow.Asm.AddLine("add esp,16");
wow.Asm.AddLine("retn");
wow.Asm.InjectAndExecute(codeCave);
wow.FreeMemory(codeCave);
}
I need to put this to gcc, i'm using qt creator.. i put it in this way,
Code:
__asm ("movl %eax, 0x2C");
__asm ("movl %eax, %eax");
__asm ("add %eax, 8");
__asm ("movl %eax, om");
__asm ("push 0");
__asm ("push 0");
__asm ("push 0");
__asm ("push id");
__asm ("call 0x00773400");
__asm ("add %esp, 16");
__asm ("retn");
id, om - variables. I know, this is wrong, how should i proceed with variables ? All ASM code includes i found are on C#, sorry again for asking.
2. in offsets thread there was this kind of offset How to send func like these? Like in the 1st example? Is there "0x" in the beginning missed ?