User:ByteFoolish

From Melvor Idle
Revision as of 03:52, 11 September 2021 by ByteFoolish (talk | contribs)

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