So im making something similar to a flinching bot, and the delay between attacking the npc and walking to X title is taking too long. Sometimes its perfect but other times its like 3 ticks too late.
My code looks something similar to this:
npc.interact("Attack")...