unknown405
Active member
- Joined
- Nov 17, 2006
- RedCents
- 100¢
Edited Brewing.mac so it brews to 248.
Created Brew2.mac so it brews to 300.
Brew.mac [Get brewing from 0-248]
Brew2.mac [Get brewing from 248-300]
This one is a little more difficult, see instructions at next post
Brewing.ini
Created Brew2.mac so it brews to 300.
Brew.mac [Get brewing from 0-248]
Rich (BB code):
| Brew.mac version 1.0
|
| Written by Armysoldier
|
| March 5 2006
|
| Modifications:
|
| 26 MAR 2006: moved 2 subs and event declarations to CommonSubs.inc
| 23 NOV 2006: made brewing go up to 248
|
| This new line of tradeskill macros uses the NEW UI and the OLD UI for TS containers
|
| The Macro will attempt to find the recipe using the NEW UI first
| If no recipe is found it will go Old school and do a set of combines
| these macros take into account the SALVAGE function and react accordingly
|
|
| A special thanks to A_Druid_00 for advising on some streamlining modifications
| and to Override for his Tradeskill Code that has been around for so long
| and is the inspiration for this code
|
| Some of the code was pulled from other macros and modified and manipulated
| to do the tasks set forth.
|
| This code is designed for Abysmal Sea
|
| *** FOR THIS CODE TO WORK ***
| You need to Stand between Dray Curves and Galidnus Corkpopper
| You need to be in the first person view
| You need to ensure that when you click the tradeskill container the NEW UI comes up first
| the 5 FILES need to be in the macro\common folder (see includes below)
#include common/sell.inc
#include common/buy.inc
#include common/packs.inc
#include common/cleanpacks.inc
#include common/CommonSubs.inc
Sub Main
/declare OldSkill int outer ${Me.Skill[Brewing]}
/declare SkillMaxWanted int outer
/declare PackCode string outer
/declare Component[10] string outer
/declare i int outer
/declare MerchantNameA string Outer
/declare MerchantNameB string Outer
/declare CombItemName string outer
/declare ItemTo string outer
/declare ItemToB string outer
/declare ItemToC string outer
/declare EndingVar int outer
/declare DelayMult int outer
/declare Container string outer
/declare Checkrecipe string outer
/declare NewUI int outer
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Customize these settings if you want
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/varset MerchantNameA "Galidnus Corkpopper"
/varset MerchantNameB "Dray Cuves"
/varset SkillMaxWanted 248
/varset DelayMult 1
/declare Filename string outer Brewing.ini
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Call Read INI for locations array
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/call ReadINIA ${Filename} "Abysmal Sea"
/if (!${Defined[LocArray]}) {
/echo No Loc Array Created...
/endmacro
}
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Begin
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:start
|--- Check Current Skill against Skill wanted
/echo Brewing is at ${Me.Skill[Brewing]}
/if (${Me.Skill[Brewing]}>=${SkillMaxWanted}) {
/echo Brewing is at ${SkillMaxWanted}. Quiting!
/endmacro
}
/varset CombItemName "MHB"
/varset ItemTo "Minotaur Hero's Brew"
/varset ItemToB "bottle"
/varset ItemToC "cask"
/call ReadIni "${CombItemName}"
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Buy Components
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/varset EndingVar 1
/varset NewUI 1
/target ${MerchantNameA}
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/call OpenPacks
/call Buy "${Component[1]}" 80
/call Buy "${Component[2]}" 240
/call Buy "${Component[3]}" 80
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/echo Buying from ${MerchantNameB}
/target ${MerchantNameB}
/delay 5s ${Target.ID}==${Spawn[${MerchantNameB}].ID}
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/call Buy "${Component[4]}" 180
/call Buy "${Component[5]}" 160
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/call ClosePacks
/echo Moving to the Barrel
/call Movement 1 1 0
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MAKE Items
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nomodkey /itemtarget Brew Barrel notarget
/face item nolook
/click left
/delay 3s ${Window[TradeskillWnd].Open}
/doevents
/delay 3s ${Window[TradeskillWnd].Open}
/if (!${Window[TradeskillWnd].Open}) /nomodkey /click left Item
/delay 3s ${Window[TradeskillWnd].Open}
/call ChooseRecipe
/call ClosePacks
/echo Moving to ${MerchantNameA}
/echo Selling off and starting over
/call Movement 2 2 0
/target ${MerchantNameA}
/delay 5s ${Target.ID}==${Spawn[${MerchantNameA}].ID}
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/call OpenPacks
/call Sell ${ItemTo}
/call Sell ${ItemToB}
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/call ClosePacks
/doevents
/goto :start
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Sub Event Skill up
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_Skillup
/if (${Me.Skill[Brewing]}>${OldSkill}) {
/echo Your Brewing Went Up!! It's now ${Me.Skill[Brewing]}!
/varset OldSkill ${Me.Skill[Brewing]}
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Sub Event No Longer Advance
|used if there are some subcombines that need to be made in some TS
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_Advance
/varset EndingVar 2
/return
Brew2.mac [Get brewing from 248-300]
This one is a little more difficult, see instructions at next post
Rich (BB code):
| Brew2.mac version 1.0
|
| Written by Armysoldier
| Tweaked by UnkNowN
|
| November 24 2006
|
| Modifications: This is completely re-written brew.mac by UnkNowN
| So you can now max out brewing at 300
|
| 24 NOV 2006: Brew2 created. max out brew AFK in Crescent Reach
|
|
| This new line of tradeskill macros uses the NEW UI and the OLD UI for TS containers
|
| The Macro will attempt to find the recipe using the NEW UI first
| If no recipe is found it will go Old school and do a set of combines
| these macros take into account the SALVAGE function and react accordingly
|
|
| A special thanks to A_Druid_00 for advising on some streamlining modifications
| and to Override for his Tradeskill Code that has been around for so long
| and is the inspiration for this code
|
| Some of the code was pulled from other macros and modified and manipulated
| to do the tasks set forth.
|
| This code is designed for Crescent Reach
|
| *** FOR THIS CODE TO WORK ***
| You need to Stand between the brew and Brewmaster Ishaq
| You need to have at least 15 Soda Water [will auto-make 100 if you have less than 15]
| You need to have at least 100 Champagne Magnum
| To make Champagne Magnum see eqtraders.com
| You need to be in the first person view
| You need to ensure that when you click the tradeskill container the NEW UI comes up first
| the 5 FILES need to be in the macro\common folder (see includes below)
#include common/sell.inc
#include common/buy.inc
#include common/packs.inc
#include common/cleanpacks.inc
#include common/CommonSubs.inc
Sub Main
/declare OldSkill int outer ${Me.Skill[Blacksmithing]}
/declare SkillMaxWanted int outer
/declare PackCode string outer
/declare Component[10] string outer
/declare i int outer
/declare MerchantNameA string Outer
/declare MerchantNameB string Outer
/declare MerchantNameC string Outer
/declare CombItemName string outer
/declare ItemTo string outer
/declare EndingVar int outer
/declare DelayMult int outer
/declare Container string outer
/declare Checkrecipe string outer
/declare NewUI int outer
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Customize these settings if you want
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/varset MerchantNameA Brewmaster Ishaq
/varset SkillMaxWanted 300
/varset DelayMult 1
/declare Filename string outer Brewing.ini
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Call Read INI for locations array
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/call ReadINIA ${Filename} "Crescent Reach"
/if (!${Defined[LocArray]}) {
/echo No Loc Array Created...
/endmacro
}
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Begin
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:start
|--- Check Current Skill against Skill wanted
/echo Brewing is at ${Me.Skill[Brewing]}
/if (${Me.Skill[Brewing]}>=${SkillMaxWanted}) {
/echo Brewing is at ${SkillMaxWanted}. Quiting!
/endmacro
}
/if (${FindItemCount[=Soda Water]}<15) {
/varset CombItemName MQSW
/varset ItemTo "Soda Water"
/call ReadIni "${CombItemName}"
/target "${MerchantNameA}"
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/call OpenPacks
/call Buy "${Component[2]}" 100
/call Buy "${Component[1]}" 100
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
} ELSE {
/if (${Me.Skill[Brewing]}>=248 && ${Me.Skill[Brewing]}<=300) {
/echo start making Brut Champagne
/varset CombItemName MQBC
/varset ItemTo Brut Champagne
}
}
/call ReadIni "${CombItemName}"
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Buy Components
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/varset EndingVar 1
/varset NewUI 1
/echo Moving to ${MerchantNameA}
/if (!${CombItemName.Equal[MQSW]}) {
/target "${MerchantNameA}"
/delay 5s ${Target.ID}==${Spawn[${MerchantNameA}].ID}
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/call Buy "${Component[2]}" 300
/call Buy "${Component[4]}" 100
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
}
/call ClosePacks
/echo Opening the Brew Barrel...
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MAKE Items
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nomodkey /itemtarget drop notarget
/face item nolook
/click left item
/doevents
/delay 3s ${Window[TradeskillWnd].Open}
/if (!${Window[TradeskillWnd].Open}) /nomodkey /click left Item
/delay 3s ${Window[TradeskillWnd].Open}
/call ChooseRecipe
/call ClosePacks
/echo Moving to ${MerchantNameA}
/echo Selling off and starting over
/if (${CombItemName.NotEqual[MQSW]}) {
/target ${MerchantNameA}
/delay 5s ${Target.ID}==${Spawn[${MerchantNameA}].ID}
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/call OpenPacks
/call Sell "${ItemTo}"
/call Sell "Brut Champagne"
}
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/call ClosePacks
/doevents
/goto :start
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Sub Event Skill up
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_Skillup
/if (${Me.Skill[Brewing]}>${OldSkill}) {
/echo Your Brewing Went Up!! It's now ${Me.Skill[Brewing]}!
/varset OldSkill ${Me.Skill[Blacksmithing]}
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Sub Event No Longer Advance
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_Advance
/if (${CombItemName.NotEqual[MQSW]}) /varset EndingVar 2
/return
Brewing.ini
Rich (BB code):
[Abysmal Sea]
Value=2
Loc1=-212.82,169.36
Loc2=-167.32,171.46
[Crescent Reach]
Value=1
Loc1=-1152.77,-1613.64
[MHB]
Cont=Enviro
Comp0=yeast
Comp1=malt
Comp2=cask
Comp3=Water flask
Comp4=short beer
Comp5=short beer
Comp6=water flask
Comp7=malt
Comp8=malt
[MQBC]
Cont=Enviro
Comp0=Champagne Magnum
Comp1=Grapes
Comp2=Soda Water
Comp3=Wine Yeast
Comp4=Grapes
Comp5=Grapes
[MQSW]
Cont=Enviro
Comp0=Water Flask
Comp1=Soda
Last edited:

