Advertisement
thedictator

pvpcheck.ash

Nov 7th, 2018 (edited)
734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. script pvpCheck.ash
  2. notify the dictator;
  3.  
  4. int CutoffValue = 50000;
  5. int [item] ExceptionList = { $item[tin snips] : 1 };
  6.  
  7. void main() {
  8. item [int] list;
  9. cli_execute("refresh inv");
  10. foreach it in get_inventory() {
  11. if ( it.tradeable && it.discardable && !it.gift || it == $item[amulet of yendor] ) {
  12. if ( historical_age(it) > 7)
  13. if ( mall_price(it) > CutoffValue )
  14. list[list.count()] = it;
  15. else if ( historical_price(it) > CutoffValue )
  16. list[list.count()] = it;
  17. }
  18. }
  19. sort list by historical_price(value);
  20. batch_open();
  21. foreach i,it in list {
  22. print(historical_price(it)+" : "+it);
  23. if ( item_amount(it)-ExceptionList[it] > 0 )
  24. put_closet(item_amount(it),it);
  25. }
  26. if ( !batch_close() ) {
  27. print("Something went wrong when closeting, see what's up or try again","red");
  28. cli_execute("refresh inv");
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement