• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

What is the mq command to check to see if you have a specific task? (1 Viewer)

thenameless

Member
Joined
Jun 19, 2005
RedCents
594¢
What is the mq command to check to see if you have a specific task?
I am wanting to make sure that i have a certian task from a taskmaster before going off and doing the rest of the macro and i was wondering if there was a command to check the tasks you already have aginst some text
 
came up with this:
Rich (BB code):
#Event ReceiveTask "You have been assigned the task#*#" 

/declare ReceivedTask string outer 

Sub Event_ReceiveTask 
/varset ReceivedTask 1 
/return 

Sub TaskWait 
/varset ReceivedTask 0 
:RTWLoop 
/delay 4 
/doevents 
/if (${ReceivedTask}==1) /goto :RTWLoopEnd 
/goto :RTWLoop 
:RTWLoopEnd 
/return
 
Yep that should work. Mine uses the actual TaskWindow, but since it is GUI driven you must have the window opened for it to work. Your's will work no matter what.
 
If you look at the basic advpath.mac ... you can populate variables from your events. #1# is the wildcard.

Rich (BB code):
#event PlayFile "[MQ2] playfile #1#"

#include advpath.inc

Sub Main
  /call InitAPFVars 1 15 20
  /squelch /alias /startrec /echo record
  /squelch /alias /stoprec  /echo stop
  /squelch /alias /playfile /echo playfile
  :Main_Loop
  /call AdvPathPoll
  /delay 5
  /doevents
  /goto :Main_Loop
/return

Sub WaitTilThere
  :LoopTilThere
  /if (${PathingFlag}==1) {
    /call AdvPathPoll
    /delay 1
    /doevents
    /goto :LoopTilThere
  }
/return

Sub Event_PlayFile(string Line, string PathFile)
  /call PlayFunction "${PathFile} 1 nf nopp noz"
  /call WaitTilThere
/return

now you can apply this to your task mac and add a /if to determine if you have a specific task.
 
What is the mq command to check to see if you have a specific task?

Users who are viewing this thread

Back
Top