caphector
Member
I'm a bit behind the curve with this but I'd like to automate the GameInform dungeon. Unfortunately, the existing scripts don't work anymore and I'd like to fix it. Currently, they'll adventure until the first floor is done and then fail to go further. Mafia will prompt that "You have already cleared the area" but the script doesn't continue.
Levels 1 and 2, when cleared, gives this message: "You already cleared out this area.". Is there a way to catch that response and tell the script to go to the next level of the dungeon? The only way I can think of is to create a matcher and check after each adventure. I'm pretty sure there's a better way to check if the next level is open but I'm not sure what it is.
The script I'm currently using is this:
Levels 1 and 2, when cleared, gives this message: "You already cleared out this area.". Is there a way to catch that response and tell the script to go to the next level of the dungeon? The only way I can think of is to create a matcher and check after each adventure. I'm pretty sure there's a better way to check if the next level is open but I'm not sure what it is.
The script I'm currently using is this:
Code:
import <zlib.ash>;
item walkthru = $item[GameInformPowerDailyPro walkthru];
item magazine = $item[GameInformPowerDailyPro magazine];
void DailyPro()
{
while(my_adventures()>30)
{
cli_execute("inv refresh");
if (item_amount(walkthru) == 0)
{
if (item_amount(magazine) == 0)
{
buy(1, magazine);
}
visit_url("inv_use.php?pwd&whichitem=6174&confirm=Yep.");
cli_execute("inv refresh");
}
if (item_amount(walkthru) == 0)
{
abort("Failed to use a " + magazine );
}
adventure( my_adventures(), $location[Video Game Level 1] );
adventure( my_adventures(), $location[Video Game Level 2] );
while ( my_adventures() > 0 )
{
adv1($location[Video Game Level 3], -1, "");
if (get_property("lastEncounter") == "A Gracious Maze")
{
visit_url("place.php?pwd&whichplace=faqdungeon");
}
else if (get_property("lastEncounter") == "")
{
break;
}
}
}
}
void main()
{
DailyPro();
}