User:ByteFoolish: Difference between revisions

From Melvor Idle
mNo edit summary
mNo edit summary
Line 6: Line 6:


  <nowiki>
  <nowiki>
var count = 10;
var monsID = 69;
while(count > 0 && combatManager.slayerTask.monster.id != 69) {
var count = 30;
while(count > 1 && combatManager.slayerTask.monster.id != monsID) {
     combatManager.slayerTask.selectTask(0,0,true,true);
     combatManager.slayerTask.selectTask(0,0,true,true);
     console.log(count);
     console.log(count);
     count = count - 1;
     count = count - 1;
     var now = new Date().getTime();
 
     while(new Date().getTime() < now + 3500){ /* Do nothing */ }
     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 + 3500){ /* Do nothing */ }
    }
}</nowiki>
}</nowiki>

Revision as of 04:42, 18 August 2021

In-game Functions

combatManager.slayerTask.selectTask(0,0,true,true)

combatManager.slayerTask.killsLeft = 9999

var monsID = 69;
var count = 30;
while(count > 1 && combatManager.slayerTask.monster.id != monsID) {
    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 + 3500){ /* Do nothing */ }
    }
}