Having an issue with it returning to the spot but still spamming pathfinding, if anyone can point me in the direction of what I need to add to make it return to the spot and stop trying to pathfind I would muchly appreciate it, thanks!
sub findattack1
finditem %target G_15
if #findcnt < 1
event pathfind 6788 3444
{
if #finddist > 1
event pathfind #findx #findy #findz
gosub attackmob
}
until #findcnt < 1
return