Page 188 of 238 FirstFirst ... 88 138 178 186 187 188 189 190 198 ... LastLast
Results 1,871 to 1,880 of 2380

Thread: Universal Recovery Script

  1. #1871

    Default

    Hello.
    This script doesn't seem to know about CSA all-purpose soap, which is quite good for restoring large amounts of mana (while basementing, for example). I've checked recoveryScript_map_v2 file and it doesn't appear there.

  2. #1872
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,535

    Default

    UR does not supply a correct meatpermp value for Zombie Slayers, which in turn causes BatBrain to behave badly during ZS runs. I hackishly made it work by adding

    if (zombie) return have_skill($skill[summon horde]) ? 80 : 100;

    at the top of meatpermp(), and a similar set-meatpermp-and-return at the top of best_mall(). You have a more thorough knowledge of the script and may know a better way to do it.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossnam | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | CanAdv | Script Registry | Map Manager | About Bats
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  3. #1873
    Senior Member Winterbay's Avatar
    Join Date
    Feb 2010
    Posts
    5,033

    Default

    Isn't it better to add a new case? Like:
    Code:
        case zombie:
            return have_skill($skill[summon horde]) ? "80" : "100"
    My scripts:
    Best sushi for Profit
    Winterbay's Helpful Automatic Monsterbasher (WHAM)

    Scripts maintained by me:
    Autobasement
    Smashlib

    A small programmer joke:
    Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
    The man came back with 6 bottles of milk.
    Wife: Why did you buy 6 bottles of milk.
    Man: Because they had eggs...

    The 6 Stages of Debugging: 1 )That can't happen. 2) That shouldn't happen. 3) Hmmm, weird. 4) Why does that happen? 5) Oh, I see. 6 )How did that ever work?

    All programs can be optimized, and all programs have bugs; therefore all programs can be optimized to one line that doesn’t work. /Bob Fitch, Blizzard

  4. #1874
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    True... here's my tweaked version of 1855.
    Code:
    string meatpermp() {
    	switch {
    	case zombie:
    		return (have_skill($skill[summon horde]) ? "80.0" : "100.0");
    	case buy_mmj:
    Code:
    float meatperhp() {
    	if(zombie)
    		return (100.0 / (my_maxhp() / (zombie ? 8 : 10)));
    	if(galaktik_cures_discounted() && contains_text(hpAutoRecoveryItems, "curative nostrum"))

  5. #1875
    Junior Member
    Join Date
    Feb 2011
    Posts
    9

    Default

    Suddenly Universal_recover stopped working properly for me:

    Restoring HP! Currently at 3708 of 5760 HP, 1368 of 4064 MP, current meat: 857223 ... Target HP = 5760.
    Purchasing Medicinal Herb's medicinal herbs (1 @ 100)...
    You acquire an item: Medicinal Herb's medicinal herbs
    You spent 100 Meat
    Purchases complete.
    Purchasing Medicinal Herb's medicinal herbs (1 @ 100)...
    You acquire an item: Medicinal Herb's medicinal herbs
    You spent 100 Meat
    Purchases complete.
    Purchasing Medicinal Herb's medicinal herbs (1 @ 100)...
    You acquire an item: Medicinal Herb's medicinal herbs
    You spent 100 Meat
    Purchases complete.
    Did not fully restore HP for some reason.

  6. #1876
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Wild guess... your spleen is full and somehow mafia has gotten out of sync. Try a refresh all and see if that fixes it maybe.

  7. #1877

    Default

    Or just "refresh status", if it's spleen being out of sync.

  8. #1878
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Part of the refresh all was because inventory is also apparently out of sync, since it keeps buying more when you already still have, since it wasn't able to use them when you were already over-spleen...

  9. #1879
    Junior Member
    Join Date
    Jan 2007
    Posts
    28

    Default

    To fix compatability with most recent nightly build, you need to change line 1683 and 1684 to

    case $monster[naughty sorceress]:
    case $monster[naughty sorceress (2)]:

  10. #1880
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Did you mean to post that in the UR script thread? My UR doesn't have NS1 or NS2 mentioned... anywhere.

Similar Threads

  1. Anecdote - Recovery Script not firing between auto-adventures?
    By fronobulax in forum Community Support
    Replies: 1
    Last Post: 02-20-2015, 07:36 PM
  2. Replies: 0
    Last Post: 09-21-2013, 05:50 PM
  3. what are all the ways mafia can consult a script? like recovery, breakfast
    By forgot my password in forum Scripting Discussion
    Replies: 5
    Last Post: 06-11-2009, 09:05 PM
  4. Recovery Script for Hardcore
    By Bale in forum Buff Upkeep Scripts
    Replies: 84
    Last Post: 03-04-2009, 08:17 AM
  5. Very New, Need a MP Recovery Script
    By Willie0248 in forum Scripting Discussion
    Replies: 2
    Last Post: 04-15-2006, 09:30 PM

Posting Permissions

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