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

Users > McArine > Macros

McArines Macros

General Info

All the macros are Java based, and are as such platform independent. They're made using Java 1.5, and I don't know if they'll work with previous versions.

They are all meant for expert users, meaning: There are no gui what so ever. If you need to change a variable, you have to do it in the code, and have to recompile.

They are all made using a tool called BlueJ, which is free, and available for Mac, Win and Linux. BlueJ makes it possible to edit, compile and run programs from a gui, without use of a dos shell, or main classes. You can simply call the functions inside the classes as they are. More info on this below.

My macros have been tested on Macs, and WinXP. They should be able to run on any platform that has a Java compiler. There is an issue with Intel Macs. It seems the Mac JVM is not made for Intel Macs, and is therefore being emulated by the system. This causes the system to slow down a lot. Even for dual cores. My testers have experienced that the game misses mouseclicks, on click intensive macros. None of the macros listed here are so "click intensive" that it would cause clicks to be missed by the game. But you never know.

If you have any suggestions, or improvements to the macros, please contact me ingame.

If you think my macros are way too cool, and want to show your appreciation, I accept donations of First Borns, tiles I don't have in my temple, and anything else you feel like giving me ;-)

You are of course using the macros on your own responsibility :-)

And remember, do not leave your macros unattended.

The Macros

Functions

Name: Functions.java

Info: Is needed to run all my macros, it contains important variables and functions.

Usage: You need to edit four variables in this class. The Offset and TimerLocation variables.
Offset is the coordinate for your top left corner of the game area. If you take a building window, and move it to the top left, that's the spot needed. Take a screenshot, and determine the coordinates on your screen, and enter them.
TimerLocation is a location where your timer will appear. Just get a timer going, take a screenshot, determine the coordinates of a light pixel, and enter them in the file.
If you want to test that this works, run the mine macro, it uses both variables.

Clay and Slate

Name: Clay.java and Slate.java

Info: Can be used to gather resources that "disappear" when taken, like clay and slate.

Usage: Find the resource you need, choose "new Clay()", in the drop down menu of the Clay file, place the cursor over the "take" button in the topright corner, preferably on the most prominent color, and hit enter, so the macro starts. Afterwards, the macro will look at the place where the cursor was, and click when the same color appears. You can move about and do whatever you want to do while it runs. When using it for gathering slate, start it with a slate icon besides two other take icons(eg. mud and sand), because the macro looks in two positions, also the same position one icon to the right of where you put your mouse, so it is able to gather when standing on mud only.

Mining

Name: Mining.java

Info: Works a mine. Can do mining for ore, and for gems.

Usage: Not much to it, edit the NumberOfWindows, NumberOfRows, guilded, repaired, gemHunting and numberOfPulls variables, so it fits your mine, and what you want to do.
Stack the mine windows in the top left corner of your screen.
Run setup to position the windows. Then choose run. The macro does not stop when the mine needs repair, so you need to terminate the macro at that time. Terminating the macro can be done by clicking the "running bar" and choose "reset machine".

Atm, the macro does not support mines with percentage, or number of pulls.

Watch timer and click

Name: WatchTimerAndClick.java

Info: Does what the name says.

Usage: Open what you need to do, like making linen. Choose "new WatchTimerAndClick()", move the mouse to the location you want to be pressed when your timer runs out, and press enter. Sometimes it misses a press(only when using the mouse for other things), then just do the action yourselves, and voila it runs again.

BlueJ and Java a short guide

Before you start downloading, go through the steps below, they should help you get the macros going.

Java

Start out by downloading Java SE, JDK 6, latest update (4 atm), for your platform. Then install and follow it's instructions.

BlueJ

Download BlueJ for your platform. Install and follow the instructions.

Then startup BlueJ, is should be able to locate Java by itself. If it isn't give it a hand.

After starting up BlueJ, you should start a new Project, call it Macros. This project will be empty.

Now it is time to start downloading the macros. First download Functions.Java, if you don't it won't work. Place it in the project folder created by BlueJ named Macros. Then download the other macros.

Now close your Macros project in BlueJ and reopen it. The files should now be showing, with black dashes over them. Hit Compile, the dashes should disappear, and you are ready to rock. If they don't there is something wrong, most likely with your Java setup.

Running the macros

Right click on the macro you want to run to get the "New XXX" option. Then follow the guide either above or inside the code of the macro. When I write "then hit enter" the focus should be on BlueJ's create "Create Object" box, with the mouse over what is defined in the guide.

The only macro you need to edit the code in is Mining. You only have to focus on the top 6 variables, and they all carry a description after their current value.


NameCreatorDateSizeDescription
Clay.javaMcArineFebruary 23, 2008 8:27 pm1142
Functions.javaMcArineFebruary 23, 2008 8:27 pm3226
Mining.javaMcArineFebruary 23, 2008 8:50 pm3983
Slate.javaMcArineFebruary 23, 2008 8:27 pm1436
WatchTimerAndClick.javaMcArineFebruary 23, 2008 8:28 pm1542

Home | Atlas | Guides | Tests | Research | Techs | Skills | Index | Recent Changes | Preferences | Login
You must log in to edit pages. | View other revisions
Last edited February 26, 2008 5:23 pm by McArine (diff)
Search: