Page 1 of 22 1 2 3 11 ... LastLast
Results 1 to 10 of 212

Thread: What are you worth? networth.ash will tell you.

  1. #1
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default What are you worth? networth.ash will tell you.

    Quick and dirty script: networth.ash tells you what you're worth. Enjoy!

    (And if you're so inclined, show off by posting the results in this thread.)
    Attached Files
    Last edited by dj_d; 10-01-2009 at 04:40 AM.
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    526

    Default

    Why are you checking the amount of the stash? That doesn't seem to be indicative of what you're worth. Did you mean for that to be a call to storage_amount() rather than stash_amount()?

  3. #3
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default

    Whoops! Good catch. Fixed.
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  4. #4
    Minion asturia's Avatar
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    199

    Default

    I ran it and here are the results:
    > Liquid meat (eww): 2844922
    > Total: 969344526

    Never thought I was worth that much.

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

    Default

    Nice simple little script. Just tried it and at first I was shocked by how many items were being tallied that I knew didn't exist in my inventory. I figured that must have been a horrible bug. Then I took a look at the code and realized that my store was also included. Ah!

    Noted that there were two things I considered problems with this script. First of all, it shouldn't have been reporting my hordes of items that were only worth 0 meat. It was cluttering the useful output with tons of un-tradeables that don't contribute to my net worth. Secondly, you were ignoring the fact that some items can be auto-sold for meat even though they cannot be traded. That's probably not much meat, but it should be considered. Here are my fixes:

    Code:
    script "networth.ash"
    notify "dj_d";
    
    import <zlib.ash>;
    
    boolean use_display = false;
    
    int total = 0;
    int i = 0;
    foreach it in $items[]
    {
      int amount =  available_amount(it) + shop_amount(it) + storage_amount(it);
      if (use_display) amount = amount + display_amount(it);
      if (amount > 0)
      {
        int price = max(0,historical_price(it));
        if ((price == 0) && (is_tradeable(it)))
          price = mall_price(it);
        if ((price == 0) && (autosell_price(it) > 0))
          price = autosell_price(it);
        if (price > 0)
          print(amount+" "+it+" for "+price+" each.");
        price = amount * price;
        total = total + price;
      }
    }
    print("Liquid meat (eww): "+to_string(my_meat() + my_closet_meat()));
    print("Total: "+total);
    Liquid meat (eww): 1197413
    Total: 157925668

    Compared to asturia I'm poor, despite my years of play. Ah, hardcore, you are a cruel master who banishes all my meat into my terrarium. Or maybe I just spent all my meat trying to get a larger pile of stuffed Hodgmen.
    Last edited by Bale; 09-24-2009 at 09:11 AM.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  6. #6
    Senior Member matt.chugg's Avatar
    Join Date
    Nov 2006
    Posts
    617

    Default

    apprently i'm in considerable debt....

    Liquid meat (eww): 11978
    Total: -926311209

    Probably because i'm in ronin!
    Last edited by matt.chugg; 09-24-2009 at 09:35 AM.

  7. #7
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default

    Updated - great changes, Bale.

    Matt, I have no idea what your bug is. Do you report any items with 999999999 value? You may be so rich you're overflowing maxint. Can float hold a bigger number than maxint?
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  8. #8
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default

    Oh, and the virtues of hanging around since 2004:

    Liquid meat (eww): 75081588
    Total: 445247741
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  9. #9
    Senior Member matt.chugg's Avatar
    Join Date
    Nov 2006
    Posts
    617

    Default

    I think spooky putty ball came up as 999999998 however wouldn't it just throw an overflow exception ?

    i'll have a look later!

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

    Default

    Liquid meat (eww): 2218
    Total: 12707995

Similar Threads

  1. Replies: 0
    Last Post: 08-10-2015, 06:38 PM
  2. Farming effects, are they worth it?
    By senseihitokiri in forum Community Support
    Replies: 1
    Last Post: 07-18-2006, 03:25 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
  •