How to tell which floors of the castle have been unlocked

sven

New member
Is there a way to check which castle floors have been unlocked without generating a server hit?
Does Mafia keep track of this somewhere?
And if there isnt what would be the most sensible way to do it?
 
Last edited:

Winterbay

Active member
I don't think there is a way without generating a hit. bumcheekascend.ash determines it with the help of this function:
Code:
    int checkFloor() {
        string result = visit_url("adventure.php?snarfblat=324");
        if(contains_text(result, "You have to learn to walk before you can learn to fly."))
            return 0;
        else if (contains_text(result, "You'll have to figure out some other way to get upstairs."))
            return 1;
        else {
            setCastleChoices();
            bumRunCombat();
            return 2;
        }
    }

It returns 0 for nothing opened, 1 for ground floor opened and 2 for top floor opened. The extra calls in the last part are to handle what happens when the top floor is already open and we hit that place.
 
Top