Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
- }
- async function demo() {
- function doThings() {
- if (!$("#notif-smelting").is(":visible")) {
- selectedBar = 'bronzeBar'
- smelt(150);
- }
- }
- setInterval(doThings, 14800);
- await sleep(23700);
- function doThings5() {
- if (!$("#notif-stardustPotionTimer").is(":visible")) {
- sendBytes('DRINK=stardustPotion');
- }
- }
- setInterval(doThings5, 22100);
- await sleep(21500);
- function doThings4() {
- if ($("#notification-static-combat").is(":visible")) {
- sendBytes('FIGHT=forests');
- }
- }
- setInterval(doThings4, 23300);
- await sleep(31700);
- function doThings2() {
- if ($("#notification-static-woodcutting").is(":visible")) {
- sendBytes('CHOP_TREE=1');
- sendBytes('CHOP_TREE=2');
- sendBytes('CHOP_TREE=3');
- sendBytes('CHOP_TREE=4');
- }
- }
- setInterval(doThings2, 94200);
- await sleep(94100);
- function doThings3() {
- if (!$("#notif-rowBoatTimer").is(":visible") && !$("#notif-canoeTimer").is(":visible")) {
- sendBytes('BOAT=rowBoat');
- }
- }
- setInterval(doThings3, 78600);
- await sleep(95400);
- }
- demo();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement