CartoucheHunter 0.9
This script requires ZLib and CanAdv
This script is designed to adventure in every zone that does not already appear in today's log, and abort if you find a cartouche.
-I recommend wearing The Crown of Ed the Undying, pirate fledges, and maximizing +combat%.
-If the script stops you can re-run the script to have it pick up where it left off.
This script is based on Donavin69's KingdomExplorer 0.4 script.
-With lost's help, I added a break to abort if today's session log contains "Cartouche:"
-Theraze has updated CanAdv, so it has been added back in version 0.6 to check if a zone is available before trying to adventure there
-I updated the list of zones that are blacklisted by this script. Let me know if there are additional zones that you think should be blacklisted. See the end of this post for the current list of skipped zones (clan dungeons, etc)
Potential improvements:
-Abort if crown is not equipped
Let me know if you have any coding/functionality suggestions. Since this is my first shared script here, I'm sure it's a bit kludgey.
To install this script copy-paste the following line into the CLI and press return. Run by typing CartoucheHunter into the CLI.
Versions:
0.1 - Initial Release
0.2 - Updated list of skipped zones
0.4 - Added ability to install by SVN
0.5 - Updated to only try to adventure in adventure.php locations
0.6 - Added CanAdv check, added dependencies.txt to automatically install zlib and CanAdv
0.7 - Script will try to adventure again in the same zone if the previous adventure was a noncombat, up to 3 times
0.8 - Fixed a bug introduced in version 0.7 that broke the function to abort when after finding the cartouche
0.9 - Updated zone blacklist to include Frat House In Disguise to avoid drunkenness noncombat
Zones currently skipped:
This script requires ZLib and CanAdv
This script is designed to adventure in every zone that does not already appear in today's log, and abort if you find a cartouche.
-I recommend wearing The Crown of Ed the Undying, pirate fledges, and maximizing +combat%.
-If the script stops you can re-run the script to have it pick up where it left off.
This script is based on Donavin69's KingdomExplorer 0.4 script.
-With lost's help, I added a break to abort if today's session log contains "Cartouche:"
-Theraze has updated CanAdv, so it has been added back in version 0.6 to check if a zone is available before trying to adventure there
-I updated the list of zones that are blacklisted by this script. Let me know if there are additional zones that you think should be blacklisted. See the end of this post for the current list of skipped zones (clan dungeons, etc)
Potential improvements:
-Abort if crown is not equipped
Let me know if you have any coding/functionality suggestions. Since this is my first shared script here, I'm sure it's a bit kludgey.
To install this script copy-paste the following line into the CLI and press return. Run by typing CartoucheHunter into the CLI.
svn checkout https://svn.code.sf.net/p/cartouchehunter/svn/
Versions:
0.1 - Initial Release
0.2 - Updated list of skipped zones
0.4 - Added ability to install by SVN
0.5 - Updated to only try to adventure in adventure.php locations
0.6 - Added CanAdv check, added dependencies.txt to automatically install zlib and CanAdv
0.7 - Script will try to adventure again in the same zone if the previous adventure was a noncombat, up to 3 times
0.8 - Fixed a bug introduced in version 0.7 that broke the function to abort when after finding the cartouche
0.9 - Updated zone blacklist to include Frat House In Disguise to avoid drunkenness noncombat
Zones currently skipped:
Code:
static {
forbidden[ $location[Richard's Hobo Mysticality] ] = TRUE;
forbidden[ $location[Richard's Hobo Moxie] ] = TRUE;
forbidden[ $location[Richard's Hobo Muscle] ] = TRUE;
forbidden[ $location[A Maze of Sewer Tunnels] ] = TRUE;
forbidden[ $location[Hobopolis Town Square] ] = TRUE;
forbidden[ $location[Burnbarrel Blvd.] ] = TRUE;
forbidden[ $location[Exposure Esplanade] ] = TRUE;
forbidden[ $location[The Heap] ] = TRUE;
forbidden[ $location[The Ancient Hobo Burial Ground] ] = TRUE;
forbidden[ $location[The Purple Light District] ] = TRUE;
forbidden[ $location[The Slime Tube] ] = TRUE;
forbidden[ $location[Dreadsylvanian Castle] ] = TRUE;
forbidden[ $location[Dreadsylvanian Village] ] = TRUE;
forbidden[ $location[Dreadsylvanian Woods] ] = TRUE;
forbidden[ $location[The Prince's Restroom] ] = TRUE;
forbidden[ $location[The Prince's Dance Floor] ] = TRUE;
forbidden[ $location[The Prince's Kitchen] ] = TRUE;
forbidden[ $location[The Prince's Balcony] ] = TRUE;
forbidden[ $location[The Prince's Lounge] ] = TRUE;
forbidden[ $location[The Prince's Canapes Table] ] = TRUE;
forbidden[ $location[none] ] = TRUE;
forbidden[ $location[Pump Up Moxie] ] = TRUE;
forbidden[ $location[Pump Up Muscle] ] = TRUE;
forbidden[ $location[Pump Up Mysticality] ] = TRUE;
forbidden[ $location[The Lower Chambers] ] = TRUE;
forbidden[ $location[The Daily Dungeon] ] = TRUE;
forbidden[ $location[The Typical Tavern Cellar] ] = TRUE;
forbidden[ $location[Fernswarthy's Basement] ] = TRUE;
forbidden[ $location[The Shore, Inc. Travel Agency] ] = TRUE;
forbidden[ $location[Summoning Chamber] ] = TRUE;
forbidden[ $location[Goat Party] ] = TRUE;
forbidden[ $location[Pirate Party] ] = TRUE;
forbidden[ $location[Lemon Party] ] = TRUE;
forbidden[ $location[The Barrel Full of Barrels] ] = TRUE;
forbidden[ $location[Hippy Camp] ] = TRUE;
forbidden[ $location[Hippy Camp In Disguise] ] = TRUE;
forbidden[ $location[Dwarven Factory Warehouse] ] = TRUE; //This line and above were already excluded by KingdomExplorer
forbidden[ $location[The Haunted Bedroom] ] = TRUE; //looting the nightstand was confusing the script
forbidden[ $location[A Massive Ziggurat] ] = TRUE; //no combat
forbidden[ $location[The Primordial Soup] ] = TRUE; //"wastes" part of an empty agua bottle if the player has one in inventory
forbidden[ $location[The Jungles of Ancient Loathing] ] = TRUE; //"wastes" part of an empty agua bottle if the player has one in inventory
forbidden[ $location[Seaside Megalopolis] ] = TRUE; //"wastes" part of an empty agua bottle if the player has one in inventory
forbidden[ $location[The Mansion of Dr. Weirdeaux] ] = TRUE; //potential for difficult combat that could cause the script to abort
forbidden[ $location[The Fun-Guy Mansion] ] = TRUE; //potential for difficult combat that could cause the script to abort
forbidden[ $location[The Oasis] ] = TRUE; //spending one turn will not get you a combat
forbidden[ $location[The Copperhead Club] ] = TRUE; //avoid the intrinsic poison
forbidden[ $location[The Obligatory Pirate's Cove] ] = TRUE; //script aborts if you try to adventure here with pirate disguise
forbidden[ $location[The Limerick Dungeon] ] = TRUE; //no combats
forbidden[ $location[The Roulette Tables] ] = TRUE; //no combats
forbidden[ $location[The Poker Room] ] = TRUE; //no combats
forbidden[ $location[An Incredibly Strange Place (Bad Trip)] ] = TRUE; //avoid using an astral mushroom
forbidden[ $location[An Incredibly Strange Place (Mediocre Trip)] ] = TRUE; //avoid using an astral mushroom
forbidden[ $location[An Incredibly Strange Place (Great Trip)] ] = TRUE; //avoid using an astral mushroom
forbidden[ $location[Frat House In Disguise] ] = TRUE;
}
Last edited: