Post Reply Home » Forums » Vanguard » VGExtreme General Discussion

Move to target question : VGExtreme General Discussion

Posted: April 17th, 2007
edgecrush_td
As I run my macro I have tweaked, I run into the problem of not having line of sight to my target as I cast spells. When my character moves to target, he gets too close. This especially happens in water, but happens on land its fair share. Is there code to make your character move to target, but with some distance in between you can change?

What I currently have:

function KillCurrentTarget()
'Send in Pet
Log.DebugLog "Sending in Pet..."
VGSendCommand "/pet Attack"
do until (Target.HP < 90)
Sleep 1000
Loop
Log.DebugLog "Facing Mob..."
faceMob getTarget
Log.DebugLog "Moving to Target"
MoveToMob getTarget
Log.DebugLog "Wait 6 secs for aggro..."
Sleep 1000
Posted: April 17th, 2007
Total Posts:154 Joined:2006
Yea there is a way to do that but do not think that will 100 percent fix your problem.

I notice sometimes mobs get on top of your character and you can not see them to fight even though you face them.

Instead if you move back slightly after in combat should work better.

Just make sure you wait long enough that the mob would have had time to run up too you or even take one step back every loop.

It takes VERY LITTLE movement to fix the problem.
Posted: April 18th, 2007
User avatar
Total Posts:374 Joined:2005
i use that to handle your problem while is mine often too.

Code: Select all

'*************************************************************************'
'*''''''''''''''''''''CHECK CHAT FOR MOB TAKING DAMAGE''''''''''''''''''''''''''''*'
'*************************************************************************'
Function MOB_DMG_CHECK
 Do While not (Infile.atEndOfStream)             ' do while not EOF 
        Line = Infile.ReadLine                      ' Read a Line from InFile
            If Instr (Line, "no line of sight") Then
Log.DebugLog "Found the LoS   " & Target.Distance
for MoveBackward = 0 to 3 
           VGSEndtext "s"  ' Moves Target Backward
           Sleep 20
         next
         end if
            
    loop

end function  
i also check in chat for no line of sightif that happens i move little back so long i got the mesage in chat, it works very good for me (cleric).
also is a part on my Cleric bot
http://www.taultunleashed.com/phpbb2/ab ... oT_v_.html
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 15 guests
Post Reply