As far as high ping goes, you could try to do something weird with proxies or your router, but you could simulate lag if you wanted by spamming this:
function pause(%x)
{
%start = getrealtime();
while(getrealtime() - %start < %x)
continue;
echo("done.");
}