|-taskmaster.mac
|-Author: Alatyami, Redguides.com Moderator
|-Description: This macro will automate short tasks received from the task-
|- masters using /zone and /warp. This is not a complete AFK macro.
|- You still have to select the task from one of the taskmasters.
|- Once the task is added, the macro will take over.
|-Requirements: MQ2Zone or equiv /zone
|- MQ2Warp or equiv /warp loc
|- Exp_Tracking.inc
|------------------------------------------------------------------------------|
#include Exp_Tracking.inc
#Event lookout "You have been assigned the task 'Lookout Below'."
#Event caves "You have been assigned the task 'Scary Caves'."
#Event mystic "You have been assigned the task 'Mystic Ring'."
#Event giant "You have been assigned the task 'Giant Expedition'."
#Event finished "#*#You gain #*#"
sub Main
/echo Starting Taskmaster w/ XP Tracking!
/call ExpPrep
/echo Waiting for a task ...
:waiting
/doevents
/goto :waiting
/return
sub Event_lookout
/echo Detected Task: Lookout Below!
/call GMCheck |- Macro will not continue if there is a GM present.
/echo you have 20 seconds until the task is started.
/delay 20s
/zone karnor
/delay 30s
/warp loc 130.67, -54.19, 34.52
/delay 5s
/zone dreadlands
/delay 30s
/target nexus
/delay 5s
/warp target
/delay 5s
/zone firiona
/delay 30s
/target telligron
/delay 2s
/hail
/doevents
/return
sub Event_caves
/echo Detected Task: Scary Caves!
/call GMCheck |- Macro will not continue if there is a GM present.
/echo you have 20 seconds until the task is started.
/delay 20s
/zone karnor
/delay 20s
/warp loc -75.23, -270.15, 6.54
/echo Part 1 Completed!
/delay 5s
/zone dreadlands
/delay 30s
/warp loc -2489.65, 3527.45, 716.25
/echo Part 2 Completed!
/delay 5s
/zone frontiermtns
/delay 30s
/target shilur
/delay 2s
/hail
/doevents
/return
sub Event_mystic
/echo Detected Task: Mystic Rings!
/call GMCheck
/echo you have 20 seconds until the task is started.
/delay 20s
/echo Stage 1: Explore Karnor's Castle.
/zone karnor
/delay 30s
/warp loc 99.05, -420.49, 1.5
/echo Stage 1 Completed!
/delay 5s
/zone dreadlands
/delay 30s
/echo Stage 2: Explore the DL Druid Rings
/delay 5s
/warp loc 2516.27, 7723.75, 1047.97
/echo Stage 2 Completed!
/delay 5s
/zone firiona
/delay 30s
/echo Stage 3: Hailing Socaldoor
/target socaldoor
/delay 2s
/hail
/echo Mystic Ring is completed!
/doevents
/return
sub Event_giant
/echo Detected Task: Giant Exedition!
/call GMCheck
/echo You have 20 seconds until the task is started.
/delay 20s
/echo Stage 1: Explore Karnor's Castle
/zone karnor
/delay 30s
/warp loc 228.92, -218.05, -11.33
/delay 2s
/zone dreadlands
/delay 30s
/echo Stage 2: Explore the Giant Outpost
/warp loc -502.15, 1891.73, 310.91
/delay 2s
/zone frontiermtns
/delay 30s
/echo Stage 3: Hail Shilu Scaletine
/target Shilur
/hail
/doevents
/delay 2s
/zone dreadlands
/return
sub GMCheck
/if (${Bool[${Spawn[gm].ID}]}) {
/echo A GM or Guide has been detected. Waiting for five minutes to check again ...
/delay 300s
/goto :GMCheck
}
/return
sub Event_finished
/call ExpTrack
/return