Ever since the update. My interact function has no longer been working and i dont know where the problem is. here's the code im using atm.
i formerley used shynd's example but that was so much gibberish id rather use bigtimt's processasm library no offense to u shynd
Code:
ProcessASM WowASM = new ProcessASM(Memory.GetProcessIdByProcessName("wow.exe"));
//get the adress of the call for 34 (Interact)
uint interact = Memory.ReadUInt(hProcess,
(Memory.ReadUInt(hProcess, objects[i].OBJECT_FIELD_BASEADRESS) + (34 * 4)));
WowASM.AddLine("mov EDX, [0x011C8248]"); //Start UpdateCurMgr
WowASM.AddLine("mov EDX, [EDX+0x285C]");
WowASM.AddLine("FS mov EAX, [0x2C]");
WowASM.AddLine("mov EAX, [EAX]");
WowASM.AddLine("add EAX, 8");
WowASM.AddLine("mov [EAX], EDX"); // End UpdateCurMgr
//Move the object to interact with into ecx
WowASM.AddLine("mov ecx, " + "0x" + objects[i].OBJECT_FIELD_BASEADRESS.ToString("X"));
//move the function call into eax and then calling it.
WowASM.AddLine("mov eax, 0x" + interact.ToString("X") + "");
WowASM.AddLine("call eax");
//return so wow doesnt dies.
WowASM.AddLine("retn");
WowASM.Execute();
If someone could point me in the right direction that would be great.