Hello... I am trying to Interact using VMT 38
Here is my code:
Code:
public static void Objinteract(uint obj)
{
Logging.Write(Color.Red, "Objinteract(VMT)" + obj);
uint codeCave = WoW.EndScene.BlackMagic.AllocateMemory(0x1000);
uint VMT38 = WoW.Memory.ReadUInt((WoW.Memory.ReadUInt(obj)) + (38 * 4));
var objectManagerBase = Offsets.ObjectManager.ObjectManagerBase;
WoW.EndScene.Hook_AsmAddLine("fs mov eax, [0x2C]");
WoW.EndScene.Hook_AsmAddLine("mov eax, [eax]");
WoW.EndScene.Hook_AsmAddLine("add eax, 0x10");
WoW.EndScene.Hook_AsmAddLine("mov dword [eax], " + objectManagerBase);
WoW.EndScene.Hook_AsmAddLine("mov ecx, " + obj);
WoW.EndScene.Hook_AsmAddLine("call " + VMT38);
WoW.EndScene.Hook_AsmAddLine("retn");
WoW.EndScene.Hook_AsmInject();
WoW.EndScene.BlackMagic.FreeMemory(codeCave);
}
I send the gameobjects base address to the function. It doesn't work. My character just stands there :S