libramBurn: Summon libram items to burn MP between battles
[size=+1]libramBurn 3.01[/size]
In aftercore I seem to generate way more MP than I could possibly use on buffs, so why not summon valuable libram crap instead? I've been using a modified version of Bale's libram summoning script for some time but just got a hair up my ass decided to rewrite the whole shebang. Mainly I added support for Love Songs and BRICKOs and new code for "rotating" your summons between multiple librams and tallying your summons of each. I also import libramBurn into my rollover.ash script to burn MP from my nuns visits/free rests/Oscus' soda etc.
Between each battle if you don't have enough MP to summon you get the line:
Libram summon #26 when MP > 806.
Or if something is summoned it gives your tally for the day:
Libram Summons: [Casts: 65] [Profit: 575,626 meat] --- [Dice: 65]
Installation is pretty simple, download it to your /scripts directory and type in the gCLI:
set betweenBattleScript=libramBurn.ash
call libramBurn.ash (this initializes the variables, so you can adjust them before actually adventuring)
(requires zarqon's zlib)
Settings can be changed via the gCLI:
zlib libramburn_summonhearts = true/false
zlib libramburn_summonfavors = true/false
zlib libramburn_summonsongs = true/false
zlib libramburn_summonbrickos = true/false
zlib libramburn_summondice = true/false
zlib libramburn_summonresolutions = true/false
zlib libramburn_summontaffy = true/false
zlib libramburn_summoninhc = true/false (defaults to false, will not summon in HC/Ronin so you can micromanage your MP)
zlib libramburn_minmp = integer (amount of MP to save IN ADDITION to your autoRecoverMP setting in Mafia)
Using as an import: function libramBurn() will burn your mp, libramBurn_summary() will print out a status line
[size=-3]
Changelog:
2010.04.06 v0.92: Initial release.
2010.04.06 v0.93: Suggestions from Rinn including minor code cleanup, changing minmp to be in addition to mpAutoRecover setting in Mafia and remove abort() functions and change to warnings if you don't have any librams available/selected
2010.07.23 v0.94: Added option to enable/disable the script while in hc/ronin (suggested by Ancientofearth)
2010.08.17 v0.95: Fixed some logic errors with mp cost reducers (thanks to Fluxxdog and heeheehee)
2011.09.11 v0.96: added Gygaxian Libram
2011.11.04 v0.96.1: added libram_profit() function which return approx value of your summons (currently dice/divines only)
2011.11.08 v0.97: changed libram_profit() to calculate actual total profit from each libram item you have summoned today, vaya con dios estimates!
2011.11.08 v0.98: added Libram of Resolutions
2013.01.30 v2.00: Rewrote most of the script. Now utilizes looping over custom libram Records, removing a lot of duplicate code. Should speed up script, make it much easier to maintain, and contain less embarassing code...
2013.02.02 v2.01: Changed verbosity settings for 'Next Summon When' to 3, the zlib default for displaying messages. Most people never change this so were never seeing the 'Next Summon' message
2013.04.01 v2.02: Added Libram of Pulled Taffy
2014.10.13 v2.03: Summon Candy Hearts -> Summon Candy Heart
2016.06.07 v3.00: Rewrote script so new librams should be automatically handled as Mafia supports them
2020.03.21 v3.01: Remove un-needed int_to_string() mafia no longer supports anyway
[/size]
[size=+1]libramBurn 3.01[/size]
In aftercore I seem to generate way more MP than I could possibly use on buffs, so why not summon valuable libram crap instead? I've been using a modified version of Bale's libram summoning script for some time but just got a hair up my ass decided to rewrite the whole shebang. Mainly I added support for Love Songs and BRICKOs and new code for "rotating" your summons between multiple librams and tallying your summons of each. I also import libramBurn into my rollover.ash script to burn MP from my nuns visits/free rests/Oscus' soda etc.
Between each battle if you don't have enough MP to summon you get the line:
Libram summon #26 when MP > 806.
Or if something is summoned it gives your tally for the day:
Libram Summons: [Casts: 65] [Profit: 575,626 meat] --- [Dice: 65]
Installation is pretty simple, download it to your /scripts directory and type in the gCLI:
set betweenBattleScript=libramBurn.ash
call libramBurn.ash (this initializes the variables, so you can adjust them before actually adventuring)
(requires zarqon's zlib)
Settings can be changed via the gCLI:
zlib libramburn_summonhearts = true/false
zlib libramburn_summonfavors = true/false
zlib libramburn_summonsongs = true/false
zlib libramburn_summonbrickos = true/false
zlib libramburn_summondice = true/false
zlib libramburn_summonresolutions = true/false
zlib libramburn_summontaffy = true/false
zlib libramburn_summoninhc = true/false (defaults to false, will not summon in HC/Ronin so you can micromanage your MP)
zlib libramburn_minmp = integer (amount of MP to save IN ADDITION to your autoRecoverMP setting in Mafia)
Using as an import: function libramBurn() will burn your mp, libramBurn_summary() will print out a status line
[size=-3]
Changelog:
2010.04.06 v0.92: Initial release.
2010.04.06 v0.93: Suggestions from Rinn including minor code cleanup, changing minmp to be in addition to mpAutoRecover setting in Mafia and remove abort() functions and change to warnings if you don't have any librams available/selected
2010.07.23 v0.94: Added option to enable/disable the script while in hc/ronin (suggested by Ancientofearth)
2010.08.17 v0.95: Fixed some logic errors with mp cost reducers (thanks to Fluxxdog and heeheehee)
2011.09.11 v0.96: added Gygaxian Libram
2011.11.04 v0.96.1: added libram_profit() function which return approx value of your summons (currently dice/divines only)
2011.11.08 v0.97: changed libram_profit() to calculate actual total profit from each libram item you have summoned today, vaya con dios estimates!
2011.11.08 v0.98: added Libram of Resolutions
2013.01.30 v2.00: Rewrote most of the script. Now utilizes looping over custom libram Records, removing a lot of duplicate code. Should speed up script, make it much easier to maintain, and contain less embarassing code...
2013.02.02 v2.01: Changed verbosity settings for 'Next Summon When' to 3, the zlib default for displaying messages. Most people never change this so were never seeing the 'Next Summon' message
2013.04.01 v2.02: Added Libram of Pulled Taffy
2014.10.13 v2.03: Summon Candy Hearts -> Summon Candy Heart
2016.06.07 v3.00: Rewrote script so new librams should be automatically handled as Mafia supports them
2020.03.21 v3.01: Remove un-needed int_to_string() mafia no longer supports anyway
[/size]
Attachments
Last edited: