Page 2 of 21 FirstFirst 1 2 3 4 12 ... LastLast
Results 11 to 20 of 205

Thread: auto BHH and friends

  1. #11
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,574

    Default Re: auto BHH and friends

    You might be able to try a cli_execute("refresh")... (or "status refresh" or "refresh charsheet" or whatever the cli command is) I know whenever I'm in the middle of something and hit the little refresh button on the character pane, mafia completes what I'm doing before refreshing the info. I sometimes take advantage of that if I'm adventuring in the browser and reach something where I'd rather mafia handle it (like the louvre for instance). Just a thought.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | 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 | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  2. #12

    Default Re: auto BHH and friends

    Thanks, I'll give that a shot tomorrow.

    (I just got my tome yesterday, so I'm excited to try all these Oflaction scripts out).

    EDIT: FYI, it didn't work today. It choked on the choiceadventures in the Airship. So the script borks on choiceadvenures, whether or not they are "no cost" choice adventures.

    My first adventure was the Random Lack on an Encounter choiceadventure, and I properly got the Mech via the chioceadventure. Olfaction wasn't cast, but I'd expect the script to work that way and only cast Olfaction at the start of a normal combat adventure and not a choice adventure. But after the combat, the script aborted. I thought my session log would contain the error message, but alas, it doesn't, and I've forgotten it. I'll try again

    Anyway, I am at a loss. I played around some, calling the go_adventure function on the poop deck and Olfacting the wealthy pirates. That worked fine, and handled the choice adventure fine, getting me El Vibrato Spheres in accord with my choiceadv preference. (I'm using the daily builds, obviously, since a 12.2 hasn't rolled out yet to deal with the KoL item-screen changes).

    So, to sum, as it appears to me, adventure(1, here) (and presumably Paragon's cli-execute) appears to handle some choiceadventures fine. But, at least in the context of this script, it doesn't handle those that choose a combat encounter or those that choose a no-adventure-loss option. I can't figure out why. Am I crazy and missing something?

    If Veracity is reading this script, I saw somewhere (maybe the main forums) that she thought it would be reasonable to program mafia to not cast Olfaction if On The Trail is up. I haven't seen that in the daily build summaries, but if that programming does make it in, it probably obviates the problem here, since a mature ccs could then handle Olfaction.

  3. #13
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,412

    Default Re: auto BHH and friends

    [quote author=Mighty Xerxes link=topic=1473.msg7193#msg7193 date=1202935656]
    If Veracity is reading this script, I saw somewhere (maybe the main forums) that she thought it would be reasonable to program mafia to not cast Olfaction if On The Trail is up. I haven't seen that in the daily build summaries, but if that programming does make it in, it probably obviates the problem here, since a mature ccs could then handle Olfaction.[/quote]
    I rarely read peoples' scripts, but I do tend to read forum threads here. Well, I scan them, at least, to see if there's something that needs to be fixed that isn't too much work.

    OK, revision 5743 will skip casting Trancendent Olfaction in a CCS if you are already On the Trail. I tested it by adding a CCS entry for the raver giant after I selected today's bounty. It worked great. I should augment my CCS file to have the rest of the bounty monsters...
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  4. #14

    Default Re: auto BHH and friends

    [quote author=Veracity link=topic=1473.msg7206#msg7206 date=1203054789]

    I rarely read peoples' scripts, but I do tend to read forum threads here. Well, I scan them, at least, to see if there's something that needs to be fixed that isn't too much work.

    OK, revision 5743 will skip casting Trancendent Olfaction in a CCS if you are already On the Trail. I tested it by adding a CCS entry for the raver giant after I selected today's bounty. It worked great. I should augment my CCS file to have the rest of the bounty monsters...
    [/quote]

    Thanks much!

    And I did mean "this thread", not "this script". A bad proofreader is me.

  5. #15

    Default Re: auto BHH and friends

    To save others some work, here is something to start with for your ccs file. I made a few assumptions, in that I generally didn't tag a monster for 40 turn bounties, except (I think) dairy goats. I tagged the shaky clown, because that's what I figure I will tag if I'm doing that bounty in low level HC.

    Code:
    [Knob Goblin Barbecue Team]
    1: skill olfaction
    2: attack
    
    [shaky clown]
    1: skill olfaction
    2: attack
    
    [hobo]
    1: skill olfaction
    2: attack
    
    [gearhead]
    1: skill olfaction
    2: attack
    
    [albino bat]
    1: skill olfaction
    2: attack
    
    [possessed can]
    1: skill olfaction
    2: attack
    
    [triffid]
    1: skill olfaction
    2: attack
    
    [weretaco]
    1: skill olfaction
    2: attack
    
    [bean counter]
    1: skill olfaction
    2: attack
    
    [mariachi calavera]
    1: skill olfaction
    2: attack
    
    [filthy hippy]
    1: skill olfaction
    2: attack
    
    [smarmy pirate]
    1: skill olfaction
    2: attack
    
    [white knight]
    1: skill olfaction
    2: attack
    
    [kobold]
    1: skill olfaction
    2: attack
    
    [dairy goat]
    1: skill olfaction
    2: attack
    
    [MagiMechTech MechaMech]
    1: skill olfaction
    2: attack
    
    [Raver Giant]
    1: skill olfaction
    2: attack
    
    [sommelier]
    1: skill olfaction
    2: attack

  6. #16

    Default Re: auto BHH and friends

    When i used the "auto bountyhunting.ash" it choosed the burned-out arcanodiode and it just used like 20,000 adventures before it was finished. Could you fix this? And how do you choose witch item you should choose first and second and third and... (if it is available)?

  7. #17
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,574

    Default Re: auto BHH and friends

    I recently learned you can use "default" in your ccs to make it jump to your [ default ] section. So here's Xerxes' bounty-hunting ccs from above, with "default" subbed in to make it more all-purpose.

    Code:
    [ default ]
    1: attack
    
    [ Knob Goblin Barbecue Team ]
    1: skill olfaction
    2: default
    
    [ shaky clown ]
    1: skill olfaction
    2: default
    
    [ hobo ]
    1: skill olfaction
    2: default
    
    [ gearhead ]
    1: skill olfaction
    2: default
    
    [ albino bat ]
    1: skill olfaction
    2: default
    
    [ possessed can ]
    1: skill olfaction
    2: default
    
    [ triffid ]
    1: skill olfaction
    2: default
    
    [ weretaco ]
    1: skill olfaction
    2: default
    
    [ bean counter ]
    1: skill olfaction
    2: default
    
    [ mariachi calavera ]
    1: skill olfaction
    2: default
    
    [ filthy hippy ]
    1: skill olfaction
    2: default
    
    [ smarmy pirate ]
    1: skill olfaction
    2: default
    
    [ white knight ]
    1: skill olfaction
    2: default
    
    [ kobold ]
    1: skill olfaction
    2: default
    
    [ dairy goat ]
    1: skill olfaction
    2: default
    
    [ MagiMechTech MechaMech ]
    1: skill olfaction
    2: default
    
    [ Raver Giant ]
    1: skill olfaction
    2: default
    
    [ sommelier ]
    1: skill olfaction
    2: default
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | 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 | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  8. #18
    Moderator
    Join Date
    Feb 2007
    Posts
    142

    Default Re: auto BHH and friends

    I was running into problems running out of MP when running the auto bounty hunting script, It's supposed to restore but wasn't for me so I changed it sightly to use the mafia auto-recover figures to decide when to do a restore.

    the code changed is around line 104

    Code:
    		# here, either combat is over, or you hit a noncombat
    		# now, lets restore HP and MP, as well as maintaining our mood
    		if(check_restore("hpAutoRecovery", my_maxhp(), my_hp())) cli_execute("restore hp");
    		if(check_restore("mpAutoRecovery", my_maxmp(), my_mp())) cli_execute("restore mp");
    		cli_execute("mood execute");
    	}

    and also this line(#59) in check_restore commented out.

    Code:
    boolean check_restore(string property,int max, int current) {
    	float threshold = to_float(get_property(property));
    #	threshold = threshold * to_float("-1");
    	threshold = max * threshold;
    	if(current < to_int(threshold)) return true;
    	return false;
    }

  9. #19
    Minion asturia's Avatar
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    201

    Default Re: auto BHH and friends

    thanks for this solution.
    Was having problems with this as well

  10. #20

    Default Re: auto BHH and friends

    [3077] Orc Chasm
    Encounter: Spam Witch
    Round 0: theeaznthree wins initiative!
    Round 1: theeaznthree attacks!
    You gain 32 Meat
    You acquire an item: Spam Witch sammich
    You acquire an item: sammich crust
    You gain 10 Strengthliness
    You gain 7 Enchantedness
    You gain 5 Roguishness
    Mood swing complete.
    You acquire an item: filthy lucre
    Using 1 31337 scroll...
    You acquire an item: hermit script
    You acquire an item: stat script
    Finished using 1 31337 scroll.
    Using 1 stat script...
    You gain 124 Strengthliness
    You gain 148 Mysteriousness
    You gain 128 Roguishness
    You gain a Moxie point!
    Finished using 1 stat script.
    Using 1 hermit script...
    Finished using 1 hermit script.
    don't know if it was intended or not but the script did the 31337 quest for me...

Similar Threads

  1. make friends support -- We miss our friend, Zarqon!
    By zekaonar in forum Scripting Discussion
    Replies: 24
    Last Post: 07-24-2014, 09:43 PM
  2. Bug - Fixed Chat command '/clannies' filters only friends
    By Lxndr in forum Bug Reports
    Replies: 3
    Last Post: 12-04-2012, 09:36 PM
  3. Bug - Not A Bug get_path() & friends
    By StDoodle in forum Bug Reports
    Replies: 11
    Last Post: 11-02-2010, 04:18 PM
  4. 7887 - Recognize /f shorthand for /friends
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 12-17-2009, 06:10 AM
  5. changing friends/ignore list
    By upthedale in forum Scripting Discussion
    Replies: 0
    Last Post: 05-11-2007, 12:02 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
  •