Sorry for the short message but I am at work and trying not to get caught writing an help request for a PC game, hehe!@
Anyway I wanted to know if anybody had an idea of how to have a sub command to check if any PC is in range before moving on to the next line of code.
So far I figure I need to do a check like
/target npc nopcnear 90 "NPC NAME"
But when I do this even if there is a pc near it still targets the npc. I am sure I am using the code incorrectly so please help.
What I want it to do is make this check and if a pc is near then to delay 10 seconds and try the check again. And once the check determines there is no pc near then to return a value that will complete the loop and send me back to the main program.
I checked out hunter.mac and farmpad.mac but couldn't figure out how to tell Macroquest that the no pc near turned up a negative value and to go to delay and not continue with the program.
thought of trying
Sub Nopcnear
/if
{/target npc nopcnear 90 "NPC NAME" == TRUE
/delay 150
/call Nopcnear}
/target "NPC NAME"
/return
no idea how to make this work, thanks alot.
