Metal Bits

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

cyberglitch
a lesser mummy
a lesser mummy
Posts: 42
Joined: Wed Jun 26, 2002 4:40 pm

Metal Bits

Post by cyberglitch » Fri Jun 28, 2002 2:59 pm

n/m

Code: Select all

|bits.mac
|
|
Sub Main 
   :MakeBits 
      /sendkey down ctrl 

      /finditem "Small Piece of Ore" 
      /if $find()==FALSE /goto :Done 
      /click left enviro 0 

      /finditem "Small Piece of Ore" 
      /if $find()==FALSE /goto :Done 
      /click left enviro 1 

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

      /sendkey up ctrl
      /click left enviro combine 

      /delay 2 
      /if "$cursor()"=="TRUE" /goto :AutoDropBits 

      /goto :MakeBits 

    :AutoDropBits 
       /click left auto        
       /goto :MakeBits 

   :Done 
    /sendkey up ctrl 

/return 

Code: Select all

| - MBits.mac -
|
|
|
|

#include routines.mac

Sub Main
   :MakeMetalBits
      /sendkey down ctrl

      /finditem "Small Piece of Ore"
      /if $find()==FALSE /goto :MakeStuds
      /click left enviro 0

      /finditem "Small Piece of Ore"
      /if $find()==FALSE /goto :MakeStuds
      /click left enviro 2

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

      /sendkey up ctrl
      /click left enviro combine

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

   /goto :MakeMetalBits

   :AutoDropBits
      /click left auto
   /goto :MakeMetalBits

    :MakeStuds
      /sendkey down ctrl

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

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

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

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

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

      /sendkey up ctrl
      /click left enviro combine

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

      :CheckForStuds
      
      /if "$cursor()"=="TRUE" /goto :AutoDropStuds
      /for v1 1 to 5
         /if "$cursor()"=="TRUE" /goto :AutoDropStuds
      /next v1

   /goto :MakeStuds

   :AutoDropFile
      /click left auto
   /goto :CheckForStuds

   :AutoDropStuds
      /click left auto
   /goto :MakeMetalBits

   :Done
    /sendkey up ctrl

/return

Last edited by cyberglitch on Sat Jun 29, 2002 12:29 pm, edited 3 times in total.

van
a lesser mummy
a lesser mummy
Posts: 37
Joined: Mon Jun 24, 2002 1:04 am

Post by van » Fri Jun 28, 2002 4:11 pm

this script has some wierd things that happens to it (dropped items and hands are full messages for no reason)

look at the post called confused. i posted the one im using. added some loop detection.

cleans it right up..