Problems with zoning

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

Eat_the_meek
orc pawn
orc pawn
Posts: 11
Joined: Sat Feb 07, 2004 9:03 pm

Problems with zoning

Post by Eat_the_meek » Sun Mar 21, 2004 9:34 am

Can anyone help me with this code? I am trying to run from an NPC in PoK to a vendor in the Bazaar and back. Right now when I zone into The Nexus, it pauses for a while, loads the PoKtoBaz path, and then selects the stone and sends me back in to the Plane of Knowledge.

Code: Select all

#include advpath.inc
#turbo

Sub Main
/call InitAPFVars 1 15 20

:MainLoop 
/doevents 

/call PlayFunction "PoKQuesttoNexus 1 cf nopp noz" 
/call WaitTilThere 
/call UseStone
/delay 25s
|------------------- Broke 
/call PlayFunction "PoKtoBaz 1 cf nopp z" 
/call WaitTilThere 

|------------------ It isn't running the PoKtoBaz path after I zone in to the Nexus
/call PlayFunction "BaztoVend 1 cf nopp z" 
/call WaitTilThere 

/call PlayFunction "VendtoBaz 1 cf nopp z" 
/call WaitTilThere 

/call PlayFunction "BaztoPoK 1 cf nopp z" 
/call WaitTilThere 
/mouseclickl

/goto :MainLoop 
/return 

Sub WaitTilThere 
:LoopTilThere 
/if n @PathingFlag==1 { 
    /call AdvPathPoll 
    /delay 0 
    /doevents 
    /goto :LoopTilThere 
} 
/return 

Sub UseStone
	/doortarget
	/face fast nolook door
    	/keypress USE HOLD 
    	/keypress USE
/return

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Mar 21, 2004 1:52 pm

You'd have to explain exactly how you recorded your path file to know for sure, but try changing this:

Code: Select all

|------------------- Broke 
/call PlayFunction "PoKtoBaz 1 cf nopp z" 
/call WaitTilThere 
|------------------ It isn't running the PoKtoBaz path after I zone in to the Nexus 
To this:

Code: Select all

|------------------- Broke 
/call PlayFunction "PoKtoBaz 1 cr nopp z" 
/call WaitTilThere 
|------------------ It isn't running the PoKtoBaz path after I zone in to the Nexus