ereinion
Member
I'm making a script in which I want to get the various drops from the boots, medium etc. In order to achieve this I've incorporated two consult scripts into the script:
Are they going to do what I want them to do, and if they are, are there better ways to achieve that goal than what I'm currently doing?
- edit - Well, after having tested it, I see that it works, but is there a better way to approach the problem? As it is this creates quite a few server hits, so baking it all together in a macro would probably be better. Is that possible at all?
Oh, and is there currently anything tracking how many carrotnose-drops you've got from the snow suit? Couldn't find anything obvious in the kolmafia properties.
- edit 2 - Nevermind.
PHP:
string siphonAt="red";
// Need some special combat handling, if we want the boots to stomp for us.
string stompOpponent(int round, string opp, string combatText) {
if (combatText.contains_text("ache for some quality")) {
return "skill release the boots";
} else {
return get_ccs_action(round);
}
return get_ccs_action(round - 1);
}
// Special combat handling for getting the right booze with the medium
string siphonOpponent(int round, string opp, string combatText) {
switch (siphonAt) {
case "red":
if ($familiar[happy medium].image == "medium_3.gif") { return "skill siphon spirit"; }
return get_ccs_action(round);
case "orange":
if ($familiar[happy medium].image == "medium_2.gif") { return "skill siphon spirit"; }
return get_ccs_action(round);
case "blue":
if ($familiar[happy medium].image == "medium_1.gif") { return "skill siphon spirit"; }
return get_ccs_action(round);
default:
return get_ccs_action(round);
}
}
- edit - Well, after having tested it, I see that it works, but is there a better way to approach the problem? As it is this creates quite a few server hits, so baking it all together in a macro would probably be better. Is that possible at all?
Oh, and is there currently anything tracking how many carrotnose-drops you've got from the snow suit? Couldn't find anything obvious in the kolmafia properties.
- edit 2 - Nevermind.
Last edited: