Macro depository for macros written before the user variable changes that broke all of them.
Moderator: MacroQuest Developers
-
wassup
- Official Guardian and Writer of TFM

- Posts: 1487
- Joined: Sat Oct 26, 2002 5:15 pm
Post
by wassup » Sun May 25, 2003 6:02 am
Nothing fancy, but works quite well. It will perform 20 combines. I changed it so that you can modify a setting to save the Brew or desroy the brew. It will still save the unused cask and destroy the bottles on a failure.
Code: Select all
| - Hero.mac -
|
| Description: Performs 20 Minotaur Hero Brew combines.
|
| If the combine succeeds the Minotaur Hero Brew is either destroyed or saved depending on
| what you have the SaveBrew variable set to.
|
| You can set the SaveBrew variable to 0 or 1.
|
| 0 will destroy the brew and the 2 bottles for each combine
| 1 will save the brew and destroy the 2 bottles for each combine
|
| If the combine fails the cask is placed back in the container and slot
| where it was taken from, then the 2 bottles are destroyed
|
| Make sure you have Fastdestroy set on otherwise the macro will fail.
|
|
| You will also need to adjust the x y coordinated of the container slots for the components,
| the initial cask, and the vertical shift value.
|
| The way I had my containers set was in the upper left corner, side by side. This was so I could get the
| same positioning every time I used the macro.
|
|
| Components | Brew Barrel | Cask Container | Cask Container | Inventory Window
| 1 6 1 6 1 6 1 6
| 2 7 2 7 2 7 2 7
| 3 8 3 8 3 8 3 8
| 4 9 4 9 4 9 4 9
| 5 10 5 10 5 10 5 10
|
| The bottom of my inventory window was aligned with the bottom of the 2nd cask container.
|
| It's nothing fancy, but does do the combines fairly quickly. The delay values may need
| to be adjusted based on your system performance and where you are performing the
| combines.
|
|
| Useage: /macro hero
|
| I am hoping that if the ability to use bag slots is completed, this macro can be fairly easily edited to
| use those functions.
|
#define DelayValue v40
#define CaskX v41
#define CaskY v42
#define DestroyX v44
#define DestroyY v45
#define CombineCount v43
#define VerticalShift v46
#define AutoX v47
#define AutoY v48
#define SaveBrew v49
|Set the Success and Fail combine event text
#event CombineFail "You lacked the skills to fashion the items together."
#event CombineSucceed "You have fashioned the items together to create something new!"
Sub Main
|Set to 0 to destroy brew, 1 to save brew
/varset SaveBrew 0
|Set the location of the first cask in the first container
/varset CaskX 173
/varset CaskY 55
|Set the x y coordinate of the Destroy Button
/varset DestroyX 547
/varset DestroyY 220
|Set the x y coordinate of the auto-equip area
/varset AutoX 395
/varset AutoY 115
|Set the vertical shift value
/varset VerticalShift 30
|Set the delay value
/varset DelayValue 1
|Set the initial Combine count to 1
/varset CombineCount 1
/sendkey down ctrl
:CombineLoop
|Get first malt
/mouseto 24 55
/call ClickLeft
/mouseto 97 55
/call ClickLeft
|Get second malt
/mouseto 24 87
/call ClickLeft
/mouseto 97 87
/call ClickLeft
|Get third malt
/mouseto 24 118
/call ClickLeft
/mouseto 97 118
/call ClickLeft
|Get yeast
/mouseto 24 150
/call ClickLeft
/mouseto 97 150
/call ClickLeft
|Get first water
/mouseto 24 182
/call ClickLeft
/mouseto 97 182
/call ClickLeft
|Get second water
/mouseto 53 55
/call ClickLeft
/mouseto 129 55
/call ClickLeft
|Get first short beer
/mouseto 53 87
/call ClickLeft
/mouseto 129 87
/call ClickLeft
|Get second short beer
/mouseto 53 118
/call ClickLeft
/mouseto 129 118
/call ClickLeft
|Get first cask
/mouseto $CaskX $CaskY
/call ClickLeft
/mouseto 129 150
/call ClickLeft
|Click Combine Button
/doevents flush
/mouseto 111 213
/click left
/delay 5
|Test the combine
/doevents
/if n $CombineCount<21 /goto :CombineLoop
/sendkey up ctrl
/endmacro
/return
Sub Event_CombineFail
/varadd CombineCount 1
/mouseto $CaskX $CaskY
/call ClickLeft
/call Destroy
/return
Sub Event_CombineSucceed
|Check if Brew is to be saved
/if n $SaveBrew==1 {
/call ClickAuto
}
/if n $SaveBrew==0 {
/call Destroy
}
|Destroy the bottles regardless
/call Destroy
|Vertical Shift to the next cask location in the container
/varadd CaskY $VerticalShift
|Increment the number of casks used
/varadd CombineCount 1
|Select the first cask in consecutive columns of the containers
|Column 2
/if n $CombineCount==6 {
/varset CaskX 203
/varset CaskY 55
}
|Column 3
/if n $CombineCount==11 {
/varset CaskX 248
/varset CaskY 55
}
|Column 4
/if n $CombineCount==16 {
/varset CaskX 280
/varset CaskY 55
}
/return
|Click Destroy Button Function
sub Destroy
/mouseto $DestroyX $DestroyY
/click left
/delay 7
/return
sub ClickLeft
/click left
/delay $DelayValue
/return
sub ClickAuto
/mouseto $AutoX $AutoY
/call ClickLeft
/return
Feel free to modify the above and please post any changes that others may find useful.
Thanks to McKorr and Pigeon for the help with a few things I had wrong.
Last edited by
wassup on Sun May 25, 2003 2:25 pm, edited 1 time in total.
-
kagonis
- a hill giant

