Macro Guide

Macros are tools that a player may use to repeat a task over and over, such as clicking. Macros are most commonly used for combat or for the Cook and Blacksmith jobs, since those jobs pay for every item crafted *individually*--for example, rather than shift-clicking a stack of bread on a crafting table, the player must individually click each bread in a stack to receive payout for all 64 bread crafted. The materials do not have to be put *onto* the crafting grid each time, nor does each crafted item have to be put away each time, but each item crafted must be clicked individually. Combat macros take advantage of the server's 1.8 combat plugin, which means that damage done to enemies and mobs relies solely on the speed at which the player clicks.

Macros range in function and complexity, but the most commonly used macros on Castia simply involve clicking over and over again. Castia allows **all macros to operate at a maximum of 8 clicks per second.**

There are multiple ways to set up macros, but two simple methods are either using the AHK software or employing the product software included with many gaming mice, especially those produced by Logitech.

## Using Logitech's Mouse Software

Logitech G HUB Gaming Software is compatible with most Logitech products, and can be downloaded for free. For players with Logitech mice, the software allows them to create macro profiles activated by the buttons on the mouse.

### Making the Software Recognize Minecraft

Logitech's software may not automatically detect Minecraft as it may other games on the user's device. To fix this, do the following:

* Open up the Minecraft launcher.
* Launch Minecraft.
* While the game is running, open up Task Manager.
* Right click on the program called "Java(TM) Platform SE Binary."
* Click "Open File Location."
* Copy the exact file path at the top of File Explorer.
* Open the Logitech Gaming Software.
* Navigate to the "customize buttons" tab.
* Click to add a game profile.
* Paste the location you just copied.

The macros themselves can be programmed using that same tab. Click the "+" button next to the table of commands, and select "Multi Key." From there, the player can right-click the empty box and insert a sequence of clicks, which can then be toggle to repeat.

## Using AHK

First, you need to download AHK.

Follow this guide: https://www.computerhope.com/issues/ch001845.htm

### Creating a Script

Base Document: Create a text document on your desktop and open it up.

Cook Or Blacksmith?: Choose one of the macros below, for the job you're needing a macro for, and copy+paste it into the text document.

Cook

```
SetMouseDelay,-1

F8::
Click 1355, 440
Sleep 115
Click 1470, 44
Return

```
Blacksmith

```
SetMouseDelay,-1

F8::
Click 1355, 440
Sleep 230
Click 1470, 440
Return

```

### Adjusting Your Coordinates And Activation Key

First choose the key you want to activate the script, replace the F8 with the key you wish to use.

Here comes the hard part, adjusting the coordinates to your monitor/resolution and GUI Scale, this can be done using AHK's own script (Look at the guide below this) or a free tool like *Screen Coordinates Tool*, which is dowloadable with a fine guide here:

http://breakthrusoftware.com/html/onlinedocs/kb/installkb/ScreenCoordTool.html

You can also choose to do this, as the last step, by playing around with the coordinates until you hit the right spot. *The ones displayed are set up for a 1920x1080 resolution, GUI Scale 3 and non-fullscreen with crafting book opened*

### Making the Script

Go to your document and click Files -> Saves as -> Save as type -> All Files Edit the File name to YourFileName.ahk and save your script to your preferred location.

Now you can delete your base document, if you wish to.

### Using the Script

You have your script! it should look like a paper with a folded corner and a large H in the middle.

To use the script simple double click the icon and press the key you have chosen to activate the script. The standard key is F8.

*Note: If you're having issues try running the script as administrator.*