Cod Oil Macro

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Highlander
a lesser mummy
a lesser mummy
Posts: 51
Joined: Sat Dec 20, 2003 1:26 pm

Cod Oil Macro

Post by Highlander » Mon Dec 29, 2003 1:01 pm

trying ot get this macro to work for cod oil. but it will put water flask in the brew barrel and end macro, for cod oil it takes 1 water flask and 1 cobalt cod and combine in a brew barrel, can someone please help me out here im new at this, thank you

| - codoil.mac -
|
| Please be near a brew barrel open before you start this macro.
|
#turbo
#event CombineFail "You lacked the skills to fashion the items together."
#event CombineSuceed "You have fashioned the items together to create something new!"

Sub Main

/itemtarget Brew Barrel
/face item
/click left item
/delay 25
/sendkey down ctrl

:Makecodoil

/finditem "Water Flask"
/if $find()==FALSE /goto :Done
/click left enviro 0

/finditem "Cobalt Cod"
/if $find()==FALSE /goto :Done
/click left enviro 1


:DoCombine
/varset v61 0
/doevents flush
/varset t9 30s
/click left enviro combine

:Dropcodoil
/doevents
/if n $t9==0 /goto :DoCombine
/if n $v61==0 /goto :Dropcodoil
/doevents flush
/varset t9 0
:WaitCursor
/delay 0
/if $cursor()!=TRUE /goto :WaitCursor
/click left auto
/goto :Makecodoil

:Done
/sendkey up ctrl
/click left enviro done
/return

Sub Event_CombineFail
/varset v61 1
/return

Sub Event_CombineSuceed
/varset v61 1
/return

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Post by MrSmallie » Mon Dec 29, 2003 2:23 pm

http://macroquest2.com/phpBB2/viewtopic ... ombine+mac

Use this macro. It will work. Or this one...
http://macroquest2.com/phpBB2/viewtopic ... ombine+mac

If you don't like them for some reason, look at the way they're built.
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]