Need Help with Returning Home Macro

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
a lesser mummy
Posts: 33
Joined: Thu Oct 02, 2003 9:20 am

Need Help with Returning Home Macro

Post by Tuffy » Mon Dec 08, 2003 9:30 am

I know there should be an easier way. But here is what I got so far.

Questions:
1st: How do I keep from looking up when going back to home point?
2nd: Is there an easier way.

Code: Select all

sub Main

|sub homeloc

:Home 


/face loc -140.00X,-107.00

     /if n $distance(-140.00X,-107.00)>30 /sendkey down up 
     /if n $distance(-140.00X,-107.00)<=30 { 
     /sendkey up up 
     
/return

} 


Dengel
decaying skeleton
decaying skeleton
Posts: 4
Joined: Mon Dec 08, 2003 8:01 am

Post by Dengel » Mon Dec 08, 2003 10:12 am

/face loc nolook X Y

But I am not sure

Tuffy
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Oct 02, 2003 9:20 am

Pet Heal Question

Post by Tuffy » Mon Dec 08, 2003 3:36 pm

Thanks, I'll try that when I get home.

[40oz]
a hill giant
a hill giant
Posts: 156
Joined: Tue Nov 12, 2002 12:14 pm

Post by [40oz] » Mon Dec 08, 2003 4:08 pm

Off the top of my head, but it'll at least put you on the right track.

Code: Select all

sub Main 

   :runloop
      /face fast nolook loc -140.00X,-107.00
      /sendkey down up
   /if n $distance(-140.00X,-107.00)>30 /goto :runloop

   /sendkey up up

/return
I left those x's in there, but i don't think you need them. delete them if you get syntax or functionality errors, and try again.