Search: Home | Atlas | Guides | Tests | Research | Techs | Skills | Index | Recent Changes | Preferences | Login

Users > Shabaka > Macro > Mining

//Per.mac, MineOK.mac and GemObjs.mac must be downloaded to actool/macros for this to work
//Resolution of 1440 X 900
//Place Guilded and repaired min at top left
//If it is not guilded or repaired place down 1 or two button widths before starting
//'Take...' menu is pinned a couple pixels below the PerEnd timer
//Created by Shabaka you may chat me in game with questions.

//These files should be in your 'Macros' folder withing the 'actool' folder
Include Per.mac //Includes the Object containing the Percemtion timer
Include MineOK.mac //Includes the Object containing the Mine OK button
Include GemObjs.mac //Includes Object containing the Gem Sizes text
ClearGlobalKeys //Clears all buttons recently pressed from memory
loop 100000

	If {globalkeys} contains 090 //if Z is pressed
		clearglobalkeys //clears global keys so it can be activated again in the same run
		keydown {BACK} //presses back so that the letter pressed doesn't end up in your chat
		pause 1 min //gives enough time to shut down the macro if something goes bad
		end if
	If {globalkeys} contains 088 //if X is pressed
		clearglobalkeys //clears global keys so it can be activated again in the same run
		keydown {BACK} //presses back so that the letter pressed doesn't end up in your chat
		mousepos 1433, 148 //clicks on your total mined thing to check your progress
		leftclick
		end if	

	IsObject MineOK at 696, 534 //has a gem been found?
			Isobject SmallGem at 755, 427 //if it is it a small gem
				bell asterisk //deep sound
				delay 250 //delay 1/4 seconds
			else //if it's not a small gem
				Isobject MediumGem at 747, 427 //if it a medium gem
					bell asterisk //deep sound
					delay 250 //delay 1/4 seconds
					bell asterisk //deep sound
					delay 250 //delay 1/4 seconds
				else //if it's not a medium or small gem
					Isobject LargeGem at 754, 427 //if it is a large gem
						bell asterisk //deep sound
						delay 250 //delay 1/4 seconds
						bell asterisk //deep sound
						delay 250 //delay 1/4 seconds
						bell asterisk //deep sound
						delay 250 //delay 1/4 seconds
					else //if it is a huge gem
						bell exclamation //high pitched sound
						delay 250 //delay 1/4 seconds
					end
				end
			end		
		mousepos 721, 547 //clicks the OK button when a gem is found
		leftclick
		delay 250 //delay 1/4 seconds
	Else //if there's no gem
		delay 250 //delay 1/4 seconds and check again
	End

	IsObject Per at 1336, 76 //if your perception timer is on
  	delay 250 //wait 1/4 seconds and check again
	Else //if it's not on
  	mousepos 75, 108 //click the Work this Mine button
  	leftclick
  	delay 250 //delay 1/4 seconds
	End
End

NameCreatorDateSizeDescription
GemObjs.macShabakaOctober 10, 2007 7:22 am2678Gem size objects
MineOK.macShabakaOctober 10, 2007 7:23 am2475The gem found window's OK button object
Per.macShabakaOctober 10, 2007 7:23 am3219Perception timer object

Home | Atlas | Guides | Tests | Research | Techs | Skills | Index | Recent Changes | Preferences | Login
This page is read-only | | Create/Edit another page | View other revisions
Last edited October 10, 2007 7:27 am by Shabaka (diff)
Users must be logged in to edit this page.
Search: