Page 1 of 1

move to loc??

Posted: Tue May 04, 2004 11:46 pm
by omper
Can someone give me a line that will tell my bot to move to a certain loc.. please


Omper

Posted: Wed May 05, 2004 9:40 am
by s16z

Posted: Wed May 05, 2004 3:48 pm
by omper
no.. this is what i was looking for. but thanks

Code: Select all

Sub MoveToAnchor 
    /declare iCount int local 
    
    /varset iCount 0 

    /echo Moving to Anchor at Loc: 1746, -244. 

:AnchorMoveLoop  
    /delay 1 
    /doevents 
    /face nolook loc 1746,-244 
    
    /if (${Math.Distance[-244,1746]}>12) { 
       /keypress forward hold 
   } else { 
       /keypress forward 
        /return 
    } 

    /if (${iCount}>2) { 
         
        /face nolook loc $1746,-244 
        /varset iCount 0 
    } 
    
    /varcalc iCount ${iCount}+1 
    /goto :AnchorMoveLoop 
/return