How to find and click on a knowledge portal?

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

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

How to find and click on a knowledge portal?

Post by ImaNoob » Sat Mar 20, 2004 3:48 am

I'm writing a script to help solo a melee class.
The basic premise is this fight until 25% hp, use any healing stuff, potions and whatnot, then run to closest Knowledge Portal and zone if out of healing stuff.

My question is how do I find, the location of, run to, and click on the nearest knowledge portal.

This macro would of course only work in zones that actually have them, and would probably have severe problems in places like Firona Vie where the portal is deep inside a cave maze, but basically assuming no obstructions, how would I find and subsequently get to and utilize the nearest knowledge portal?

Thank in advance for the helps.

cronic
a grimling bloodguard
a grimling bloodguard
Posts: 536
Joined: Wed Nov 26, 2003 11:01 pm

Post by cronic » Sat Mar 20, 2004 3:58 am

Use "/doortarget pok" to target the book. You can use any number of methods posted here to move to your target.[/code]

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

Wow thats simple

Post by ImaNoob » Sat Mar 20, 2004 4:10 am

Thank you, that makes me feel completely brain dead :)
But seriously I really appreaciate the helps.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sat Mar 20, 2004 8:33 am

You could also have used Search. This is in one of the Macro Depots.

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

Hmmm

Post by ImaNoob » Sun Mar 21, 2004 1:10 pm

I did do a search, for Knowledge Portal, and didn't see anything I thought I could use.
My wrong thinking was in assuming the portal to be a groundspawn type of object, rather than a door /*blushes*/ this is something that is mentioned in the readme, and that I somehow managed to overlook.
Anyways thanks for the help guys, I'm gonna post all the code for this in a day or so, once I have the bugs out to my satisfaction. Right now when it zones, the macro goes into an infinite loop, I know I'm missing something obvious :(

I'll get it though.