Page 3 of 21 FirstFirst 1 2 3 4 5 13 ... LastLast
Results 21 to 30 of 205

Thread: auto BHH and friends

  1. #21

    Default Re: auto BHH and friends

    ;D Nice, if you go into your preferences, the button farthest to the right of your toolbar thing, and go to the general tab. You have it set to "Auto-Create 31337 scrolls if no scrolls conditions are set.", the script chose to take the bounty hunt for the "5 Sammich Crusts from Spam Witches in the Valley of Rof L'm Fao" so it adventured there and Kolmafia auto-created 31337 scrolls for you.

  2. #22
    Member
    Join Date
    Apr 2007
    Location
    Russia
    Posts
    63

    Default Re: auto BHH and friends

    OK. Here's my rewrite of auto bounty script. I've tried to follow KISS principle.

    Script takes two arguments, maximum number of adventures and maximum moxie difference (difference between moxie and "moxie for no hit" in given area).

    All bounty data stored in map. Item, plural name, quantity, location and safe moxie.
    If bounty already started, script will try to finish it. If it's not safe to adventure in given area, it will abort current hunt and try to pick another (unless you have already collected some bounty items, in this case script will do nothing).
    If no hunt started, script will pick highest possible mission.

    If uses CCS script by Mighty Xerxes and zarqon for Olfaction (edit the [default] section). It uses mafia built-in condition and autorestore mechanics. It will not modify any choice adventure settings. It will not use any 31337 scrolls (what if you want to keep it for stat day?). If will try to accept council and white citadel quests.
    [hr]
    Giant Castle is open if you have S.O.C.K. or intragalactic rowboat.
    Attached Files
    My KoLmafia script repository: gitweb, snapshot in tar.gz archive

  3. #23

    Default Re: auto BHH and friends

    looks like a good script Raorn, but how do I use it? What do I type for the params? (How do I seperate the adventure number and the moxie number). Also what would you recommend to be put in for the moxie difference?

  4. #24
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,530

    Default Re: auto BHH and friends

    For the record, the ccs Xerxes posted a while back was incomplete, I think it was just for starters. I've since added some monsters, like the spam witch and cubist bull, possibly others. Here's the latest, although it may still be incomplete.

    Someone may also want to take a look at it to make sure it doesn't needlessly cast Olfaction on 40-item bounties.
    Last edited by zarqon; 02-15-2009 at 10:41 AM.
    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!

  5. #25
    Member
    Join Date
    Apr 2007
    Location
    Russia
    Posts
    63

    Default Re: auto BHH and friends

    [quote author=Leperconartist link=topic=1473.msg8031#msg8031 date=1210032084]
    looks like a good script Raorn, but how do I use it?
    [/quote]

    Oops. I was so tired of coding, and didn't write any documentation ;-)

    Number of adventures is a number or "*" which means "all adventures". It will stop if you complete bounty earlier. It is safe to omit "moxie diff" or use zero diff. You will be hit only by crotical hits. However, it uses your current buffed moxie (or muscle with some skills and items), it does not check if you have enough buffs to keep your moxie high. And I think it doesn't count +ML modifiers. Some examples:

    Code:
    call bounty.ash *
    Do any safe bounty hunt without turn limit.

    Code:
    call bounty.ash 40 -10
    Try to complete bounty, that would be safe if your moxie would be reduced to 10 (or +ML is 10), and use at most 40 turns.

    Code:
    call bounty.ash 60 20
    "I can live if my moxie is 20 points bellow safe limit and want to spend up to 60 turns for lucre."
    My KoLmafia script repository: gitweb, snapshot in tar.gz archive

  6. #26
    Junior Member
    Join Date
    May 2006
    Posts
    14

    Default Re: auto BHH and friends

    Hi. Trying to run autobhh, but I don't quite understand a few things.
    1) First, when I ran it, it used the olfaction ccs, but it didn't seem to work. Turns out, autoattack was set and one hit killed. Is there a way to add a line to turn off possible auto attack to avoid this?
    2) Though my stats were high, it took the easy bounty. Is this the default? (I gave * for the parameters)

    Thanks.

  7. #27
    Junior Member
    Join Date
    May 2006
    Posts
    14

    Default Re: auto BHH and friends

    I solved the first problem by calling set_property("defaultAutoAttack", 0);
    Were I a real programmer, I'd reset it afterwards somewhere.

  8. #28
    Junior Member
    Join Date
    May 2006
    Posts
    14

    Default Re: auto BHH and friends

    When I bountied today, I was already sniffing so olfaction failed. I could routinely begin by SEEGA-ing but what if I was already sniffing the correct monster? Is there a scriptable way to ask this question? I have as yet been unable to find one.

  9. #29
    Moderator
    Join Date
    Feb 2007
    Posts
    142

    Default Re: auto BHH and friends

    Just discovered that build 6101 breaks these scripts as the haunted wine cellar is now four separate zones. Changing the location to one of the new zones eg. haunted wine cellar (lower left) seems to work although it still produces error messages saying haunted wine cellar has multiple matches. I am at this point assuming the bounty item drop happens in all of the new zones.

    I'll test it some more when mafias working again.

    Tom

  10. #30
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,530

    Default Re: auto BHH and friends

    @jim: afaik there is no way of knowing which monster you are tracking. This might be a nice setting to add to mafia (i.e. currentMonsterHunt=cubist bull).

    Also, I wanted to mention something that might prove very useful to users of this script. I've written a consult script (First Things First, link in my sig) that automatically handles pre-combat skills/actions like stealing, noodles, and most importantly Olfaction.

    It contains all of the (<40 items) bounty monsters, and will only cast Olfaction when you are actually on a bounty hunt. It's also configurable to include monsters that you always want to olfact.

    If you use this script, you won't need to switch ccs's any more, so you can remove the lines of code that switch your ccs and delete bounty.ccs.
    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!

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
  •