Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!
Moderator: MacroQuest Developers
-
Tuffy
- a lesser mummy

- Posts: 33
- Joined: Thu Oct 02, 2003 9:20 am
Post
by Tuffy » Tue Mar 23, 2004 11:48 am
Hello,
Can someone help with my movement code? It works fine until after I get done with a fight and try to follow to another mob. I have to hit the up key to get it to start following.
Code: Select all
Target Stuff
:MAloop
/assist @MA
:loopMove
/face
/if n $target(distance)>60 {
/sendkey down up
/goto :loopMove
}
/if n $target(distance)<20 {
/press down
/goto :loopMove
}
/assist @MT
/delay 5
/if "$target()"=="FALSE" {
/target @MA
/delay 2s
/goto :MAloop
}
/if "$target(type)"!="NPC" {
/goto :MAloop
}
:attackloop
attack stuff
-
Falco72
- a hill giant

- Posts: 215
- Joined: Fri Sep 26, 2003 3:24 am
Post
by Falco72 » Tue Mar 23, 2004 11:58 am
Code: Select all
/if "$target()"=="FALSE" {
[color=red]/keypress forward[/color]
/target @MA
/delay 2s
/goto :MAloop
}
/if "$target(type)"!="NPC" {
[color=red]/keypress forward[/color]
/goto :MAloop
}
-
Bad Karma
- a snow griffon

- Posts: 346
- Joined: Sat Nov 22, 2003 9:34 pm
-
Contact:
Post
by Bad Karma » Sat Mar 27, 2004 7:19 am
Use /keypress for movement...will keep you from locking up your keyboard (and it's just the "right" way to do it now).
* * * UNTESTED * * *
Code: Select all
Target Stuff
:MAloop
/assist @MA
/delay 5
:loopMove
/face
/if n $target(distance)>60 {
/keypress forward hold
/goto :loopMove
} /keypress forward
/if n $target(distance)<20 {
/keypress back hold
/goto :loopMove
} /keypress back
/assist @MT
/delay 5
/if ($target()==FALSE || $target(type)!=NPC) /goto :MAloop
:attackloop
attack stuff
[b]- Bad Karma
________________________________________[/b]
In our own quest for excellence, we should strive to take the time to help those who help themselves.
All others should [b]RTFM[/b]!!!!!!!!!