Aenimus

worthawholebean's alias for sendcrate name

Dec 16th, 2020 (edited)
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias sendcrate => jsq [1442, 1443, 1444].forEach(choice => setProperty('choiceAdventure' + choice, '1&who=%%'));
  2. const items = Item.get(['government candy shipment', 'government booze shipment', 'government food shipment']);
  3. const startingCounts = items.map(item => itemAmount(item));
  4. print('Starting counts: ' + startingCounts.toString());
  5. items.forEach(item => use(1, item));
  6. cliExecute('refresh inventory');
  7. print('Ending counts: ' + items.map(item => itemAmount(item)).toString());
  8. if (items.some((item, i) => itemAmount(item) !== startingCounts[i] - 1)) throw 'Failed to send some crate!';
Add Comment
Please, Sign In to add comment