StaticcachedStaticcachedStaticSAVED_Add an "abort" step to this macro.
This object itself.
Adds an "abort" step to this macro, with a warning message to print
The warning message to print
This object itself.
Add an attack step to the macro.
This object itself.
Conditionally add a step to a macro based on a condition evaluated at the time of building the macro.
This object itself.
Add one or more item steps to the macro, and automatically attempting to funksling as many of the items as possible. This function does not check if you can funksling or not.
Items to use.
This object itself.
Add an "if" statement to this macro.
The BALLS condition for the if statement.
Continuation if the condition is true.
This object itself.
Create an if_ statement based on what holiday of loathing it currently is. On non-holidays, returns the original macro, unmutated.
The macro to place in the if_ statement
This macro with supplied macro wapped in if statement matching holiday wanderers
Add an "if" statement to this macro, inverting the condition.
The BALLS condition for the if statement.
Continuation if the condition is true.
This object itself.
Create an if_ statement based on what holiday of loathing it currently is. On non-holidays, returns the original macro, with the input macro appended.
The macro to place in the if_ statement.
This macro with supplied macro wrapped in if statement matching monsters that are not holiday wanderers
Add one or more item steps to the macro.
Items to use. Pass a tuple [item1, item2] to funksling.
This object itself.
Gives your macro a new name to be used when saving an autoattack.
The name to be used when saving as an autoattack.
The macro in question
Add a repeat step to the macro.
Optionalcondition: PreBALLSPredicateThe BALLS condition for the repeat statement, optional.
This object itself.
Add a "runaway" step to this macro.
This object itself.
Save a macro to a Mafia property for use in a consult script.
Set this macro as a KoL native autoattack.
Renames the macro, then sets it as an autoattack.
The name to save the macro under as an autoattack.
Add one or more skill cast steps to the macro.
Skills to cast.
This object itself.
Statefully add one or several steps to a macro.
The steps to add to the macro.
This object itself.
Submit the built macro to KoL. Only works inside combat.
Contents of the fight page after macro submission
Convert macro to string.
BALLS macro
Add one or more item steps to the macro, where each step checks to see if you have the item first, and automatically attempting to funksling as many of the items as possible. This function does not check if you can funksling or not.
Items to use.
This object itself.
Add one or more item steps to the macro, where each step checks to see if you have the item first.
Items to try using. Pass a tuple [item1, item2] to funksling.
This object itself.
Add one or more skill cast steps to the macro, where each step checks if you have the skill first.
Skills to try casting.
This object itself.
Add one or more skill-cast-and-repeat steps to the macro, where each step checks if you have the skill first.
Skills to try repeatedly casting.
This object itself.
Add a "while" statement to this macro.
The BALLS condition for the while statement.
Loop to repeat while the condition is true.
This object itself.
StaticabortStaticabortStaticattackStaticclearClear all cached autoattacks, and delete all stored macros server-side.
StaticclearClear the saved macro in the Mafia property.
StaticexternalStaticfunkslingCreate a new macro with one or more item steps, and automatically attempting to funksling as many of the items as possible. This function does not check if you can funksling or not.
Items to use.
This object itself.
Staticif_StaticifStaticifStaticifStaticitemStaticloadStaticmakeThe BALLS condition or a type to make a condition for (Monster, Item, Skill, etc.)
The BALLS condition string
StaticrenameStaticrunawayStaticskillStaticstepStatictryCreate a new macro with one or more item steps, where each step checks to see if you have the item first, and automatically attempting to funksling as many of the items as possible. This function does not check if you can funksling or not.
Items to use.
This object itself.
StatictryCreate a new macro with one or more item steps, where each step checks to see if you have the item first.
Items to try using. Pass a tuple [item1, item2] to funksling.
This object itself.
StatictryStatictryStaticwhile_
BALLS macro builder for direct submission to KoL. Create a new macro with
new Macro()and add steps using the instance methods. Uses a fluent interface, so each step returns the object for easy chaining of steps. Each method is also defined as a static method that creates a new Macro with only that step. For example, you can doMacro.skill('Saucestorm').attack().