285
edits
ByteFoolish (talk | contribs) mNo edit summary |
ByteFoolish (talk | contribs) mNo edit summary |
||
Line 6: | Line 6: | ||
<nowiki> | <nowiki> | ||
var count = | var monsID = 69; | ||
while(count > | 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> |
edits