Weatherboy
Member
Boris hated repetitive clicking!
Ok, seriously, the turn 1 clicking is starting to get to me. So here it is. It's not as ..what's the word... dynamic as some others might be, but it gets the job done. I think you could even take this script and make it part of an alias if you want to really get fancy with it.
Smash!
Ok, seriously, the turn 1 clicking is starting to get to me. So here it is. It's not as ..what's the word... dynamic as some others might be, but it gets the job done. I think you could even take this script and make it part of an alias if you want to really get fancy with it.
Smash!
Code:
// train boris skills
// kingdom of loathing
// avatar of boris challenge path
notify weatherboy;
int skills;
int get_skills() {
matcher borisskills = create_matcher("learn (\\d+) more", visit_url("da.php?place=gate1"));
if (borisskills.find()) {
skills = to_int(borisskills.group(1));
} else { print("You are already full of Boris.","red"); exit; }
return skills;
}
void train(int fight, int shout, int feast) {
if (fight>0 && fight<11) { for i from 1 to fight { visit_url("da.php?whichtree=1&action=borisskill"); } }
if (shout>0 && shout<11) { for i from 1 to shout { visit_url("da.php?whichtree=2&action=borisskill"); } }
if (feast>0 && feast<11) { for i from 1 to feast { visit_url("da.php?whichtree=3&action=borisskill"); } }
}
void main() {
skills = get_skills();
if (skills == 30) {
train(10,10,10);
print("Boris is ready to go smash stuff.","blue");
} else {
print("You can't learn all 30 skills at once.","red");
print("You can run <ash import trainBoris.ash; train(int, int, int)> in the gCLI to train less than 30 skills.","blue");
print("The order for the 3 paramaters are Fighting, Shouting, Feasting; just like on the page.","blue");
print("You can learn "+skills+" Boris skills.");
}
}