Advertisement
Guest User

js_order_2

a guest
Mar 25th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sleep(ms) {
  2.   return new Promise(resolve => setTimeout(resolve, ms));
  3. }
  4.  
  5. async function demo() {
  6.   function doThings() {
  7.     if (!$("#notif-smelting").is(":visible")) {
  8.         selectedBar = 'bronzeBar'
  9.         smelt(150);
  10.     }
  11. }
  12. setInterval(doThings, 14800);
  13.   await sleep(23700);
  14.  
  15.     function doThings5() {
  16.     if (!$("#notif-stardustPotionTimer").is(":visible")) {
  17.       sendBytes('DRINK=stardustPotion');
  18.     }
  19. }
  20. setInterval(doThings5, 22100);
  21.  await sleep(21500);
  22.  
  23.     function doThings4() {
  24.     if ($("#notification-static-combat").is(":visible")) {
  25.       sendBytes('FIGHT=forests');
  26.     }
  27. }
  28. setInterval(doThings4, 23300);
  29.  await sleep(31700);
  30.  
  31.  function doThings2() {
  32.     if ($("#notification-static-woodcutting").is(":visible")) {
  33.         sendBytes('CHOP_TREE=1');
  34.         sendBytes('CHOP_TREE=2');
  35.         sendBytes('CHOP_TREE=3');
  36.         sendBytes('CHOP_TREE=4');
  37.     }
  38. }
  39. setInterval(doThings2, 94200);
  40.   await sleep(94100);
  41.  
  42. function doThings3() {
  43.     if (!$("#notif-rowBoatTimer").is(":visible") && !$("#notif-canoeTimer").is(":visible")) {
  44.         sendBytes('BOAT=rowBoat');
  45.     }
  46. }
  47. setInterval(doThings3, 78600);
  48. await sleep(95400);
  49.  
  50. }
  51. demo();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement