User:ByteFoolish

From Melvor Idle
Revision as of 04:42, 18 August 2021 by ByteFoolish (talk | contribs)

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 */ }
    }
}