Hi
It's my first post on this forum, so first a big thanks for all the informations a found on it.
I'm having some trouble with the SetTarget function. Each time I called it I've got a wow critical error.
This is what I know. Tell me if I'm wrong =)
The SetTarget function located at 0x4C46F0 (3.2.2 Info Dump Thread) takes a WGUID as argument
I'm working in C# using the Fasm lib
Based on the Lbot source I found on this forum and Code Using SelectTarget - Game Deception - Forums
If someone can give me a little help, I will apreciate.Code:uint codecave = memory.AllocateMemory(); uint dwHiWord = (uint)(GUID >> 32); uint dwLoWord = (uint)GUID; memory.Asm.Clear(); memory.Asm.AddLine("MOV EAX, [0x{0}]", dwHiWord.ToString("X")); memory.Asm.AddLine("PUSH EAX"); memory.Asm.AddLine("MOV EAX, [0x{0}]", dwLoWord.ToString("X")); memory.Asm.AddLine("PUSH EAX"); memory.Asm.AddLine("CALL 0x4C46F0"); memory.Asm.AddLine("ADD esp, 0x08"); memory.Asm.AddLine("RETN"); memory.Asm.InjectAndExecute(codecave); memory.FreeMemory(codecave);
PS: Excuse me for my poor English