Moderator: MacroQuest Developers


Code: Select all
:SampleLoop
/if "$cursor()"!="TRUE" /goto :SampleLoop
/click left auto
Code: Select all
:SampleLoop
/doevents
/if "$cursor()"!="TRUE" /goto :SampleLoop
/click left auto
- Cheese.mac - Renamed to fillet.mac
| * Original by Plazmic *
| * Edited by Yocals, Mon Jun 24, 2002 11:42 pm*
| * Edited by Zeltren, Tue Jun 25, 2002 3:26 pm*
| * Edited By OgreB Whenever
#turbo
Sub Main
/filter skills increase
/filter food off
/filter money off
/filter target off
/stand
/mqlog
/varcalc v50 $char(plat)*10+$char(gold)
/varset t0 3000
/call FindCombiner Baking
/if $return==99 /endmacro
/varset v80 $return
/echo Will now start to make money, you started with $v50gp
| make sure loop is running right
:Loopsub
/varset v37 1
/call Loopsub
/echo Panic
/goto :Loopsub
/return
sub Loopsub
:LOOPSTART
/delay 0
/sendkey
/press esc
/press esc
/press esc
/sendkey up shift
/cleanup
/sendkey down shift
/click left auto
/click right inv $v80
/finditem "Filleting Knife"
/click left auto
/sendkey up shift
/if $pack($v80,empty)==FALSE /call CleanPack
/sendkey down ctrl
/call MakeCheese
/sendkey up ctrl
/press esc
/press esc
/press esc
/varset v37 0
/call SellBuy
/if $t0==0 /call LogStats
/goto :LOOPSTART
/endmacro
/return
Sub CleanPack
/delay 0
/if $pack($v80,open)==FALSE /click right inv $v80
/varcalc v2 $pack($v80,slots)-1
/sendkey down shift
/for v1 0 to $v2
/click left pack $v80 $v1
/click left auto
/next v1
/sendkey up shift
/return
Sub MakeCheese
:MakeCheese
/finditem "Bear Meat"
/click left pack $v80 0
/finditem "Filleting Knife"
/click left pack $v80 1
/if $cursor(value)!=NULL /goto :AutoDropFillet
/if $find()==FALSE /endmacro
/if "$item($v80,0,name)"=="Bear Meat" /if "$item($v80,1,name)"=="Filleting Knife" /gotooCombine
/return
oCombine
/click left pack $v80 combine
/delay 0
:AutoDropFillet
/doevents
/if $cursor(value)!=342 /click left auto
/if $cursor(value)!=342 /goto :AutoDropFillet
/if $cursor(value)==342 /click left auto
/goto :MakeCheese
/return
Sub SellBuy
/if n $v37!=0 /call Loopsub
| Open merchant
/click left auto
| PANIC if holding item!
/if $cursor(value)!=NULL /goto :ITEMINHAND
/target Mordin
/face
/mouseto merchant buy
/press u
/press u
/press u
/delay 30
/sendkey down shift
| Sell our cheese
:SellFillet
/varset v98 $char(gold)
/varset v55 $char(silver)
/varset v56 $char(copper)
/finditem "Filleted Bear"
/if $find()==FALSE /goto :SellBear Meat
/click left merchant buy
/delay 1
:WaitSale
/doevents
/if n $v98!=$char(gold) /goto :SellFillet
/if n $v55!=$char(silver) /goto :SellFillet
/if n $v56!=$char(copper) /goto :SellFillet
/goto :WaitSale
| Sell our Bear Meat
:SellBear Meat
/varset v98 $char(gold)
/varset v55 $char(silver)
/varset v56 $char(copper)
/finditem "Bear Meat"
/if $find()==FALSE /gotooneSelling
/click left merchant buy
/delay 1
:WaitSale3
/doevents
/if n $v98!=$char(gold) /goto :SellBear Meat
/if n $v55!=$char(silver) /goto :SellBear Meat
/if n $v56!=$char(copper) /goto :SellBear Meat
/goto :WaitSale3
oneSelling
| Buy Bear Meats
/delay 0
/click left merchant 11
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/call BuyItem
/sendkey up shift
/mouseto auto
/varset v37 1
/return
Sub LogStats
| Calc profit in gold
/varcalc v51 $char(plat)*10+$char(gold)-$v50
| calc plat/hr
/varcalc v52 $v51*360/$running
| Plat
/varcalc v53 $v51/10
| left over gold
/varcalc v54 $v51%10
/echo Profit: $v53.$v54pp, avg: $v52pp/hr
/mqlog Run time: $running sec, Profit: $v53.$v54pp, Average = $v52pp/hr
/varset t0 3000
/return
Sub FindCombiner
/varset p2 99
/for v99 0 to 7
/if "$pack($v99,combine)"=="$p0" /varset p2 $v99
/next v99
/if $p2==99 /echo You do not seem to have a valid $p0 container.
/return $p2
Sub BuyItem
/varset v98 $char(gold)
/varset v55 $char(silver)
/varset v56 $char(copper)
/click left merchant buy
/delay 1
:WaitBuy
/doevents
/if n $v98!=$char(gold) /goto :Waitend
/if n $v55!=$char(silver) /goto :Waitend
/if n $v56!=$char(copper) /goto :Waitend
/goto :WaitBuy
:Waitend
/return
Code: Select all
Sub MakeCheese
:MakeCheese
/finditem "Bear Meat" 