• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

lil help with moving to locations (1 Viewer)

thegreat

New member
Joined
Jul 3, 2006
RedCents
I am trying to make a macro in which I will need to have my character go to a location ... I already understand the /face commands and that you will need /keypress forward hold to get there and /keypress forward to stop ...
What I need help with is figuering out how to make the condition of /if my loc = loc i faced, then /keypress forward to stop walking.

thx if anyone can help..
 
I think theres a macro (don't quote me) that can record locations to make your character run paths. This was found with ADVTASK and I know I used it before with Alatyami. If that might help, look there possibly.
 
I did not come up with this but I use a version of it in most my macros...

Use this to call movement...

/call MoveToLoc 2113 335 (of course change numbers to suit your needs)


Rich (BB code):
Sub MoveToLoc(MoveToY, MoveToX) 
    /if (${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]} < 10) /return 
    /echo Moving to Location: ${MoveToY}, ${MoveToX}. 
    /echo Distance: ${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]} 

    /declare running int local 
    /declare distanceNow float local 
    /declare distanceBefore float local 
    /declare distanceModifier int local 
    /varset running 0 
    /declare distanceTimer timer 15 
    /varset distanceBefore ${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]} 
    /varset distanceModifier 1 
    
    :moveToLocation 

    /face fast nolook loc ${MoveToY},${MoveToX} 

    /if (${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]}<10) { 
        /keypress forward 
        /return 
    } 
    
    /if (${distanceTimer}==0) { 
        /if (${Me.Sneaking}) { 
            /varset distanceModifier 2 
        } else { 
            /varset distanceModifier 1 
        } 

        /varset distanceNow ${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]} 
        /if (${Math.Calc[${distanceBefore}-${distanceNow}]}<${Math.Calc[10/${distanceModifier}]}) { 
      /call strafePastObstacle 
        } 
        /varset distanceBefore ${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]} 
        /varset distanceTimer 15 
    } 

    /if (${running}==0) { 
        /keypress forward 
        /if (${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]}>10) { 
            /varset running 1 
            /keypress forward hold 
        } 
    } else { 
        /if (${Math.Distance[${Me.Y},${Me.X}:${MoveToY},${MoveToX}]}<11) { 
            /varset running 0 
            /keypress forward 
        } 
    } 
    /goto :moveToLocation 
/return

sub strafePastObstacle 
    /keypress forward 
    /keypress back hold 
    /delay 2 
    /keypress back 
    /if (${Math.Rand[99]}>50) { 
        /keypress strafe_right hold 
    } else { 
        /keypress strafe_left hold 
    } 
    /delay 3 
    /keypress strafe_right 
    /keypress strafe_left 
    /keypress forward hold 
/return

This has worked great for me.
 
lil help with moving to locations

Users who are viewing this thread

Back
Top