Search:

Type: Posts; User: zarqon

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    204
    Views
    59,319

    Bale, I like your fix. Although, if you care...

    Bale, I like your fix. Although, if you care about a few milliseconds it should probably go after the following line.

    In the interest of making it easier for visitors to this thread, here's one...
  2. Replies
    204
    Views
    59,319

    I tried changing hunt_bounty() like so: ...

    I tried changing hunt_bounty() like so:


    boolean hunt_bounty() {
    if (count(bounty) > 1 && !accept_best_bounty(to_boolean(vars["do_smallest_bounty"]))) return false;
    foreach i,r in bounty...
  3. Replies
    204
    Views
    59,319

    Here's a quick rewrite to use the new bounty...

    Here's a quick rewrite to use the new bounty proxy record info. It's quite a bit faster when visiting the BHH to determine the current status.

    It still returns false in the end for some reason. ...
  4. Replies
    204
    Views
    59,319

    Hmmm, my visit_bhh() looks like this: string...

    Hmmm, my visit_bhh() looks like this:


    string visit_bhh(string query) {
    bounty.clear();
    string page = visit_url("bhh.php?pwd"+query);
    matcher biggles = create_matcher("(?:bring me...
  5. Replies
    204
    Views
    59,319

    Mine has bounty.clear() at the top -- does that...

    Mine has bounty.clear() at the top -- does that not work?
  6. Replies
    204
    Views
    59,319

    This is the version I'm using now, which doesn't...

    This is the version I'm using now, which doesn't need a data file. It's probably not as fully-featured as some of the previously posted versions -- including my own -- but it gets the job done. Now...
  7. Replies
    204
    Views
    59,319

    It is my pleasure to serve.

    It is my pleasure to serve.
  8. Replies
    204
    Views
    59,319

    Aha! Ok.

    Aha! Ok.
  9. Replies
    204
    Views
    59,319

    I'm lazy too. Just add this in right after the...

    I'm lazy too. Just add this in right after the while loop, guys!



    int[item] potatos;
    file_to_map("http://zachbardon.com/mafiatools/potatomap.txt",potatos);
    print("Getting ingredients for...
  10. Replies
    204
    Views
    59,319

    Hahaha!! But until you submit something, I...

    Hahaha!!

    But until you submit something, I have nothing to rewrite. ;)
  11. Replies
    204
    Views
    59,319

    That sounds like a problem with can_adv(),...

    That sounds like a problem with can_adv(), because this script does that.

    Incentive for your participation in the CanAdv project, perhaps? :)
  12. Replies
    204
    Views
    59,319

    Ok, I've added some "choose smallest bounty"...

    Ok, I've added some "choose smallest bounty" functionality, and in the process reworked this a bit to be more in my coding style. You'll note the script is even smaller than before! :)

    There is...
  13. Replies
    204
    Views
    59,319

    For fun, here's the version that I am using, with...

    For fun, here's the version that I am using, with the latest CanAdv, which is working flawlessly for me. I posted the previous one before I incorporated ZLib into CanAdv, so yes, those are the lines...
  14. Replies
    204
    Views
    59,319

    Mine looks like this: billy...

    Mine looks like this:


    billy idol 40 Goatlet 75
    bloodstained briquette 8 Outskirts of The Knob 9
    broken petri dish 40 Knob Goblin Laboratory 52
    bundle of receipts 17 Knob Goblin Treasury 37...
  15. Replies
    204
    Views
    59,319

    @kain and ironsting: update your bounty.ash to...

    @kain and ironsting: update your bounty.ash to the last one posted. If that is done, what does your bounty.txt look like? Are there plural item names in it?

    @dj_d: an excellent idea. Probably...
  16. Replies
    204
    Views
    59,319

    Revisited this a bit ago. Thanks to the new...

    Revisited this a bit ago. Thanks to the new to_plural() function, a field can be removed from the map file. Also, converted it to use the in-progress CanAdv tool (link in sig). So not only is the...
  17. Replies
    204
    Views
    59,319

    This one is working.

    This one is working.
  18. Replies
    204
    Views
    59,319

    I don't either, but evidently something like that...

    I don't either, but evidently something like that was happening, since the code (which explicitly checks for "KoLmafia" in the specified agent string) was previously working.

    Thanks for the tip on...
  19. Replies
    204
    Views
    59,319

    The URL is only an HTML document for web...

    The URL is only an HTML document for web browsers. For mafia, it is a map file. Appropriate headers are sent to mafia identifying it as a text file.

    This problem (and probably your debug log,...
  20. Replies
    204
    Views
    59,319

    Recent changes to mafia broke the Map Manager,...

    Recent changes to mafia broke the Map Manager, which in turn broke the script I posted above. Here's a working version (which does not automatically update bounty.txt) while I work out a solution...
  21. Replies
    204
    Views
    59,319

    Re: auto BHH and friends

    I kind of just did. That one file is all you need. If you have Olfaction, you will also need to use the First Things First custom combat script (link in my sig).
  22. Replies
    204
    Views
    59,319

    Re: auto BHH and friends

    I've taken raorn's tweaked version of izchak's script and tweaked it still further to take advantage of a couple things I'm trying to help standardize:

    1) The idea of a per-character...
  23. Replies
    204
    Views
    59,319

    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...
  24. Replies
    204
    Views
    59,319

    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...
  25. Replies
    204
    Views
    59,319

    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...
Results 1 to 25 of 26
Page 1 of 2 1 2