hello,
i found that my bot, druide bot 1.42 from con, has problems with corpserun. when i try to find the problem
i found that the bot controll, if the next corpserunpoint is nearer to corpse then the actual.
i think this could be the problem why my bot stop running very often when iīm dead, because my corpseways are often a littlebit tricky.
or with other words: no chance to walk direct from graveyard to corpse
perhaps somebody could show me how to change the programming of corpserun that the bot run from first point to 2nd point ...to last point and
looks than for best route to corpse
wp_cr_count = 0
while wp_cr_count < GetListItemCount(list_cr_y) do
walk_x = StrToFloat(GetListItemText(list_cr_x, wp_cr_count))
walk_y = StrToFloat(GetListItemText(list_cr_y,wp_cr_count))
PrintConsoleLine("Distance to corpse: "..tn:GetDistance(tn:GetCorpseLoc()))
!!!! if tn:GetDistance(tn:GetCorpseLoc()) < tn:GetDistance(walk_x,walk_y) then break
end
PrintConsoleLine("Corpserun, next waypoint: "..IntToStr(wp_cr_count))
MoveToXY(hWnd,walk_x,walk_y,5)
wp_cr_count = wp_cr_count + 1
I hope that some of our clever developer could solve my/our problem.
thanks in advance