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

Bale

Minion
I was just teasing. I didn't really contribute as much as V or S, anyway. You didn't really have to respond to that. Though I always do find it fun to discover my name in someone else's script.
 

DaMaster0

Member
isn't there some way to iterate over all the items you have instead of all the items in the game?? I'm writing this and it's been going for like 10 minutes
 

DaMaster0

Member
Either your computer is really slow or there's something wrong because it runs in seconds.

My computer is not slow at all, it's an imac. As to weather something is wrong or not, it keeps checking store inventory, and I don't have a store. I wonder if that is messing it up? Anyways, after a long period of time, it finally gave me my results, so it does work in the end.
 

dj_d

Member
Actually, I noticed something wierd too - when I emptied my store so there was nothing in it, I got the same behavior. Perhaps a bug in shop_amount().
 

SilentKnight

New member
possible errors:
You have 77 filthy lucre worth 3,900 each for a total of 300,300
You have 1 gnauga hide chaps worth 1,000,000 each for a total of 1,000,000
I lol'd

Liquid meat (eww): 8,755,367
Total: 103,268,795

if only my ~1000 stone frisbees would actually sell at 400 meat..

thanks!
 
Last edited:

bumcheekcity

Active member
Liquid meat (eww): 1,881,270
Total: 1,374,535

This would be fine if I didn't have 16 floaty stone spheres in my DC. Turn use_display on...

Liquid meat (eww): 1,881,270
Total: 147,888,687

MUCH better...
 

dj_d

Member
New version up that should help with your problems, SK - doesn't price nontradeables, updates historical prices from Zarqon's server, hits the mall for out-of-date prices, and always hits the mall for your most expensive items.
 

tgetgel

Member
Using today's networth.ash (29 Sept 2009). Received the following:

> call G:\KoL Mafia\scripts\To Try\Networth.ash

Illegal amount of parameters for function is_tradeable. Got 0, expected 1 (Networth.ash, line 73)

Same behavior on r7635 (exe), v13.5, and r7670(jar) using Java v1.60_15-b03.

Not sure how to fix it.
 

Spiny

Member
Using today's networth.ash (29 Sept 2009). Received the following:

> call G:\KoL Mafia\scripts\To Try\Networth.ash

Illegal amount of parameters for function is_tradeable. Got 0, expected 1 (Networth.ash, line 73)

Same behavior on r7635 (exe), v13.5, and r7670(jar) using Java v1.60_15-b03.

Not sure how to fix it.

Looks like a slight bug in the new code dj_d posted:

If you adjust the code from line 71:

Code:
  if (amount > 0)
  {
    if (is_tradeable())
    {
      int price = 0;
      if (historical_age(it) > 7)

to

Code:
  if (amount > 0)
  {
    int price = 0;
    if (is_tradeable(it))
    {
      if (historical_age(it) > 7)

I THINK that would do what is intended. At least it verifies thru now :)
 

Bale

Minion
A couple of clumsy bugs in the current version. Added a parameter to is_tradeable(), moved the definition of price and removed "else price = 0" as redundant. Here's the fixes:

Code:
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 = 0;
    if (is_tradeable(it))
    {
      if (historical_age(it) > 7)
	price = mall_price(it);
      else
	price = historical_price(it);
      price = max(0, price);
      if (((price == 0)|| (price > 5000000)) && (is_tradeable(it)))
	price = mall_price(it);
      if ((price == 0) && (autosell_price(it) > 0))
	price = autosell_price(it);
    }
    if (price > 0)
    {
      print("Considering "+it+"...");
      all[itcount].it = it;
      all[itcount].price = price;
      all[itcount].amount = amount;
    }
    itcount = itcount + 1;
    total = total + (price * amount);
  }
}
 

dj_d

Member
Whoops. I had fixed those bugs but didn't save the file before I uploaded.

Updated the first post, but haven't tested it - Bale's fault if it bails. :)
 

DaMaster0

Member
dj_d, can you look at my fix? I added a check to see if you have a store before you started including the store amount and slowing everything down drastically for people who don't have a store.:D

Oh, and now I can get a quick reply to my networth!
Liquid meat: 12,776
Total: 556,057
(ya, i'm poor)
 

Attachments

  • networth.ash
    3.1 KB · Views: 42

Bale

Minion
Wow. That's really poor. That's just amazingly poor. That's never donating and never farming kind of poor. I'm actually impressed by the dark depths of your poverty.
 

dj_d

Member
Good idea DaM0 - new version updated that skips store if you don't have one. I think. I don't actually have any multis that poor.

Poor DaM0!
 

matt.chugg

Moderator
its seems to be somewhat confused with me, getting quantities randomly wrong!

Liquid meat (eww): 13,520,243
Total: 1,816,037,775

its doubling several of the more expensive item quantities, for example saying I have 6 jek belts when I have 3, but not all of them my grimacite stuff is accurate.. ?
 
Top