Thanks for the help, atm I can open vendors ect (only I start further away than 2~ yards for some reason) using the code below but when It comes to 'attacking' I cant seem to do it yet, my guy just runs over ontop of the mob atm. But i'll keep trying, ty for helping
Code:
uint factionId = 0xC4D980;
uint targetId = 0xC4D984;
public void InteractWith(long faction, long target, int flag, IntPtr hWnd)
{
myMagic.Open(hWnd);
myMagic.WriteInt64(factionId, faction);
myMagic.WriteInt64(targetId, target);
myMagic.WriteInt(ctmFlag, flag);
myMagic.Close();
}
Edit: ok so looting also works with that funciton - I can live without attack-CTM and just use macros to make sure auto-attack is on. But my next challenge is dealing 'picking up' items once loot window is open and 'selling' items to the vendor without mouse input.
Edit2: I found an addon for vanilla called "autoprofit" and modified it to sell all greys without any user input. I'm looking for one for looting atm but it doesn't look as though it was possible to do though addons in vanilla