I am using this. I am close.... but it will click in in the wrong place. For the life of me I can not figure out why. I have tried various debug'ing attempts, yet to no avail. It will print out the correct coords, it just will not go to them.
If anyone has any insight as to why I am not moving correctly.. I am all ears and all help is appreciated.
Code:
public enum ClickToMove : uint
{
//CtmBase + 0x1C
CtmAction = 0x008BD7F4, // 4.0.1 13164
//ClickToMove_Base
CtmBase = 0x008BD7D8, // 4.0.1 13164
//CtmBase + 0x8C
CtmX = 0x008BD864, // 4.0.1 13164
//CtmBase + 0x90
CtmY = 0x008BD868, // 4.0.1 13164
//CtmBase + 0x94
CtmZ = 0x008BD86C,
//CtmBase + 0x20
CtmGUID = 0x008BD8F8, // 4.0.1 13164
//CtmBase + 0xC
CtmDistance = 0x008BD8E4, // 4.0.1 13164
CtmActivatePointer = 0x00981850, // 4.0.1 13164
CtmActivate = 0x30, // 4.0.1 13164
}
Code:
try
{
GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmX, TargetCoord.X);
GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmY, TargetCoord.Y);
GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmZ, TargetCoord.Z);
GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmDistance, distance);
GObjectList.Memory.WriteInt(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmAction, (int)GPointers.ClickToMoveAction.ACTION_MOVE);
MMoMule.Log.log("X = " + TargetCoord.X + " Y = " + TargetCoord.Y + " Z = " + TargetCoord.Z, LogType.Debug);
catch (Exception e)
{
MMoMule.Log.Debug(e, "Fsm.Move");
}