User:ByteFoolish: Difference between revisions

From Melvor Idle
mNo edit summary
mNo edit summary
Line 1: Line 1:
In-game Functions
In-game Functions


combatManager.slayerTask.selectTask(0,0,true,true)
combatManager.slayerTask.killsLeft = 99999
 
combatManager.slayerTask.killsLeft = 9999


  <nowiki>
  <nowiki>
var monsID = 69;
var monsID = 10;
var count = 30;
var count = 30;
while(count > 1 && combatManager.slayerTask.monster.id != monsID) {
while(count > 1 && combatManager.slayerTask.monster.id != monsID) {
    // selectTask(tier, costCoins, render, fromClick)
     combatManager.slayerTask.selectTask(0,0,true,true);
     combatManager.slayerTask.selectTask(0,0,true,true);
     console.log(count);
     console.log(count);
Line 18: Line 17:
         combatManager.slayerTask.jumpButton.click();
         combatManager.slayerTask.jumpButton.click();
     } else {
     } else {
         while(new Date().getTime() < now + 3500){ /* Do nothing */ }
         while(new Date().getTime() < now + 1500){ /* Do nothing */ }
     }
     }
}</nowiki>
}</nowiki>

Revision as of 03:52, 11 September 2021

In-game Functions

combatManager.slayerTask.killsLeft = 99999

var monsID = 10;
var count = 30;
while(count > 1 && combatManager.slayerTask.monster.id != monsID) {
    // selectTask(tier, costCoins, render, fromClick)
    combatManager.slayerTask.selectTask(0,0,true,true);
    console.log(count);
    count = count - 1;

    var now = new Date().getTime();    
    if (combatManager.slayerTask.monster.id == monsID) {
        console.log("Found monster!");
        combatManager.slayerTask.jumpButton.click();
    } else {
        while(new Date().getTime() < now + 1500){ /* Do nothing */ }
    }
}