Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script pvpCheck.ash
- notify the dictator;
- int CutoffValue = 50000;
- int [item] ExceptionList = { $item[tin snips] : 1 };
- void main() {
- item [int] list;
- cli_execute("refresh inv");
- foreach it in get_inventory() {
- if ( it.tradeable && it.discardable && !it.gift || it == $item[amulet of yendor] ) {
- if ( historical_age(it) > 7)
- if ( mall_price(it) > CutoffValue )
- list[list.count()] = it;
- else if ( historical_price(it) > CutoffValue )
- list[list.count()] = it;
- }
- }
- sort list by historical_price(value);
- batch_open();
- foreach i,it in list {
- print(historical_price(it)+" : "+it);
- if ( item_amount(it)-ExceptionList[it] > 0 )
- put_closet(item_amount(it),it);
- }
- if ( !batch_close() ) {
- print("Something went wrong when closeting, see what's up or try again","red");
- cli_execute("refresh inv");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement