hey again thanks for the help so far to all,
I am asking because I couldn't derive a straight answer from tis post:
http://www.mmowned.com/forums/world-...-dostring.html
From what I read there my program is doing the same thing on the code executions
Im trying to use this:
Code:
BlackMagic wow = new BlackMagic(); //Create new function to open wow process
wow.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft")); //This Opens "World of Warcraft" window
string Command = "DefaultServerLogin(" + username + ", " + password + ")";
wow.SuspendThread();
// Allocate memory for command
uint DoString_space = wow.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1);
// Write command in the allocated memory
wow.WriteBytes(DoString_space, Encoding.UTF8.GetBytes(Command));
wow.Asm.Clear();
// Write the asm stuff for Lua_DoString
wow.Asm.AddLine("mov eax, " + DoString_space);
wow.Asm.AddLine("push 0");
wow.Asm.AddLine("push eax");
wow.Asm.AddLine("push eax");
wow.Asm.AddLine("mov eax, 0x00819210"); // Lua_DoString for 3.3.5
wow.Asm.AddLine("call eax");
wow.Asm.AddLine("add esp, 0xC");
wow.Asm.AddLine("retn");
// Inject the shit
wow.Asm.InjectAndExecute(DoString_space);
// Free memory allocated for command
wow.FreeMemory(DoString_space);
wow.ResumeThread();
Once used WoW shows this message:
Code:
[string "?"]: 1:Unexpected symbol near '?'
of course I'll +rep you again regardless of your answer as long as it is an idea that makes sense, would like it someone could explain why this error occurs and if possible how I would fix it.
Thanks