brewing to 151 help

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Dirtface
a lesser mummy
a lesser mummy
Posts: 39
Joined: Tue Nov 12, 2002 2:43 am

brewing to 151 help

Post by Dirtface » Thu Nov 14, 2002 12:04 am

Took the existing three macros, combined them into one, checking for skill and giving the appropriate recipe for skill level.

Whats happening is it makes headys just fine. When its time to do fish wine, it makes one fish wine (or 3, as it yeilds 3) and then ends the macro, saying that it couldnt find kiola sap.

**EDIT** Fixed the code. Had to rename the second :autodrop. Fixed.
| - Brewing.mac -

#include routines.mac
#turbo

Sub Main
| Initialisation
/press ctrl
/press shift
/press alt


| Main Loop
/itemtarget Brew Barrel
/face item
/click left item
/varset v98 $char(skill,Brewing)
/if n $v98<45 /goto :Makeheady
/if n $v98<61 /goto :Makefishwine
/if n $v98<151 /goto :Makeskull
/goto :Done

:Makeheady
/sendkey down ctrl

/finditem "Packet of Kiola Sap"
/if $find()==FALSE /goto :Done
/click left enviro 0

/finditem "Packet of Kiola Sap"
/if $find()==FALSE /goto :Done
/click left enviro 1

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

/finditem "Bottle"
/if $find()==FALSE /goto :Done
/click left enviro 3

/sendkey up ctrl
/click left enviro combine

/if "$cursor()"=="TRUE" /goto :AutoDrop
/for v1 1 to 5
/delay 2
/if "$cursor()"=="TRUE" /goto :AutoDrop
/next v1

/goto :Makeheady

:AutoDrop
/click left auto
/doevents
/goto :Makeheady

:Done
/sendkey up ctrl

/click left enviro done

/return

:Makefishwine
/sendkey down ctrl

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

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

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

/finditem "Bottle"
/if $find()==FALSE /goto :Done
/click left enviro 3

/sendkey up ctrl
/click left enviro combine

/if "$cursor()"=="TRUE" /goto :AutoDrop
/for v1 1 to 5
/delay 2
/if "$cursor()"=="TRUE" /goto :AutoDrop
/next v1

/goto :Makefishwine

:AutoDrop
/click left auto
/doevents
/goto :Makefishwine

:Done
/sendkey up ctrl

/click left enviro done

/return

:Makeskull
/sendkey down ctrl

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

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

/finditem "Short Beer"
/if $find()==FALSE /goto :Done
/click left enviro 2

/finditem "Cyclops Skull"
/if $find()==FALSE /goto :Done
/click left enviro 3

/sendkey up ctrl
/click left enviro combine

/for v1 1 to 10
/delay 1
/if "$cursor()"=="TRUE" /goto :AutoDropAle
/next v1

/goto :Makeskull

:AutoDropAle
/if "$cursor(name)"=="Cyclops Skull" /goto :AutoDropSkull
/click left auto
/delay 1
/if "$cursor()"=="TRUE" /goto :AutoDropAle

:AutoDropSkull
/click left auto
/if "$cursor()"=="TRUE" /goto :AutoDropSkull
/doevents
/goto :Makeskull

:Done
/sendkey up ctrl

/click left enviro done

/return
Any help?