This is a between battle script that will change your familiar to the one with the most profitable drop. Drop profitability is calculated using the lowest mall price of whatever that familiar can drop and the median number of turns that you need to burn. This takes into account multiple drops from the same familiar taking more turns.Code:svn checkout https://svn.code.sf.net/p/familiardrops/code
Familiar that requires using a skill in combat (Happy Medium etc.) require you to use those skills manually, or just use SmartStasis.
Familiars that give free combats will not be used if not adventuring at a location that uses adventure.php.
zarqon feel free to incorporate this into bbb if you'd like.
You cannot modify a setting by changing the value in script.
FamiliarDrops_Enabled: If this script is enabled. Ignored if you import the script and call familiar_swap().
FamiliarDrops_MinMpa: The minimum mpa required to swap to a familiar.
FamiliarDrops_MinMpaItem: Use the mall price of this item for minmpa, overrides FamiliarDrops_MinMpa if not none.
FamiliarDrops_AssumeWorst: Assume the worst turn count instead of the median, not recommended.
FamiliarDrops_Banned: Comma separated list of familiars to never switch to.
FamiliarDrops_DefaultFam: If no familiars are found, switch to this familiar by default.
I didn't add any handling for in-ronin, maybe I will idk. Probably better to just import it and do that yourself.