Pazleysox
Member
Code:
{
string log = visit_url( "clan_raidlogs.php" );
foreach place in $strings[forest]
if(log.contains_text( ") drove some werewolves out of the " + place))
print( "The " + place + " has had werewolves driven out" );
else print( "The " + place + " needs to have werewolves driven out" );
}
This only shows one instance of the werewolves being driven out of the castle, even if there is 2.
Code:
if(log.contains_text( ") drove some werewolves out of the " + place) && (log.contains_text( ") drove some werewolves out of the " + place)))
this also only looks at the first instance.
Code:
{
string log = visit_url( "clan_raidlogs.php" );
foreach place in $strings[Woods, Village]
if(log.contains_text( ") drove some werewolves out of the "))
print( "The " + place + " has had werewolves driven out" );
else print( "The " + place + " needs to have werewolves driven out" );
}
Anyone have any suggestions how I can get the script to look into 2 locations for? IE, I need to look in the "Woods" part of the logs, and again in the "Village" for the same thing.