Originally Posted by
Akraen
Question though, any idea why my recount # of ice lances is higher than the counted FoF procs in the combat log?
There are separate events for procing fof when you have zero stacks versus when you have one stack... I slightly modified the script above to account for this, which gives closer results (apparently you did double mash it once):
Code:
Linecount: 55711
# of Frostbolts cast: 3200
# of FoF procs: 506
For reference:
Code:
if ($#ARGV != 0 ) {
print "Gotta type the name of the parsefile broseph...\n";
print "$#ARGV";
exit;
}
$filename=$ARGV[0];
$numFrostbolts = 0;
$numFoFprocs = 0;
$event1 = "SPELL_CAST_SUCCESS";
$event2 = "SPELL_AURA_APPLIED";
$event3 = "SPELL_AURA_APPLIED_DOSE";
$spell1 = "\"Frostbolt\"";
$spell2 = "\"Fingers of Frost\"";
$actor = "\"Akraen\"";
$testActor = "\"Spiderr-Brill(EU)\"";
$lineCount = 0;
open (FILE, $filename) or die $!;
while (my $lines = <FILE>) {
$lineCount++;
$line = $lines;
@first = split(',', $line);
@second = split(' ', $first[0]);
#check event first
if( $second[2] ne $event1 && $second[2] ne $event2 && $second[2] ne $event3 ) {
next;
}
#next check the actor (logs pick up all sorts of randomness)
if( $first[2] ne $actor ) {
next;
}
if($second[2] eq $event1) {
if( $first[10] eq $spell1 ) {
$numFrostbolts++;
}
}
if($second[2] eq $event2 || $second[2] eq $event3 ) {
if( $first[10] eq $spell2 ) {
$numFoFprocs++;
}
}
}
close (FILE);
print "---------\n";
print "Output\n";
print "Linecount: $lineCount\n";
print "# of Frostbolts cast: $numFrostbolts\n";
print "# of FoF procs: $numFoFprocs\n";
exit;