A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.
Moderator: MacroQuest Developers
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sat Jan 17, 2004 1:21 am
The other thread won't let me paste all my code in it so I'm starting a new thread.
Generic example of a calling macro:
Go to the snippets forum for the latest version.
Last edited by
ml2517 on Sat Apr 10, 2004 7:03 pm, edited 5 times in total.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sat Jan 17, 2004 1:21 am
advpath.inc
Go to the snippets forum for the latest version.
Last edited by
ml2517 on Sat Apr 10, 2004 7:03 pm, edited 22 times in total.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sat Jan 17, 2004 1:27 am
advpath.txt
Go to the snippets forum for the latest version.
Last edited by
ml2517 on Sat Apr 10, 2004 7:04 pm, edited 6 times in total.
-
Schark
- orc pawn

- Posts: 28
- Joined: Sat Nov 29, 2003 5:37 am
Post
by Schark » Sat Jan 17, 2004 8:22 am
Follow works great again.. thanks man :)
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sat Jan 17, 2004 10:18 pm
Updated:
advpath.inc
Fixed a bug with the record function. In some instances it was recording in increments smaller than it should have been which would cause the wierd looking back and forth thing on playback. Should be fixed now.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Jan 18, 2004 1:06 am
Updated:
advpath.inc
It seems that some people were having problems with the comment block that I'd added in the script. I've removed it.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Jan 18, 2004 4:08 am
Updated:
Added goto function. You can provide the Z coordinate or not as you wish (Any of these should work):
/call GotoFunction "Y X"
/call GotoFunction "Y X Z"
/echo goto Y X
/echo goto Y X Z
Found a bug while working on the goto function that would crash the script if you couldn't get past an obstacle and were on the last coordinate that was plotted. It will now call the stop function if such and occurance happens.
** The board isn't liking the size of my script so I took the help portion and placed it in a new file called advpath.txt
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Jan 18, 2004 4:42 am
Added the comment block with the version info back in per Lasher's request. If this is causing your macros to crash, and you aren't using genbot 9.1 or higher, just remove this bit of code:
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Jan 18, 2004 6:33 am
Updated:
The example calling mac
advpath.inc
I've simplified the calling of the functions from another macro even further. You simply do these things:
Code: Select all
[color=red]This goes near the top of your script above Sub Main[/color]
#include advpath.inc
[color=red]This goes within your Sub Main but above your main loop, so that it only gets called once.[/color]
/call InitAPFVars 1 15 20
[color=red]This goes within main loop, so that it gets called frequently.[/color]
/call AdvPathPoll
Also, within your macro you should replace any:
with:
-
lasher
- a lesser mummy

- Posts: 71
- Joined: Thu Dec 18, 2003 4:09 pm
Post
by lasher » Sun Jan 18, 2004 1:15 pm
Found the problem with the script include on the comment blocks.
Make sure there are NO trailing spaces on the following code blocks:
The phpbb board seems to enjoy adding them when cutting/pasting.
-
lasher
- a lesser mummy

- Posts: 71
- Joined: Thu Dec 18, 2003 4:09 pm
Post
by lasher » Sun Jan 18, 2004 1:43 pm
Actually, found a good workaround when posting source using the comment blocks.
Add a second comment marker at the front of the comment block.
Turns out if there is a space after **| it will throw errors. So the additional pipe (|) at the beginning of the comment block catches the space.
-
vaelin
- orc pawn

- Posts: 21
- Joined: Fri Dec 19, 2003 8:52 pm
Post
by vaelin » Sun Jan 18, 2004 3:59 pm
All the following is much much smoother now. I would really have to work through it with a fine toothed comb to find significant flaw.
Just wanted to say again ... kudos!

-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Jan 18, 2004 7:13 pm
Updated:
advpath.inc
In follow or pathing modes when trying to zone, it will now give up if it can't zone after 20 seconds and just stop follow/playback mode.
Added in target cleanup in the door/zoning code. It will try to store your target before doing a /doortarget and then immediately after doing the door/zoning routines it will attempt to retarget your previous target.
I was using a variable distance between plotting points in record mode, changed this to once every 10 locs. It seems like the new pathing code works fine with such small increments and this will improve accuracy during playback.
A few other small fixes that I don't recall at the time.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Tue Jan 20, 2004 7:30 pm
Updated:
advpath.inc
Minor updates, mostly cosmetic. (To be honest I'd have to do a diff to remember what if anything I changed and didn't change back.

) I verified that the levitate/swimming was working as intended after someone tried to tell me it wasn't in IRC. It was working fine as is. :)
There is probably no need to update to this version, just doing it for sanity sake.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Wed Jan 21, 2004 7:01 pm
I've been asked this on occasion so I've added an example of using the record/playback to play pathfiles and do things along the way. I tacked it on to the first post.