Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.24 KB | None | 0 0
  1. @ECHO off
  2. REM Originally created by /u/Cameronza. Updated by /u/OffensiveExile.
  3.  
  4. ECHO OldSchool Runescape - World Pinger!
  5. ECHO Version 0.2 - Credits to /u/Cameronza.
  6. ECHO.
  7. SETLOCAL enabledelayedexpansion
  8. SET preword=300
  9. ECHO A percentage of the world ping is added to the world ping to find more worlds.
  10. ECHO Type 0 if you want to find the absolute lowest world ping possible.
  11. ECHO Type 9999 if you want to find all words.
  12. SET /p percentage="Percentage: "
  13. ECHO.
  14. ECHO If no worlds show, please wait until instructed otherwise.
  15. FOR /L %%i IN ( 1,1,125) DO (
  16.     FOR /f "tokens=4 delims=Replyfrombytes=time<ms" %%x in ('Ping oldschool%%i.runescape.com -w 1000 -n 1 ^| find "TTL" ') DO (
  17.         set /a world=preword+%%i
  18.         IF !osping! GEQ %%x (
  19.             ECHO WORLD_!world! = %%x ms
  20.             SET /a osping = %%x*percentage
  21.             SET /a osping = !osping:~0,-2!+%%x
  22.         ) ELSE IF %%i==1 (
  23.             SET /a osping = %%x*percentage
  24.             SET /a osping = !osping:~0,-2!+%%x
  25.             ECHO WORLD_!world! = %%x ms - This is usually the highest ping based on your region.
  26.         )
  27.     )
  28. )
  29. ECHO All low ping responsive worlds are shown.
  30. ECHO If none are listed, the worlds are offline or there is a connectivity issue.
  31. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement