Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 26

Thread: Pyromania - mana burning fine tuning

  1. #1
    Developer jasonharper's Avatar
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    1,122

    Default Pyromania - mana burning fine tuning

    This relay script exposes the hidden settings used by mafia's excess mana burning mechanism, that are too fiddly/limited-use to belong in the built-in UI. To use:
    * Make sure you're using KoLmafia revision 8871 or higher; this won't do anything useful on earlier versions.
    * Put this script in your relay folder.
    * Put htmlform.ash in your script folder, if you don't have it already.
    * Look for 'pyromania' in the script popup, in the top pane of the relay browser.

    Skills are now categorized by class, and display the associated effect's icon (with a tooltip showing its modifiers in most cases), so it should be a lot easier to find a specific skill. Your mana burning preferences as set in mafia are now summarized at the top of the page.

    Revision history:
    0.1 - initial release.
    0.2 - categorize, iconize, summarize.
    0.3 - small fix for mafia changes by Bale
    Attached Files
    Last edited by Bale; 03-09-2017 at 06:41 PM. Reason: updated script
    In game: Seventh (#363053), originally a Seal clubber. I am the Ap'ostle of Ak'gyxoth! (Or is that Ap'ostrophe?)

  2. #2
    Senior Member Fluxxdog's Avatar
    Join Date
    Nov 2009
    Posts
    1,501

    Default

    This is used in combination with the HP/MP usage on the adventure tab, correct? I have a question for clarity:
    Code:
    Minimum burnable mana with nothing to burn it on before the CLI command below will be executed (default 100)
    If I have 1000 max MP, have it set recast down to 50% (500 MP), and all my effects are at maximum leaving me with 623 MP left, then the command would trigger? Using the echo example given, it would print "You need to do something with 123 MP", right?

    Another question regarding the update in general, does it handle the skills in numerical order? Would Empathy be cast before Leash?
    --
    The worst crime you can commit against another human being is to make them think.

  3. #3
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    Woot! This is very useful.

    Level 0 buffs only need 5% since they're so cheap to get tons and I oftimes find myself wasting mana on them.
    skillBurn1000 => -95
    skillBurn2000 => -95
    skillBurn3000 => -95
    skillBurn4000 => -95
    skillBurn5000 => -95
    skillBurn6000 => -95

    AT Buffs shouldn't burn too much since I oftimes need to replace them.
    skillBurn6003 => -94
    skillBurn6004 => -94
    skillBurn6005 => -94
    skillBurn6006 => -94
    skillBurn6007 => -94
    skillBurn6008 => -94
    skillBurn6009 => -94
    skillBurn6010 => -94
    skillBurn6011 => -94
    skillBurn6012 => -94
    skillBurn6013 => -94
    skillBurn6017 => -94
    skillBurn6018 => -94
    skillBurn6027 => -94

    I like to use Jingle Bells and Curiosity in small doses during a run.
    skillBurn2025 => -98
    skillBurn2026 => -98

    The Flavor of magic is cheap to change whenever.
    skillBurn3101 => -90
    skillBurn3102 => -90
    skillBurn3103 => -90
    skillBurn3104 => -90
    skillBurn3105 => -90
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  4. #4
    Developer jasonharper's Avatar
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    1,122

    Default

    Fluxxdog: the settings apply both to automatic burning as set in the HP/MP tab, and to any "burn" commands you use.

    Yes, you've got it right on the last-chance CLI command.

    The skills are listed in ID order in this script (and really need to be organized better), but extension is still performed in increasing order of the remaining turns of the effect they give. That's largely irrelevant, since the goal of the mana burner is to extend them all to the same number of turns (now modified by their individual percentages) - if there's enough burnable MP for multiple casts, it will be spread around rather than letting one effect get way ahead of the rest.
    In game: Seventh (#363053), originally a Seal clubber. I am the Ap'ostle of Ak'gyxoth! (Or is that Ap'ostrophe?)

  5. #5
    Developer roippi's Avatar
    Join Date
    Aug 2010
    Posts
    2,663

    Default

    This is fantastic, thank you.

  6. #6
    Senior Member Fluxxdog's Avatar
    Join Date
    Nov 2009
    Posts
    1,501

    Default

    Cool, thanks
    --
    The worst crime you can commit against another human being is to make them think.

  7. #7

    Default

    r8872.

    This seems nice, but it does not work for me. Is that because I have "Always, if mana > 90%; burn -55" in my mood and that is bypassing this change? Or is it something else?

  8. #8
    Developer jasonharper's Avatar
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    1,122

    Default

    In what way does it not work? Your mood-triggered burn is a bit unusual, but seems like it should work as long as you don't have any automatic MP restoration that would take you above 55 MP (you're bypassing the built-in protection against an infinite burn - restore - burn loop).
    In game: Seventh (#363053), originally a Seal clubber. I am the Ap'ostle of Ak'gyxoth! (Or is that Ap'ostrophe?)

  9. #9
    Developer jasonharper's Avatar
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    1,122

    Default

    New version of the script in the first post; no new functionality, but it should be easier to use now, and explains exactly what your current burning settings will do (especially in the case where a high MP autorecovery trigger level is preventing your burn-to setting from being honored).
    In game: Seventh (#363053), originally a Seal clubber. I am the Ap'ostle of Ak'gyxoth! (Or is that Ap'ostrophe?)

  10. #10
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default

    Small bug. Lines 31-32 confuse trig with thresh. It should actually be...

    Code:
    	} else if (thresh < 0) {
    		write("Automatic mana burning is disabled in your preferences, so these settings will only affect the gCLI \"burn\" command.");
    Theres some related weird feedback on line 34. It's just weird to say it will burn mana at -5%. It might make more sense like this...

    Code:
    		write("Your HP/MP Usage preferences are set to ");
    		if (trig >=0)
    			write("attempt mana burning whenever your MP reaches " + trig + "% of your maximum.  ");
    		else
    			write("immediately attempt mana burning.  ");
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


Similar Threads

  1. Replies: 0
    Last Post: 09-26-2014, 11:23 PM
  2. Replies: 1
    Last Post: 09-02-2012, 04:45 AM
  3. Replies: 0
    Last Post: 06-04-2010, 08:52 AM
  4. Breakable equipment fine tuning
    By jasonharper in forum Item Handling Scripts
    Replies: 1
    Last Post: 03-22-2010, 02:51 PM
  5. Mana Burning
    By Jt in forum Community Support
    Replies: 8
    Last Post: 08-07-2008, 02:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •