// This will return the location of the currently most expensive semi-rare
location expensive_semi(string last) {
item [location] semi_rare;
semi_rare[$location[The Purple Light District]] = $item[lewd playing card];
semi_rare[$location[Haunted Billiards Room]] = $item[cube of billiard chalk];
semi_rare[$location[Outskirts of The Knob]] = $item[Knob Goblin lunchbox];
semi_rare[$location[Limerick Dungeon]] = $item[cyclops eyedrops];
remove semi_rare[last. to_location()];
// This will return the location of the currently most expensive semi-rare
location expensive_semi(string last) {
item [location] semi_rare;
semi_rare[$location[The Purple Light District]] = $item[lewd playing card];
semi_rare[$location[Lab: Menagerie 2]] = $item[irradiated pet snacks];
semi_rare[$location[Outskirts of The Knob]] = $item[Knob Goblin lunchbox];
semi_rare[$location[Limerick Dungeon]] = $item[cyclops eyedrops];
remove semi_rare[last. to_location()];
void fortune_cookie() {
int last = get_property("semirareCounter").to_int();
location locale = expensive_semi(get_property("semirareLocation"));
string billiard = "2";
if(locale == $location[Haunted Billiards Room]) {
billiard = get_property("choiceAdventure330");
if(billiard != "2")
set_property("choiceAdventure330", "2");
void fortune_cookie() {
int last = get_property("semirareCounter").to_int();
location locale = expensive_semi(get_property("semirareLocation"));
string billiard = "2";
if(locale == $location[Lab: Menagerie 2]) {
billiard = get_property("choiceAdventure330");
if(billiard != "2")
set_property("choiceAdventure330", "2");
foreach key in semi_rare
{
if(mall_price(semi_rare[key]) > expensive)
{
best = key;
expensive = mall_price( semi_rare[key] );
}
}
> Checking counters now.
clan_hobopolis.php?place=8&pwd
[4563] Outskirts of The Knob
Encounter: Welcome Back!
choice.php?whichchoice=277&option=1&pwd
You acquire an item: glimmering roc feather
> Oops, that wasn't the right number!
[4563] Haunted Library
Encounter: Like the Sunglasses, But Less Comfortable
You acquire an item: black eyedrops
Would it be possible for it to do something when it gets to 159 turns since the last semirare? Specifically, I'd like it to try to eat another cookie if there is no active counter. And then I'd like it to stop and tell me that I haven't eaten a cookie yet if that fails (bank until tomorrow).
Since there seems to be only one cookie variable per mafia instance, rather than character, do you think it's possible put put a "in-run" check in there so the script is ignored if you're in the middle of an ascension?
As StormCrow42 was saying, I'm no longer supporting this script since all of its functions have been usurped by CounterChecker. I changed the name because it does a lot more than just check for semi-rares.Since there seems to be only one cookie variable per mafia instance, rather than character, do you think it's possible put put a "in-run" check in there so the script is ignored if you're in the middle of an ascension?
Thanks for the code, Bale.