Hey guys,
In the hobopolis sewers, I am trying to find a way to retrieve the number of grates that have been opened.
I understand that:
Will produce a string of the dungeon logs. The lines I am looking for are all in the fashion:
Therefore I tried the following code:
I had thought this would create a map of all the lines for sewer grates. However, all it did was froze mafia.
In retrospect, I don't think that even if this did work as expected it would produce the results I wanted, as it wouldn't catch the numbers of how many grates were opened (I'm not overly worried about who opened how many).
Can anyone give me any pointers?
Cheers,
Ben
In the hobopolis sewers, I am trying to find a way to retrieve the number of grates that have been opened.
I understand that:
Code:
string parse_logs = visit_url( "clan_raidlogs.php" );
Will produce a string of the dungeon logs. The lines I am looking for are all in the fashion:
Code:
<name> opened <number> sewer grate(s)
Therefore I tried the following code:
Code:
string parsed_grates = visit_url( "clan_raidlogs.php" );
string [int] parsed_lines;
int count = 0;
while( contains_text( parsed_grates , "sewer grate" ) )
{
parsed_lines[count] = substring( parsed_grates , index_of( parsed_grates , "sewer grate" ) , index_of( parsed_grates , "sewer grate" ) );
replace_string( parsed_grates , parsed_lines[count] , "" );
count = count + 1;
}
I had thought this would create a map of all the lines for sewer grates. However, all it did was froze mafia.
In retrospect, I don't think that even if this did work as expected it would produce the results I wanted, as it wouldn't catch the numbers of how many grates were opened (I'm not overly worried about who opened how many).
Can anyone give me any pointers?
Cheers,
Ben