- Posts: 228
- Joined: Sat May 24, 2003 8:48 pm
Post
by kagonis » Sun May 25, 2003 6:52 am
Funny, I just made a similar script overnight, anyway, it is a semi automatic script.
It requires that the components are in the right slots and in the right containers etc.
Other than that it will simply combine untill one of the components runs out.
Look at the layout on attacked screenshot below, running in 1280x1024 (scaled down).
Very messy code, just made it to work with my setup.
Code: Select all
#define Cask1 v1
#define Cask2 v2
#define Cask3 v3
#define Cask4 v4
#define Cask5 v5
#define Cask6 v6
#define Cask7 v7
#define Cask8 v8
#define Cask9 v9
#define Cask10 v10
#define Water1 v11
#define Water2 v12
#define Water3 v13
#define Water4 v14
#define Water5 v15
#define Water6 v16
#define Water7 v17
#define Water8 v18
#define Water9 v19
#define Water10 v20
#define Beer1 v21
#define Beer2 v22
#define Beer3 v23
#define Beer4 v24
#define Beer5 v25
#define Beer6 v26
#define Beer7 v27
#define Beer8 v28
#define Beer9 v29
#define Beer10 v30
#define Yeast1 v31
#define Yeast2 v32
#define Yeast3 v33
#define Yeast4 v34
#define Yeast5 v35
#define Malt1 v36
#define Malt2 v37
#define Malt3 v38
#define Malt4 v39
#define Malt5 v40
#define Malt6 v41
#define Malt7 v42
#define Malt8 v43
#define Malt9 v44
#define Malt10 v45
#define Malt11 v46
#define Malt12 v47
#define Malt13 v48
#define Malt14 v49
#define Malt15 v50
#define Brew1 v51
#define Brew2 v52
#define Brew3 v53
#define Brew4 v54
#define Brew5 v55
#define Brew6 v56
#define Brew7 v57
#define Brew8 v58
#define Brew9 v59
#define Brew10 v60
#define BrewComb v61
#define BrewDone v62
#define BtnDestroy v63
#define BeerCount v64
#define WaterCount v65
#define MaltCount v66
sub Main
/varset Cask1 "1105 120"
/varset Cask2 "1145 120"
/varset Cask3 "1105 160"
/varset Cask4 "1145 160"
/varset Cask5 "1105 200"
/varset Cask6 "1145 200"
/varset Cask7 "1105 240"
/varset Cask8 "1145 240"
/varset Cask9 "1105 280"
/varset Cask10 "1145 280"
/varset Water1 "1005 120"
/varset Water2 "1045 120"
/varset Water3 "1005 160"
/varset Water4 "1045 160"
/varset Water5 "1005 200"
/varset Water6 "1045 200"
/varset Water7 "1005 240"
/varset Water8 "1045 240"
/varset Water9 "1005 280"
/varset Water10 "1045 280"
/varset Beer1 "905 120"
/varset Beer2 "945 120"
/varset Beer3 "905 160"
/varset Beer4 "945 160"
/varset Beer5 "905 200"
/varset Beer6 "945 200"
/varset Beer7 "905 240"
/varset Beer8 "945 240"
/varset Beer9 "905 280"
/varset Beer10 "945 280"
/varset Yeast1 "845 120"
/varset Yeast2 "845 160"
/varset Yeast3 "845 200"
/varset Yeast4 "845 240"
/varset Yeast5 "845 280"
/varset Malt1 "805 120"
/varset Malt2 "805 160"
/varset Malt3 "805 200"
/varset Malt4 "805 240"
/varset Malt5 "805 280"
/varset Malt6 "705 120"
/varset Malt7 "745 120"
/varset Malt8 "705 160"
/varset Malt9 "745 160"
/varset Malt10 "705 200"
/varset Malt11 "745 200"
/varset Malt12 "705 240"
/varset Malt13 "745 240"
/varset Malt14 "705 280"
/varset Malt15 "745 280"
/varset Brew1 "625 570"
/varset Brew2 "665 570"
/varset Brew3 "625 610"
/varset Brew4 "665 610"
/varset Brew5 "625 650"
/varset Brew6 "665 650"
/varset Brew7 "625 690"
/varset Brew8 "665 690"
/varset Brew9 "625 730"
/varset Brew10 "665 730"
/varset BrewComb "645 765"
/varset BrewDone "645 790"
/varset BtnDestroy "1015 805"
:combine
/press Ctrl
/press Shift
/press Alt
/call chkCursor
/delay 1
/call Cask
/call Yeast
/varset BeerCount 0
/call Beer
/varset BeerCount 1
/call Beer
/varset WaterCount 0
/call Water
/varset WaterCount 1
/call Water
/varset MaltCount 0
/call Malt
/varset MaltCount 1
/call Malt
/varset MaltCount 2
/call Malt
/mouseto $BrewComb
/delay 1
/click left
/call chkCursor
/goto :combine
/return
sub chkCursor
/if "$cursor()"=="TRUE" {
:Check
/if "$cursor(name)"!="Cask" {
/if "$cursor(name)"~~"Yeast" /click left auto
/if "$cursor(name)"~~"Short Beer" /click left auto
/if "$cursor(name)"~~"Water Flask" /click left auto
/if "$cursor(name)"~~"Malt" /click left auto
/mouseto $BtnDestroy
/delay 1
/click left
/delay 1
} else {
/mouseto $Brew1
/delay 1
/click left
}
/if "$cursor()"=="TRUE" /goto :Check
}
/return
sub Cask
/if "$cursor()"=="TRUE" /call chkCursor
/mouseto $Brew1
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"=="TRUE" {
/call chkCursor
} else {
:Cask1
/mouseto $Cask1
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask2
}
/call chkCursor
/goto :CaskEnd
:Cask2
/mouseto $Cask2
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask3
}
/call chkCursor
/goto :CaskEnd
:Cask3
/mouseto $Cask3
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask4
}
/call chkCursor
/goto :CaskEnd
:Cask4
/mouseto $Cask4
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask5
}
/call chkCursor
/goto :CaskEnd
:Cask5
/mouseto $Cask5
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask6
}
/call chkCursor
/goto :CaskEnd
:Cask6
/mouseto $Cask6
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask7
}
/call chkCursor
/goto :CaskEnd
:Cask7
/mouseto $Cask7
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask8
}
/call chkCursor
/goto :CaskEnd
:Cask8
/mouseto $Cask8
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask9
}
/call chkCursor
/goto :CaskEnd
:Cask9
/mouseto $Cask9
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" {
/goto :Cask10
}
/call chkCursor
/goto :CaskEnd
:Cask10
/mouseto $Cask10
/sendkey down Shift
/click left
/delay 1
/sendkey up Shift
/if "$cursor()"!="TRUE" /goto :NoCask
/call chkCursor
/goto :CaskEnd
:NoCask
/echo No more Casks
/endmacro
:CaskEnd
}
/return
sub Yeast
:Yeast1
/mouseto $Yeast1
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Yeast2
}
/if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /call Cask
}
/goto :YeastEnd
}
/echo There was no Yeast in the selected Yeast slot.
/endmacro
:Yeast2
/mouseto $Yeast2
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Yeast3
}
/if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /call Cask
}
/goto :YeastEnd
}
/echo There was no Yeast in the selected Yeast slot.
/endmacro
:Yeast3
/mouseto $Yeast3
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Yeast4
}
/if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /call Cask
}
/goto :YeastEnd
}
/echo There was no Yeast in the selected Yeast slot.
/endmacro
:Yeast4
/mouseto $Yeast4
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Yeast5
}
/if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /call Cask
}
/goto :YeastEnd
}
/echo There was no Yeast in the selected Yeast slot.
/endmacro
:Yeast5
/mouseto $Yeast5
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" /goto :NoYeast
/if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor(name)"~~"Yeast" {
/mouseto $Brew2
/click left
/delay 1
/if "$cursor()"=="TRUE" /call Cask
}
/goto :YeastEnd
}
/echo There was no Yeast in the selected Yeast slot.
/endmacro
:NoYeast
/echo No more Yeast
/endmacro
:YeastEnd
/return
sub Beer
:Beer1
/mouseto $Beer1
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer2
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer2
/mouseto $Beer2
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer3
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer3
/mouseto $Beer3
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer4
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer4
/mouseto $Beer4
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer5
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer5
/mouseto $Beer5
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer6
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer6
/mouseto $Beer6
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer7
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer7
/mouseto $Beer7
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer8
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer8
/mouseto $Beer8
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer9
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer9
/mouseto $Beer9
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Beer10
}
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:Beer10
/mouseto $Beer10
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" /goto :NoBeer
/if "$cursor(name)"~~"Short Beer" {
/if n "$BeerCount"==0 /mouseto $Brew3
/if n "$BeerCount"==1 /mouseto $Brew4
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :BeerHmm
/goto :BeerEnd
}
/echo There was no Short Beer in the selected Short Beer slot.
/endmacro
:BeerHmm
/echo Something is wrong with where the Short Beer are supposed to be.
/endmacro
:NoBeer
/echo No more Short Beer
/endmacro
:BeerEnd
/return
sub Water
:Water1
/mouseto $Water1
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water2
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water2
/mouseto $Water2
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water3
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water3
/mouseto $Water3
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water4
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water4
/mouseto $Water4
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water5
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water5
/mouseto $Water5
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water6
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water6
/mouseto $Water6
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water7
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water7
/mouseto $Water7
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water8
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water8
/mouseto $Water8
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water9
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water9
/mouseto $Water9
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Water10
}
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:Water10
/mouseto $Water10
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" /goto :NoWater
/if "$cursor(name)"~~"Water Flask" {
/if n "$WaterCount"==0 /mouseto $Brew5
/if n "$WaterCount"==1 /mouseto $Brew6
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :WaterHmm
/goto :WaterEnd
}
/echo There was no Water Flask in the selected Water Flask slot.
/endmacro
:WaterHmm
/echo Something is wrong with where the Water Flask are supposed to be.
/endmacro
:NoWater
/echo No more Water Flask
/endmacro
:WaterEnd
/return
sub Malt
:Malt1
/mouseto $Malt1
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt2
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt2
/mouseto $Malt2
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt3
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt3
/mouseto $Malt3
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt4
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt4
/mouseto $Malt4
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt5
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt5
/mouseto $Malt5
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt6
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt6
/mouseto $Malt6
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt7
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt7
/mouseto $Malt7
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt8
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt8
/mouseto $Malt8
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt9
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt9
/mouseto $Malt9
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt10
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt10
/mouseto $Malt10
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt11
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt11
/mouseto $Malt11
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt12
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt12
/mouseto $Malt12
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt13
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt13
/mouseto $Malt13
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt14
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt14
/mouseto $Malt14
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" {
/goto :Malt15
}
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:Malt15
/mouseto $Malt15
/sendkey down Ctrl
/click left
/delay 1
/sendkey up Ctrl
/if "$cursor()"!="TRUE" /goto :NoMalt
/if "$cursor(name)"~~"Malt" {
/if n "$MaltCount"==0 /mouseto $Brew7
/if n "$MaltCount"==1 /mouseto $Brew8
/if n "$MaltCount"==2 /mouseto $Brew9
/click left
/delay 1
/if "$cursor()"=="TRUE" /if "$cursor()"=="TRUE" /goto :MaltHmm
/goto :MaltEnd
}
/echo There was no Malt in the selected Malt slot.
/endmacro
:MaltHmm
/echo Something is wrong with where the Malt are supposed to be.
/endmacro
:NoMalt
/echo No more Malt
/endmacro
:MaltEnd
/return

-
wassup
- Official Guardian and Writer of TFM

- Posts: 1487
- Joined: Sat Oct 26, 2002 5:15 pm
Post
by wassup » Sun May 25, 2003 2:36 pm
Would do it for your own protection if I were you.