OK so I changed it. I don't like how long it's getting. But being I don't totally know VBS I'm getting by. Does this look right?
Code: Select all
function MoveToNextWaypoint
Log.DebugLog "Moving to next waypoing..."
if (currentWaypoint = 0) then
MoveTo -23244, 45634
currentWaypoint = 1
end if
else if (currentWaypoint = 1) then
MoveTo -19685, 47821
currentWaypoint = 2
end if
else if (currentWaypoint = 2) then
MoveTo -15527, 48377
currentWaypoint = 3
end if
else if (currentWaypoint = 3) then
MoveTo -16091, 51353
currentWaypoint = 4
end if
else if (currentWaypoint = 4) then
MoveTo -19108, 53946
currentWaypoint = 5
end if
else if (currentWaypoint = 5) then
MoveTo -24527, 51220
currentWaypoint = 6
end if
else if (currentWaypoint = 6) then
MoveTo -28398, 51394
currentWaypoint = 7
end if
else if (currentWaypoint = 7) then
MoveTo -19685, 47821
currentWaypoint = 8
end if
else if (currentWaypoint = 8) then
MoveTo -28398, 51394
currentWaypoint = 9
end if
else if (currentWaypoint = 9) then
MoveTo -24527, 51220
currentWaypoint = 10
end if
else if (currentWaypoint = 10) then
MoveTo -19108, 53946
currentWaypoint = 11
end if
else if (currentWaypoint = 11) then
MoveTo -16091, 51353
currentWaypoint = 12
end if
else if (currentWaypoint = 12) then
MoveTo -15527, 48377
currentWaypoint = 13
end if
else if (currentWaypoint = 13) then
MoveTo -19685, 47821
currentWaypoint = 0
end if
sleep 6000
end function
Now what is the best way to scan for Mobs while running to waypoint? Would a do if routine be the way to go? And use FindTarget=true? Then use a then statement with TargetNearestMob and KillCurrentTarget? If so would someone mind showing me the best way to write it? Once I have this all done I'll be posting up my scrpt.
I currently have it casting 3 dots and then chain casting bone spike. Then casts Necropsy and Vile Rituel. I've so far gotten 2 rare grafts using this.