In-game Functions

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

combatManager.slayerTask.killsLeft = 9999

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