- Joined
- May 16, 2007
- Messages
- 202
- Reaction score
- 5
- Points
- 0
- Location
- Las Veags NV, USA
- Website
- unknownerrors.net
I'm working on a macro that will automate a few tasks. i have been looking at macros and includes that deal with tasks and found ome code block that i think will fill in a couple of blanks for me.
can anyoneconfirm that the following code blocks will give me the Task name, zone, and objectives?
and
thanks!
can anyoneconfirm that the following code blocks will give me the Task name, zone, and objectives?
Code:
/declare T int 1
:TaskUpdateNextQuest
/varset TaskName ${Window[TaskWnd].Child[TASK_TaskList].List[${T},2]}
/varset TaskTime ${Window[TaskWnd].Child[TASK_TaskList].List[${T},3]}
/if (${TaskName.Equal[NULL]}) /return
/if (${TaskName.NotEqual[${Quest}]}) {
/varcalc T ${T}+1
/goto :TaskUpdateNextQuest
and
Code:
/varset T 1
:TaskUpdateNextTask
/varset TaskObj ${Window[TaskWnd].Child[TASK_TaskElementList].List[${T},1]}
/varset TaskStat ${Window[TaskWnd].Child[TASK_TaskElementList].List[${T},2]}
/varset TaskZone ${Window[TaskWnd].Child[TASK_TaskElementList].List[${T},3]}
/if (${TaskObj.Equal[NULL]}) /return
/if (${TaskStat.Equal[Done]}) {
/varcalc T ${T}+1
/goto :TaskUpdateNextTask
thanks!