Wishing for Monsters for Factoids

dapanda

Member
I made a rough script for finding missing factoids with a Genie Wish. It will fight one monster and use any copying abilities you have to get the rest of the factoids. It can run a bit slow as it has to check the manuel after every combat to make sure it doesn't have 3 factoids yet.

Things that can be done:
-You can set variables to 'true' inside "manuelwish.ash" to pick which coping item to use after a fight. If you have the value set to 'false' for the item it will closet that item and pull it out after combat.
-Consulting CCS script "fullmonstercopy.ash" has digitize set to FALSE so if you are just going for factoids and want to use other copies, it won't add that copy of the monster to your combat queue.
-The Consult Script for the CCS "fullmonstercopy.ash" will use any copying abilities you have, so if you are wanting to limit the use you can set the True or False flag in "manuelwish.ash". This will place items in your closet until after all copying is done.
-Combat script now checks class and uses the skill from your class that is the uncapped attack, except for the skill "Saucegeyser" which will always run as the last option
---If you don't have the skill for your class or "Saucegeyser" it will just attack with your weapon
-Checks to make sure you do not have three factoids before using a copy. As you gain the copy before you gain the factoid in that last fight, the script then uses that last copy with your default combat CCS at the end of the script.
-Makes sure you have enough adventures for copying, the default is 13. This should cover one of every copy and all the putty/doh copies.

Code:
svn checkout https://svn.code.sf.net/p/monsterwish/svn/

Current Issues:
-The biggest issue is that it only wishes for things from the fax network. So if you can't wish for it but it is in the fax network, it will NOT error, it just won't wish. To get around this you have to get the monster from the Fax network, the script will not skip it. I have a feature request open that would help with this: http://kolmafia.us/showthread.php?22160-Genie-wish-to-notify-on-failure
-May not check to see if you don't have any monsters to fight for factoids (e.g. your monster manuel is full). If you can't find a monster in the fax network to fight, it shouldn't try to summon something. I don't have a full manuel so I can't test it.
------DO NOT ADVENTURE WITH THE PANTS: "papier-m?churidars" OR ANYTHING ELSE THAT "IMPROVES THINGS"------


Updates for the Future:
-Pull a complete list of wishable monsters, not just from the fax network. *See above
-Have combat for monsters that are immune to spells or basic attacks (or need combat items)
-Will check total adventures left vs copying amounts and use the correct amount of copies.


THIS IS A WORK IN PROGRESS USE AT YOUR OWN RISK. IF EASYFAX IS DOWN, IT MOST LIKELY WON'T WORK


Should be fixed:
-Fixed an issue where it would automatically buy pocketwishes
-If this is the first time you have used that copying mechanism this run it will not automatically fight the copy. (the preferences file is empty so it doesn't have a value to use) (at least if it is spooky putty)
 
Last edited:

dapanda

Member
Here is the base code to fight a single monster, if you don't want to get the full copying script from the SVN

Code:
int wishnumber = 0;
cli_execute("checkmanuel");

boolean copyformm() {

    foreach monstermanuel in $monsters[] {
        if (can_faxbot(monstermanuel) && monster_factoids_available(monstermanuel,true)!=3 && wishnumber.to_int() < 1) {
			print("Monster to Fight: "+monstermanuel,"red");
			if(wishnumber < 1){
			wishnumber = wishnumber + 1;
			}
            cli_execute("genie monster "+monstermanuel);
			visit_url("main.php");
			run_combat();
        }
    }
    return true;
}

I also updated the Bale's consult script for CSS. This uses any possible copies that you have.

http://kolmafia.us/showthread.php?11945-Advice-on-consult-script&p=144847#post144847
 
Last edited:

dapanda

Member
This script hasn't been updated in a while and a lot of other monsters have been added since then. While it should still work I am not sure when I will get back to this script. It was also made pre-java change so while that shouldn't effect anything I can't say for sure. Use at your own wish risk.
 
Top