void main() {
string campground = visit_url("campground.php");
string dwelling = visit_url("campground.php?action=inspectdwelling");
string quest_log_main = visit_url("questlog.php?which=2");
string quest_log_accomplishment = visit_url("questlog.php?which=3");
boolean check; string current_karma;
print("############################################", "blue");
print("CAMPGROUND:","blue");
print("############################################", "blue");
check = campground.contains_text("pagoda.gif");
print("You " + (check? "have a pagoda." : "don't have a pagoda"), check? "blue" : "red");
check = dwelling.contains_text("maid2.gif") || dwelling.contains_text("maid.gif");
print(!check? "You don't have a meat maid!" : (dwelling.contains_text("maid2.gif")? "You have a clockwork maid." : "You have a meat maid."), check? "blue" : "red");
print("############################################", "blue");
print("QUESTS AND STUFF:","blue");
print("############################################", "blue");
print("You have " + (have_familiar($familiar[El Vibrato Megadrone])? "" : "not ") + "acquired an El Vibrato Megadrone.",have_familiar($familiar[El Vibrato Megadrone])? "blue" : "red");
check = quest_log_main.contains_text("Despite being aided by");
print("You have " + (check? "" : "not ") + "defeated your nemesis.", check? "blue" : "red");
check = quest_log_main.contains_text("You've found Azazel's unicorn, his loll");
print("You have " + (check? "" : "not " ) + "gotten your organ of steel.", check? "blue" : "red");
check = quest_log_main.contains_text("You've used the power of all six elements");
print("You have " + (check? "" : "not ") + "found the secret from the future.", check? "blue" : "red");
check = quest_log_main.contains_text("You discovered and dug up the Pork Elves' rew");
print("You have " + (check? "finished the Hyboria quest." : (quest_log_main.contains_text("Having defeated the High Priest of Ki'rhuss")? "not dug up your pork elf piece." : "not finished the Hyboria quest.")), check? "blue" : "red");
check = quest_log_main.contains_text("You remember creating an unstoppable supervirus");
print("You have " + (check? "" : "not ") + " created a supervirus.", check? "blue" : "red");
check = quest_log_main.contains_text("You've successfully delivered a package, and b");
print("You have " + (check? "" : "not " ) + "obtained a piece of the Dwarvish War Uniform.", check? "blue" : "red");
check = quest_log_main.contains_text("Congratulations! You've saved a few of the elves");
print("You have " + (check? "" : "not ") + "repaired the elves shield generator.", check? "blue" : "red");
check = quest_log_accomplishment.contains_text("You have summoned the UB3r 31337 HaX0R.");
print("You have " + (check? "" : "not ") + "summoned the UB3r 31337 HaX0R.", check? "blue" : "red");
check = quest_log_main.contains_text("You helped the Old Man retrieve his boot from The Sea");
print("You have " + (check? "" : "not ") + "retrieved the Old Man's boot from the sea.", check? "blue" : "red");
/*check = quest_log_accomplishment.contains_text("");
print((check? : ), check? "blue" : "red");*/
matcher karma_check = create_matcher( "current Karmic balance is (\\d+)\." , quest_log_accomplishment );
if( karma_check.find() ) {
current_karma = karma_check.group( 1 );
} else {
print("Seems you don't have any karma?", "red");
exit;
}
print("############################################", "blue");
print("KARMA BALANCE:" + current_karma ,"blue");
print("############################################", "blue");
}