Advertisement
WreckedEm

PvPValue Test.ash

Jul 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. int minimum_value = 20000;
  2. boolean [item] pvp_unimportant = $items[tenderizing hammer, dramatic range, Queue Du Coq cocktailcrafting kit];
  3.  
  4. //Rudimentary function
  5. boolean is_stealable(item it) { return is_tradeable(it) && autosell_price(it) > 0; }
  6.  
  7. //Note: Ever since the Closet revamp, multi-putting and multi-taking is impossible.
  8. // Thus batch_open() and batch_close() are not needed.
  9. foreach it, qty in get_inventory() {
  10. if (is_stealable(it) && mall_price(it) >= minimum_value && !(pvp_unimportant contains it)) {
  11. print('Gonna closet ' + qty + ' ' + (qty == 1 ? to_string(it) : to_plural(it)) + ', worth ' + historical_price(it), 'teal');
  12. // put_closet(qty, it);
  13. }
  14. }
  15.  
  16. print_html('<b>Done!</b>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement