I wanted a quick way to make sure nothing valuable would get stolen after breaking my hippy stone, so I made this little script. I would have attached it, but this seems like the type of thing other people will modify and make much more useful.
Change expensiveValue to set the threshold for item value that you care about. This form just prints information, but you can move the comment to have everything closeted. Or change that one line to do whatever you want with the items (mall, display case, whatever).
Code:
int expensiveValue = 10000;
int get_price( item itm )
{
if ( historical_age( itm ) < 14 ) return historical_price( itm );
return mall_price( itm );
}
boolean is_pvpable( item thing )
{
return thing.tradeable && thing.discardable && !thing.gift && !thing.quest;
}
void main()
{
int[item] inventory = get_inventory();
batch_open();
foreach it in inventory
{
if( is_pvpable( it ) && get_price( it ) > expensiveValue )
{
print_html( it + ": " + get_price( it ) );
#put_closet( item_amount( it ), it);
}
}
batch_close();
}
Change expensiveValue to set the threshold for item value that you care about. This form just prints information, but you can move the comment to have everything closeted. Or change that one line to do whatever you want with the items (mall, display case, whatever).
Last edited: