r18112
Loading "questlog.php?which=7" with an active protonic ghost quest active will not parse ghostLocation, and will also clear it if it's been set.
Reproducing (with ghost quest active):
Actual quest log text:
This matcher code works fine:
However, I believe the problem is due to this code, in QuestLogRequest.java:
Which seems to execute after setting the ghostLocation with the matcher code above. Well, it executes three(?) times, and two of them are after ghostLocation is matched.
Loading "questlog.php?which=7" with an active protonic ghost quest active will not parse ghostLocation, and will also clear it if it's been set.
Reproducing (with ghost quest active):
Code:
> get ghostLocation
The Haunted Conservatory
> ashq visit_url("questlog.php?which=7")
> get ghostLocation
Code:
<p><b>Don't be Afraid of Any Ghost</b><br> Investigate the paranormal activity reported at <A class=nounder target=mainpane href=place.php?whichplace=manor1><b>The Haunted Conservatory</b></a>.
This matcher code works fine:
Code:
if ( matcher.find() )
{
Preferences.setString( "ghostLocation", matcher.group( 1 ) );
}
Code:
private static void handleQuestText( String response, int source )
{
if ( source == 1 )
{
Preferences.setString( "ghostLocation", "" );
}