Moderator: MacroQuest Developers
Code: Select all
Sub Main
/declare vTSCombiner global
| try to find the trade skill combiner
/call FindCombiner "Mortar and Pestle"
/if n @vTSCombiner==99 {
/echo "Could not find trade skill container, exiting."
/endmacro keep keys
}
| open the container we just found
/click right inv @vTSCombiner
/return
Sub FindCombiner
/declare vTemp local
/varset vTSCombiner 99
/for @vTemp 0 to 7
/if "$pack(@vTemp,name)"=="@Param0" /varset vTSCombiner @vTemp
/next @vTemp
/return
Code: Select all
/declare vTSCombiner global Code: Select all
#turbo
Sub Main
:CelEss
/sendkey down ctrl
/finditem "Celestial Solvent"
/if $find()==FALSE /goto :Done
/click left pack 7 0
/finditem "The Scent of Marr"
/if $find()==FALSE /goto :Done
/click left pack 7 1
/sendkey up ctrl
/click left pack 7 combine
:WaitCombine
/if "$cursor()"!="TRUE" /goto :WaitCombine
/click left auto
/goto :CelEss
:Done
/sendkey up ctrl
/click left pack 7 done
/return

Code: Select all
.
.
.
:HitCombine
| hit the combine button on our combiner
/click left pack 7 combine
| wait just a fraction of a second
/delay 1
| if there is still an item in the combiner, the combine didn't work
| and we should try hitting the combine button again.
/if "$item(7,0,name)"!="" /goto :HitCombine
.
.
.
Code: Select all
Sub ItemOnCursor
/declare OnCursorTimer timer
/varset OnCursorTimer 7
:ItemOnWait
/if $cursor()==TRUE /goto :ItemOn
/delay 0
/if n @OnCursorTimer==0 {
/click left
/varset OnCursorTimer 7
/goto :ItemOnWait
}
/goto :ItemOnWait
:ItemOn
/delay 1
/return
Code: Select all
Sub ItemNotOnCursor
/declare NotOnCursorTimer timer
/varset NotOnCursorTimer 7
:ItemNotOnWait
/if $cursor()==NULL /goto :ItemNotOn
/delay 0
/if n @NotOnCursorTimer==0 {
/click left
/varset NotOnCursorTimer 7
/goto :ItemNotOnWait
}
/goto :ItemNotOnWait
:ItemNotOn
/delay 1
/return