advpath.inc v1.31 -- follow/record/playback pathing inc file

A forum for macro code snippets to be used in writing other macros. Post routines or .inc files here only, completed macros go to the Macro Depot. MQ2Data format only!

Moderator: MacroQuest Developers

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Tue Aug 17, 2004 10:56 am

Vexix, thanks that last version worked perfectly.
Bad Karma, thank you for the pointer to your script, new version is up and running and posted in Macro Depot.


Now for the bug report...

When you go to zone it targets a door, always the same one for the zone and the point of zone out. I've checked the script to be sure it wasn't something I've done. This worries me as it could give "them" something to look for in trying to find users of MQ2 to ban them. Would you please look at the SH Faction script, test it out and see if you can track down where that is happening and fix it?
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

wardave
a ghoul
a ghoul
Posts: 120
Joined: Sun Jan 25, 2004 4:38 am

Post by wardave » Fri Aug 20, 2004 4:57 pm

Im still having issues with this working with follow on. My botted char will zone with me if Im not using a book or stone but will zone right back out. Also it doesnt know how to use stones/books to zone when its following me. What would cause this? And Yea I have the most recent version.

ascii38
a grimling bloodguard
a grimling bloodguard
Posts: 506
Joined: Sat Jul 17, 2004 8:06 pm

Post by ascii38 » Mon Aug 23, 2004 11:42 am

Wardave,

By any chance, do you have a larger character following a smaller one? I've found that it's only with a large race following a small race that causes the zone in and then zone out problem. I haven't had a chance to play with illusions to confirm if this is the case.

I also notice that the large character is often looking at the ground when the master clicks on a portal and the bot is unable to click because of where he's looking. When I manually center the display and hit "u", I have no problem. Maybe putting a /face in after targetting the portal would help in this situation.

Mulletmaster
orc pawn
orc pawn
Posts: 20
Joined: Tue May 04, 2004 1:06 am

Post by Mulletmaster » Mon Sep 27, 2004 6:07 pm

How would one use this snippet to have one character follow another...I have found a couple out-dates macros that use this snippet..but none of the work.

Is there a command built into MQ2 now that will do this?

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Wed Sep 29, 2004 10:42 am

Mulletmaster wrote:How would one use this snippet to have one character follow another...I have found a couple out-dates macros that use this snippet..but none of the work.

Is there a command built into MQ2 now that will do this?
You could use the plugin MQ2MoveUtils


http://www.macroquest2.com/phpBB2/viewt ... ight=stick

Bob

User avatar
Zornecro
a ghoul
a ghoul
Posts: 82
Joined: Sun Sep 19, 2004 10:19 pm
Location: El Paso, TX

Post by Zornecro » Sat Oct 09, 2004 6:44 pm

Vexix wrote:advpath.inc

Code: Select all

|advpath.inc 
|Generic movement/pathing macro for inclusion in your own macros. 
|Version 1.31
|Date:08/08/2004
| 
||** 
[advpath] 
version=1.31
**| 
I'd like to be able to follow someone's pet. Why? To automate a mage to summon an item and trade it to a pet. Here's the change I made:

Code: Select all

} else /if (${NearestSpawn[1,pet "${TgtName}"].ID}>0) {
    /target clear 
    /call Delay 2 
    /target pet "${TgtName}" 
    /call Delay 4 
    /if (${Target.ID}>0 && ${Target.CleanName.Equal["${TgtName}"]}) { 
        /varset ZoneTimer 0 
        /varset ZoneFlag 0 
        /varset FollowFlag 1 
        /varset FollowID ${Target.ID} 
        /if (${CurrLoc}==1) /varset CurrFollLoc ${Spawn[${FollowID}].Y} ${Spawn[${FollowID}].X} ${Spawn[${FollowID}].Z} 
        /if (${SilentFlag}==0) /echo -[ Following -( ${Target.CleanName} )- ]- 
} else /if (${ZoneFollow}==1) { 
The bottom line should tell you where this is inserted (above it) in the existing code.
- Zornecro Mancer, Retired EQ1 Veeshan
- Unktehila, Redtigre, Twinaxe, EQ2 Crushbone

Zero0003
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun May 02, 2004 1:42 pm

Post by Zero0003 » Fri Oct 15, 2004 5:56 pm

This broken again? Seems it can't target the person anymore if u want to follow them

somedude
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Nov 03, 2004 7:33 am

Post by somedude » Wed Nov 03, 2004 9:17 am

wrong thread... sorry

Mystic_Blue
a lesser mummy
a lesser mummy
Posts: 69
Joined: Sat Jan 22, 2005 3:31 am

ADVPATH SCRIPT EXAMPLE?

Post by Mystic_Blue » Fri Feb 04, 2005 1:36 pm

Has anyone every posted an example of an actual ADVPATH script?

I have having some difficulties, mostly even envisioning what it would like. So if someone is willing to post an example of a small script, it will help me see what I am not understanding.

I know that ml listed some barebones examples, but he left out the parts I am confused about, .ie. do stuff here AFTER arriving at the destination.

Thanks

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Fri Feb 04, 2005 2:05 pm

The do stuff after has absolutely nothing to do with this snippet, and everything to do with the macro that calls it.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Mystic_Blue
a lesser mummy
a lesser mummy
Posts: 69
Joined: Sat Jan 22, 2005 3:31 am

Post by Mystic_Blue » Fri Feb 04, 2005 2:51 pm

how do you figure that? seems the scripts are used by this snippet.

I just want to see an example, ANY actual example, not asking for one that any specific thing.

I did a search and there does not seem to be any such posts.

Now, if I were asking for a script that did something specific, as called by ADVBOT or something like that, I could see it.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Fri Feb 04, 2005 3:45 pm

You use regular macroing commands after calling this script. Just use advpath to get you to point X, then once you're at point X it returns you to your main macro, which executes any subsequent commands associated with the Sub that called Advpath in the first place. Advpath isn't going to tell you how to make your macro do anything that it doesn't handle directly.

If you want an example of how to use Advpath in a macro, look at genbot. It's quite a monster as far as macros go, but it uses advpath relatively seamlessly.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Mystic_Blue
a lesser mummy
a lesser mummy
Posts: 69
Joined: Sat Jan 22, 2005 3:31 am

Post by Mystic_Blue » Fri Feb 04, 2005 3:55 pm

AH!

Thanks, that is precisely what I was not understanding.

Issue solved

dedpoet
a hill giant
a hill giant
Posts: 247
Joined: Sat Aug 14, 2004 12:22 pm

Post by dedpoet » Fri Feb 04, 2005 4:52 pm

What I have done is use the little snippet Vexix posted on the first page to make a "recordpath.mac" macro. Then I run a route I want to take through each zone and save it to a file. I don't really do the afk thing, but now I have little macs that string the paths together to run me various places without having to worry about it. "/mac spiritstone", and go get a cup of coffee while my shaman gates to his spiritstone spot, runs to the PoK book, and clicks up. Much <3 for advpath.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Apr 18, 2005 11:21 am

Modification to get this working with Group --> Group.Member changes. In advpath.inc, in this sub

Code: Select all

Sub TargetMob(TgtName)
Change this line

Code: Select all

/if (${Group.Member[${a}].Name.Equal[${TgtName}]}) /return
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]