Running Char to a certian Loc...

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

slim
decaying skeleton
decaying skeleton
Posts: 1
Joined: Wed Aug 21, 2002 9:37 am

Running Char to a certian Loc...

Post by slim » Wed Aug 21, 2002 9:40 am

Could someone plz tell me if it is possible to make your character run to a certian loc with MQ and if it is could you plz show me how to go about doing it...

Thanx alot

powerspike
a ghoul
a ghoul
Posts: 80
Joined: Sun Aug 11, 2002 11:40 pm
Location: Australia
Contact:

Post by powerspike » Wed Aug 21, 2002 10:06 am

something like

Code: Select all

#include routines.mac
/call GotoLoc x,y

as simple as that, just make sure you have routines.mac, if you don't you can get it out of the macro depot.

cyberglitch
a lesser mummy
a lesser mummy
Posts: 42
Joined: Wed Jun 26, 2002 4:40 pm

Post by cyberglitch » Wed Aug 21, 2002 11:38 am

Usage /macro run 10 20 This should run your char to location 10,20

Of course not tested but should work. I might have might have my $p's mixed up and to lazy to test it to see if I have them right and put the right ones in there.

Code: Select all

| run.mac
|
#include routines.mac

sub main
/call gotoloc $p0,$p1
/return


User avatar
Imperfect
Macro Author
Macro Author
Posts: 319
Joined: Fri Jun 14, 2002 1:52 am

Post by Imperfect » Sat Aug 24, 2002 4:49 am

Try this. THis is my safefall.mac for EC. It should be pretty self explanatiory.

Code: Select all

#include routines.mac

Sub Main
	:Begin
	/call Uphill
	/goto :Begin
/return


Sub Uphill
	:Uphill
	/face loc -645,-805 fast
	/if n $distance(-645,-805)>5 /goto :Uphill
	/goto :Downhill
	:Downhill
	/face loc -643,-695 fast
	/if n $distance(-643,-695)>5 /goto :Downhill
	/goto :Uphill

/return