Bug - Fixed Mafia is miscounting Maps the Safety Shelter

From my log:
Code:
 > 3 maps available

use 1 Map to Safety Shelter Grimace Prime

[1442] Map to Safety Shelter Grimace Prime
Encounter: Deep Inside Grimace, Bow Chick-a Bow Bow
choice.php?pwd&whichchoice=536&option=1
Encounter: Deep Inside Grimace, Bow Chick-a Bow Bow
choice.php?pwd&whichchoice=536&option=1
Encounter: Deep Inside Grimace, Bow Chick-a Bow Bow
choice.php?pwd&whichchoice=536&option=2
Encounter: Deep Inside Grimace, Bow Chick-a Bow Bow
choice.php?pwd&whichchoice=536&option=1
You acquire an item: distention pill
 > 1 maps available

Here is the code that produced the log:
Code:
while ( have_effect( $effect[transpondent] ) > 0 ) {

    while ( item_amount(sheltermap) == 0 ) { adventure(1, grimace); }
    print(item_amount(sheltermap)+" maps available","blue");	
    visit_url("inv_use.php?pwd&which=3&whichitem=5172");
    visit_url(hatch); visit_url(drink); visit_url(door);
    switch (setgoal) {
	case "food" : visit_url(foodgoal);
	case "booze": visit_url(boozgoal);
	case "both" : 
	    if ( get_property("_lastgoal") == "booze" ) {
	    	visit_url(foodgoal); 
		set_property("_lastgoal","food");
	    } else if ( get_property("_lastgoal") == "food" ) {
		visit_url(boozgoal);
		set_property("_lastgoal","booze");
	    }
    }
    print(item_amount(sheltermap)+" maps available","blue");
}

PS. The thread title is supposed to be Maps TO Safety Shelter.
 
Last edited:

Veracity

Developer
Staff member
That is SOME of the code that produced the log.
visit_url(hatch) ... etc.
What is "hatch" ... etc?
 
Those are all declared at the top.
Code:
string setgoal = "both";  // Choices are: "food", "booze", "both"

location grimace = $location[Domed City of Grimacia];
item sheltermap = $item[map to safety shelter grimace prime];

string hatch = "choice.php?pwd&whichchoice=536&option=1";
string drink = "choice.php?pwd&whichchoice=536&option=1";
string  door = "choice.php?pwd&whichchoice=536&option=2";
string foodgoal = "choice.php?pwd&whichchoice=536&option=1";
string boozgoal = "choice.php?pwd&whichchoice=536&option=2";
 
Top