I'm to lazy to put it on mediafire.. So if you can package it yourself here is the script..
function initPingCheck()
{
cancel($pingCheck);
if($Server::Dedicated)
{
error("Ping Diagnostic: Please try running a non dedicated server before trying again.");
return;
}
if(!isUnlocked())
{
messageAll('',"Ping Diagnostic: Internet play is not available in the demo.");
error("Ping Diagnostic: Internet play is not available in the demo.");
return;
}
if(JS_Serverlist.rowCount() <= 0)
{
JoinServerGui.queryWebMaster();
$pingCheck = schedule(15000,0,initPingCheck);
messageAll('',"Ping Diagnostic: No servers found in the server list. Initiating Internet Query.");
echo("Ping Diagnostic: No servers found in the server list. Initiating Internet Query.");
return;
}
for(%x=0;%x<JS_Serverlist.rowCount();%x++)
{
%line = JS_Serverlist.getRowText(%x);
//echo(getField(%line,2) NL localClientConnection.netName @ "'s " @ $Pref::Server::Name);
if(strStr(getField(%line,2),$Pref::Server::Name) != -1)
{
echo(getField(%line,3));
if(getField(%line,3) $= "Dead")
{
messageAll('',"Ping Diagnostic: A connection is not able to be made with your server. Initiating Internet Query.");
echo("Ping Diagnostic: A connection is not able to be made with your server. Initiating Internet Query.");
JoinServerGui.queryWebMaster();
}
else
{
messageAll('',"Ping Diagnostic: A connection is able to be made with your server. Diagnostic shutting down.");
echo("Ping Diagnostic: A connection is able to be made with your server. Diagnostic shutting down.");
return;
}
break;
}
}
$pingCheck = schedule(15000,0,initPingCheck);
}
$pingcheck = schedule(5000,0,initPingCheck);