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

Thread: bumcheekcity's Hardcore Checklist

  1. #1
    Senior Member bumcheekcity's Avatar
    Join Date
    Mar 2009
    Posts
    1,401

    Default bumcheekcity's Hardcore Checklist

    bumcheekcity's Hardcore Checklist 1.0

    What does this do?
    This script checks for items and things you need to do to complete a Hardcore Ascension. It will NOT adventure in the slightest. It is purely an informational script.
    The script will check for familiars in a BM run (i.e. the ones you need for the NS Tower + the starfish), and will use them if you have them. It won't do this in a Black Cat run.

    What does this not do?
    Your mum. Unlike me. Also as I said, it won't adventure. It can't find out whether you've used the cleaning items in the f'c'le, but I think that limitation lies with the game, not mafia nor this script.
    It will not check your telescope if you have one to see if you definately need the items. Yet.

    Can this be used for Softcore?
    Yes, it will still tell you what you need to do, but you'll end up ignoring most of it. I'm planning on having it detect softcore, and assume you're going to pull the tower items and such.

    How do I use it?
    Make sure you have Zlib.
    That's it. Just run it. It'll print out some stuff, and that's it.

    What does it look like?


    Changelog
    v1.0 - Moved main() into a different function so that this can be included into breakfast scripts. Lowercase N checked correctly. Definitely spelt right. Fixed HitS and F'c'le checks.
    v0.9 - Fixed Boss Bat bug whereby it was always reporting it as undone. Sped things up, and now there's intelligent caching. Should be cleaner and faster.
    v0.8 - First version I deemed not-crap enough to release. Probably still a bit crap, to be honest.
    Attached Files
    Last edited by bumcheekcity; 09-15-2009 at 09:36 PM.

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

    Default

    Make sure you have Zlib.
    Originally Posted by bumcheekcity View Post
    Whoa. zlib is catching on! I'll check out the script when I'm done slime tubing.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  3. #3
    Senior Member bumcheekcity's Avatar
    Join Date
    Mar 2009
    Posts
    1,401

    Default

    I'm using Zlib for the updates, and then I got it working, and then it broke again

  4. #4
    Senior Member
    Join Date
    Aug 2007
    Location
    Minnesota, USA
    Posts
    116

    Default

    Very good and complete list of NS tasks and items! It lets me know just what i need to get during the post-island grind to 13.

    Codewise, i really like your debug() function. It'll make my debugging life easier without commenting and uncommenting lines as i go.

    Correction: I changed your url check on line 706 for the level 12 from quests.php to questlog.php

    A suggestion: Have it also check your closet for items. I often drop NS items there that I don't want to lose. I just made the following changes to hasItem() and hasHowManyOf(), and it works great!

    Code:
    boolean hasItem(string itemname, int amount)
    {
      //if (item_amount(to_item(itemname)) >= amount )
      if (item_amount(to_item(itemname)) >= amount || closet_amount(to_item(itemname)) >= amount )
      {
        //Then we have the required quantites of items. YAY!
        return true;
      } else {
        if (amount == 1)
        {
          print("You need " + amount + " " + itemname + ".");
        } else {
          print("You need " + amount + " " + itemname + ". You have " + (item_amount(to_item(itemname)) + closet_amount(to_item(itemname))) + ", needing " + (amount - (item_amount(to_item(itemname)) + closet_amount(to_item(itemname)))));
          //print("You need " + amount + " " + itemname + ". You have " + item_amount(to_item(itemname)) + ", needing " + (amount - item_amount(to_item(itemname))));
        }
        return false;
      } 
    }
    
    //Prints the total quantity of the items. Useful for stuff in the same Zap group. 
    int hasHowManyOf(string [string] itemlist)
    {
      int amount;
      foreach var in itemlist
      {
        amount = amount + item_amount(to_item(var)) + closet_amount(to_item(var));
        //amount = amount + item_amount(to_item(var)) ;
      }
      return amount;
    }

  5. #5
    Senior Member bumcheekcity's Avatar
    Join Date
    Mar 2009
    Posts
    1,401

    Default

    Thanks for the advice, Camber. I'll be adding that to version 0.9 along with a few more things.

  6. #6
    Senior Member halfvoid's Avatar
    Join Date
    Jun 2009
    Location
    London, UK
    Posts
    265

    Default

    so, is version 0.9 posted yet or is that still 0.8 at the top?

  7. #7
    Senior Member bumcheekcity's Avatar
    Join Date
    Mar 2009
    Posts
    1,401

    Default

    Still v0.8. I should be getting 0.9 out in two to three days. It's much faster, thanks to the caching and my genius.

  8. #8
    Senior Member
    Join Date
    Mar 2009
    Posts
    650

    Default

    I just peeked at the code for this and I didn't notice anything about DoD bang potions.

    -Spiny

  9. #9
    Senior Member bumcheekcity's Avatar
    Join Date
    Mar 2009
    Posts
    1,401

    Default

    That's because there isn't any. It's in the pipeline though. Probably won't make 0.9, but should be in 1.0

    Currently debugging 0.9. The outfit check isn't behaving, but other than that, it's good to go.

    Edit: Fixed and updated. The first post has v0.9
    Last edited by bumcheekcity; 07-21-2009 at 08:57 PM.

  10. #10
    Senior Member
    Join Date
    Mar 2009
    Posts
    650

    Default

    Probably a known issue, but the script isn't recognizing "jabaņero-flavored chewing gum" because of the n.

    -Spiny

Similar Threads

  1. EoD SC Ascension Checklist Handler
    By Eliteofdelete in forum Item Handling Scripts
    Replies: 8
    Last Post: 07-10-2018, 10:44 AM
  2. bumcheekcity's Easy Snapshot Maker
    By bumcheekcity in forum Informational Scripts
    Replies: 1106
    Last Post: 06-18-2016, 07:15 PM
  3. PsyMar's softcore checklist
    By PsyMar in forum Informational Scripts
    Replies: 4
    Last Post: 04-10-2012, 12:14 AM
  4. bumcheekcity and hippoking's Rollover Management Script
    By bumcheekcity in forum Informational Scripts
    Replies: 78
    Last Post: 06-09-2011, 10:08 PM
  5. Hardcore Checklist -- sequential required item getter/notifier
    By zarqon in forum Turn-Burning Scripts
    Replies: 94
    Last Post: 10-12-2009, 04:37 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
  •