I proudly present my first work here (plus my first post, too): a script for those times between when you're inflicting violence upon your foes, when you renew your buffs, patch your wounds, and get roaring drunk on seltzer. This is a patchwork of the BetweenFights script of Presto Ragu, the MP-purchasing script of Illarion, and extensive revisions and hole-patching by myself, and includes a healing-skill selector.
The script first heals you (via skills, then items, then Doc or resting), then casts buffs to chew up 80% of your max MP (restoring MP as necessary to cast each individual buff, but skipping any buffs you already have), then restores your MP to 90% of maximum (via existing items, then purchase or resting). Since I can't tell whether the user has finished Doc's quest, there's no way to tell if Doc is cheaper than soda water. (EDIT: I stole cjswimmer's quest checker, and this script and Illarion's script now check to see if the Doc is cheaper.)
This script is usable in hardcore, as it ignores buffbots and the mall.
There are two basic user-modified areas: selecting skills to self-buff with (choose any number of them, and the script will gain MP as needed to cast them), and choosing whether you spend a single meat on anything.
Attached are my main script, and the modifications I made to Illarion's script to allow its major method to be called after importing it. (I renamed the previous main() function to payForMP(), and created a new main() that simply calls payForMP() once. The file itself has been slightly renamed to avoid any conflicts with the previous version.) This script also uses Presto Ragu's RestorerSelector, found over here.
EDIT: After glancing at the blue snowcone thread, I saw that I can ignore a cli_execute failure if I assign it to a variable. Therefore, relaxing to restore MP now works.
Also, this script used the Quest Checker, found over here.
The script first heals you (via skills, then items, then Doc or resting), then casts buffs to chew up 80% of your max MP (restoring MP as necessary to cast each individual buff, but skipping any buffs you already have), then restores your MP to 90% of maximum (via existing items, then purchase or resting). Since I can't tell whether the user has finished Doc's quest, there's no way to tell if Doc is cheaper than soda water. (EDIT: I stole cjswimmer's quest checker, and this script and Illarion's script now check to see if the Doc is cheaper.)
This script is usable in hardcore, as it ignores buffbots and the mall.
There are two basic user-modified areas: selecting skills to self-buff with (choose any number of them, and the script will gain MP as needed to cast them), and choosing whether you spend a single meat on anything.
Attached are my main script, and the modifications I made to Illarion's script to allow its major method to be called after importing it. (I renamed the previous main() function to payForMP(), and created a new main() that simply calls payForMP() once. The file itself has been slightly renamed to avoid any conflicts with the previous version.) This script also uses Presto Ragu's RestorerSelector, found over here.
EDIT: After glancing at the blue snowcone thread, I saw that I can ignore a cli_execute failure if I assign it to a variable. Therefore, relaxing to restore MP now works.
Also, this script used the Quest Checker, found over here.