League of Legends Check Ping Before Game
What does this script?
It makes it possible to check your ping before you start a new game
Run this script when you have the client open
What does this script?
It makes it possible to check your ping before you start a new game
Run this script when you have the client open
Perl Version
PHP Code:
# contact: zamanf @ elitepvpers
# run this script before you search for a new game to check your ping
use strict;
use warnings;
use Net::Ping;
my $repetitions = shift || 20;
my ($ping,$sum) = (undef,undef);
my @data;
zamanf(qx@netstat -na | find "2099"@ =~ /(\d+.\d+.\d+.\d+):2099/);
sub zamanf {
my $ip = shift;
print "\nIP: $ip\n\n";
foreach my $i (1..$repetitions) {
if (my $rr = sprintf("%.3f",[(Net::Ping->new('icmp')->ping($ip,1))]->[1]*1000)) {
push @data, do {
printf("%d\t%.3f ms\n",$i,$rr) and $rr
}
};
}
map { $sum += $_ } @data;
printf("\naverage ping: %.3f ms\n", ($sum/$repetitions));
}
How to use
- Save the code inside a file with .pl suffix
- Open cmd.exe and navigate to the file path and run it using perl file.pl
Hit the Thanks button if you want me to keep posting new scripts 







