KoLmafia Guide: Attack Script: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
No edit summary
imported>SinginSally
No edit summary
Line 4: Line 4:
For now, either stick with weapon-attack, or casting a low MP offensive spell.
For now, either stick with weapon-attack, or casting a low MP offensive spell.


You can click in the bar below that lableled 'Special:' to set up any special beginning-of-fight actions. For example, as a Moxie-Class, an option is for Mafia to automatically pickpocket all non-bosses if you win initiative. If you are a moxie-class, pick this option. You can also autocast Noodles (if you don't have the skill, nothing will happen). When selected, a corresponding symbol shows up in the Special Box.
You can click in the bar below labeled 'Special:' to set up conditional beginning-of-fight actions. For example, as a Moxie-Class, an option is for Mafia to automatically pickpocket all non-bosses if you win initiative. If you are a moxie-class, pick this option. You could also tell Mafia to always cast Entangling Noodles. When selected, a corresponding symbol shows up in the Special Box.  Note that the option is ignored if you don't meet the requirements (for example, asking for Noodles when you don't have the skill).


: [[File:Lesson4 actions.png]]
: [[File:Lesson4 actions.png]]
Line 15: Line 15:
: [[File:Lesson4 KolCbt.png]]
: [[File:Lesson4 KolCbt.png]]


3) The script will execute, which will pickpocket if possible (if you are a Moxie class, noodle if Myst,etc.), and then spam the default action until the fight is over. Cool huh? No more clicking the Attack button 6 times every fight! If you run out of mana, it will try to recover mana or default to a weapon attack. (more on this later).
3) The script will execute, which will pickpocket if possible (if you are a Moxie class, noodle if Myst,etc.), and then spam the default action until the fight is over. Cool huh? No more clicking the Attack button 6 times every fight! If you run out of mana, it will default to a weapon attack. (more on this later).


You will notice the fight will go a lot faster too in that it will appear to 'skip rounds'. This is because KoLMafia can send commands and receive results back faster than your browser will refresh. Hence a 12 round fight may only take 3 or 4 refreshes. This speeds up fighting significantly.
You will notice the fight will go a lot faster too in that it will appear to 'skip rounds'. This is because KoLMafia can send commands and receive results back faster than your browser will refresh. Hence a 12 round fight may only take 3 or 4 refreshes. This speeds up fighting significantly.  It is also easier on the server.


BOTTOM LINE: You can save clicks and lag by using the Script button to fight easy battles for you.


Continue to [[KoLmafia Guide: Custom Combat Script|Lesson 5: Custom Combat Script]]
'''BOTTOM LINE:''' You can save clicks and reduce lag by using the Script button to fight easy battles for you.
 
'''Continue''' to [[KoLmafia Guide: Custom Combat Script|Lesson 5: Custom Combat Script]]


[[Category:KoLmafia Guide]]
[[Category:KoLmafia Guide]]

Revision as of 16:43, 28 April 2010

Now we are going to fight a foe using a Mafia script instead of our standard method. It is very easy!

1) In the Mafia frame with the Adventure Top Tab active, on the far right there is a pulldown that is labeled 'Action:'. It defaults to 'Attack with Weapon'. Not surprisingly, when auto-combat is activated the script will keep attacking until the combat is over. By clicking this pulldown, you can choose several other options, based on what your character has available. For example, you can have it spam Thrust-Smack, or cast a spell, or whatever. For now, either stick with weapon-attack, or casting a low MP offensive spell.

You can click in the bar below labeled 'Special:' to set up conditional beginning-of-fight actions. For example, as a Moxie-Class, an option is for Mafia to automatically pickpocket all non-bosses if you win initiative. If you are a moxie-class, pick this option. You could also tell Mafia to always cast Entangling Noodles. When selected, a corresponding symbol shows up in the Special Box. Note that the option is ignored if you don't meet the requirements (for example, asking for Noodles when you don't have the skill).


2) In your relay browser, go fight something easy but takes a few rounds to kill. If you use Combat Action Bars, click the 'Script' button.

If you don't use action bars, Mafia adds several buttons for easier combat and the 'Script' will be one of them.

3) The script will execute, which will pickpocket if possible (if you are a Moxie class, noodle if Myst,etc.), and then spam the default action until the fight is over. Cool huh? No more clicking the Attack button 6 times every fight! If you run out of mana, it will default to a weapon attack. (more on this later).

You will notice the fight will go a lot faster too in that it will appear to 'skip rounds'. This is because KoLMafia can send commands and receive results back faster than your browser will refresh. Hence a 12 round fight may only take 3 or 4 refreshes. This speeds up fighting significantly. It is also easier on the server.


BOTTOM LINE: You can save clicks and reduce lag by using the Script button to fight easy battles for you.

Continue to Lesson 5: Custom Combat Script