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);
int my_storage_meat() {
string storage = visit_url("storage.php");
string storagemeat = substring(storage, index_of(storage,"have "), index_of(storage," meat"));
return to_int(storagemeat);
}
print("Meat on hand: " + my_meat(), "#33CCCC");
print("Meat in closet: " + my_closet_meat(), "#33CCCC");
print("Meat in Hagnk's: " + my_storage_meat(), "#33CCCC");
print("My total meat: " + to_string(my_meat() + my_closet_meat() + my_storage_meat()), "green");