Clan Lord MacrosBasic Macro Instructions A macro is a tool which reduces the amount of work you need to do while playing Clan Lord. Macros are intended to serve as a role-playing aid and make general interaction more interesting. Now we’ll get right to introducing how you use macros. First, there should be a macro folder in the folder in which ClanLord is located. Inside this folder you should find a file for each of your characters, as well as one called “Default”. If you don’t have these, run ClanLord and join the game. As you join, these files and folders will be created. You can learn more about how these files work in the manual. For now all you need to know is that Clan Lord loads the macros in the file named after the character you are playing. For example, if your character’s name is “Joe”, then the client will look for a file called “Joe” inside a folder called “Macros” which in turn should be within the same folder as the Clan Lord client itself. Simple MacrosIn Clan Lord, a macro has two parts: the “trigger”, which tells Clan Lord when to run the macro, and the “commands”, which tell it what to do. There are two different ways to declare a macro: the short form and the long form. For the simplest ones, you can write everything on one line:
For example:
This probably looks odd to you, so let’s see what is going on: The After that comes the word Now look at the Now what the heck is that You type aa jumps over the stream. (Return) The macro makes things act like you typed: /action jumps over the stream. (Return) So what if there is no Now let’s look at the second most common type of macro trigger, a key macro: Trigger command
First, notice that the You press the Shift and F1 keys at the same time; the macro makes things act as if you’d typed:
Commenting LinesYou might want to write things in your text file that you don’t want Clan Lord to interpret as macros. These are called comments, and you begin any line with // to have Clan Lord ignore it.
More Complex MacrosWith the knowledge you now have you can save yourself a lot of typing, but macros also have more powerful features. To use them we must delve a little deeper, and master the complex macro form.
The first two macros can be rewritten in this form also. Notice that they only have one command (which is to send text):
You’ve probably guessed that there are more commands than just typing text (otherwise, why would we need this beast?) The most important thing to note is that you can only have one command per line. Let’s introduce another command with an example:
As we learned before, text can be a command.
You can put as many clauses in quotation marks
or variables (we call You type: slash Beral The macro makes things act like you typed: /action slashes upward with his sword, striking Beral. (Return) Then it waits for 3 frames before continuing with... Take that! (Return) This is quite a bit more than we typed in! And that’s the power of macros. You now know the basics of how to make macros. The manual includes more detailed information, but you can learn a lot by looking at the default and example macro files. |