User:ByteFoolish

From Melvor Idle
Revision as of 03:52, 11 September 2021 by ByteFoolish (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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