This is my first non-trivial script so please be kind. I'm sure much of it could be done better .
This script works in Halas and DOES IT ALL. It sells all mino brews (and bottles) , buys all needed components and then brews them all together (and repeats). It got me to 200 (my max) in no time but I'm sure it will get you to 248 in no time too.
There are some caveats when using this script:
1. Not sure if it works for shorter races - merchants are behind tables, you need to see them. Get levitate maybe.
2. Must be done in halas. The one room with 3 brewing merchants and the brew barrel. It works nowhere else.
3. Have as many open slots in your inventory as you can. 8 empty 10-slot containers is perfect.
4. It is smart about knowing when you're out of stuff and doesnt leave junk in the brew barrel - but right now it simply sells back excess yeast, malt, etc after a brewing session. You may lose a few siilver per brewing session than doing this by hand.
5. It is smart about filling your inventory with as many casks as possible except for two slots to hold your final products
6. At lower levels (150+) you will run out of ingredients like yeast before you run out of casks. You might need to tweak how much it buys of each to be optimal. It should work as written now regardless though. At high levels, you run out of casks and sell back a few yeasts each time.
7. Keep an eye on it.. i give this to the world with no guarantee. I hope it works for you but if it sells you 8 tinker bags - oh well. It worked perfect for me.
8. I had plenty of trouble with the delays and I know there are better ways to do some of those things. These delays worked for me, some better checking for merchants being active could be coded
ENJOY!
Chaos
[[ Apparently L124RD thinks code is spelled coed... /boggle l124rd ]]
[[ who likes code brackets? L124RD likes code brackets...]]
Code: Select all
#include routines.mac
| Written by CHAOS
| Ultimate Mino Brew Brewing script for HALAS ONLY
Sub Main
| Open merchant
:StartHere
/call GotoTarg "Hetie Mcdonald"
/delay 5
/call SellItem "Minotaur Hero's Brew"
/delay 15
/call Sellitem "bottle"
/delay 15
/call Sellitem "yeast"
/delay 15
/call Sellitem "malt"
/delay 15
/call Sellitem "water flask"
/delay 15
/call Sellitem "short beer
/delay 7
/target "Hetie Mcdonald"
/click right target
/delay 15
| buy water
/click left merchant 3
/delay 4
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/delay 4
/press esc
/press esc
/delay 11
/call GotoTarg "Brandyn McDonald"
/target "Brandyn McDonald"
/click right target
/delay 15
| short beer
/click left merchant 0
/delay 3
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/delay 5
/press esc
/press esc
/delay 11
| yeast and malt
/call GotoTarg "Becka McGuzzlin"
/target "Becka McGuzzlin"
/click right target
| /press u
/delay 7
| yeast
/click left merchant 4
/delay 3
/call BuyStuff
/call BuyStuff
/call BuyStuff
| malt
/delay 4
/click left merchant 3
/delay 5
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/call BuyStuff
/delay 5
| casks
/delay 6
/click left merchant 9
/delay 3
:NotherCask
/click left merchant buy
/delay 3
/if n $freeinv(space)>2 /goto :NotherCask
/press esc
/press esc
/delay 9
/itemtarget Brew Barrel
/face item
/call GotoLoc 223,-145
/face item
/click left item
/call MakeBrew
/delay 5
/press esc
/delay 2
/press esc
/delay 2
/press esc
/delay 3
/goto :StartHere
/return
Sub BuyStuff
/delay 3
/sendkey down shift
/click left merchant buy
/sendkey up shift
/return
Sub MakeBrew
:MakeMore
/sendkey down ctrl
/delay 3
/if n $count("Malt")<3 {
/echo Ran outta Malt
/goto :Done
}
/if n $count("Water Flask")<2 {
/echo Ran outta Water
/goto :Done
}
/if n $count("Short Beer")<2 {
/echo Ran outta Short Beer
/goto :Done
}
/if n $count("Yeast")<1 {
/echo Ran outta Yeast
/goto :Done
}
/if n $count("Cask")<1 {
/echo Ran outta Casks
/goto :Done
}
/finditem "Malt"
/if $find()==FALSE /goto :Done
/click left enviro 0
/finditem "Malt"
/if $find()==FALSE /goto :Done
/click left enviro 1
/finditem "Malt"
/if $find()==FALSE /goto :Done
/click left enviro 2
/finditem "Yeast"
/if $find()==FALSE /goto :Done
/click left enviro 3
/finditem "Water Flask"
/if $find()==FALSE /goto :Done
/click left enviro 4
/finditem "Water Flask"
/if $find()==FALSE /goto :Done
/click left enviro 5
/finditem "Short Beer"
/if $find()==FALSE /goto :Done
/click left enviro 6
/finditem "Short Beer"
/if $find()==FALSE /goto :Done
/click left enviro 7
/finditem "Cask"
/if $find()==FALSE /goto :Done
/click left enviro 8
/delay 1
/sendkey up ctrl
/click left enviro combine
/delay 6
/click left auto
/delay 3
/click left auto
/delay 3
/goto :MakeMore
:Done
/sendkey up ctrl
/return



