World Ping Checker

Go down

World Ping Checker Empty World Ping Checker

Post by elemntsk8ter on Tue Nov 26, 2019 9:29 pm

Wrote this little while loop to return the ping for your best 5 worlds.

Simply save it as a .ps1 file for powershell and let it rip. Smile

This is for Windows users.

#####################COMMENTS#####################
I AM NOT RESPONSIBLE IF THE BEST PING IS FREE TO PLAY OR PVP!

WILL CONTINUE TO IMPROVE WITH SELECTORS FOR NONMEMS, MEMS, PVP, ETC

If you'd like to see the ping for every world, remove "| Select -Last 5" from the last line.
If the world doesn't return a ping, the results will state "World is down." 
However, you will only see this if you follow the above comment to to view all worlds.

If you get an error that you cannot run scripts, run Powershell as an Administrator and run this first:

Code:
set-executionpolicy remotesigned


Code:
$WarningPreference= "SilentlyContinue"
#World 1 is World 301
$world = 1
$pingArray = @{}

#while world not equal to 235 which is 535 (currently 534 worlds)
while($world -ne 235) {
$domain = "oldschool" + $world + ".runescape.com"
$tnc = (Test-NetConnection $domain)
$success = $tnc.PingSucceeded
if ($success -eq "True") {
$ping = $tnc.PingReplyDetails.RoundTripTime
} else {
$ping = "World is down."
}
$pingArray.Add("World "+(300+$world),$ping)
$world++
}

$pingArray.GetEnumerator() | Sort Value -Descending | Select -Last 5

Read-Host -Prompt "Press Enter to exit"

Script is running:
World Ping Checker Workin10


Script is done:
World Ping Checker Done10


Smile


Last edited by elemntsk8ter on Tue Apr 14, 2020 4:36 pm; edited 24 times in total
elemntsk8ter
elemntsk8ter

World Ping Checker YP5zkAJ

Posts : 304
Reputation : 18
Age : 29
Join date : 2017-12-05


Back to top Go down

World Ping Checker Empty Re: World Ping Checker

Post by Bodjery on Thu Nov 28, 2019 4:52 pm

I wish I could understand how to do this! I have a mac.... it's very interesting, since many worlds have different response to our own services, specially being from different parts of the world.
Any enlightment, will be fully appreciated!
Thank you!
Bod.
Bodjery
Bodjery

Posts : 99
Reputation : 18
Age : 59
Join date : 2018-08-24


Back to top Go down

World Ping Checker Empty Re: World Ping Checker

Post by elemntsk8ter on Fri Nov 29, 2019 6:09 pm

@Bodjery - Here are some instructions on how to install and run Powershell on a Mac. Then just copy and paste the bit into the terminal and boom, you're off and running.

https://www.howtogeek.com/267858/how-to-install-microsoft-powershell-on-linux-or-os-x/

Let me know if you need any help, and I can walk you through it on Discord.
elemntsk8ter
elemntsk8ter

World Ping Checker YP5zkAJ

Posts : 304
Reputation : 18
Age : 29
Join date : 2017-12-05


Back to top Go down

World Ping Checker Empty Re: World Ping Checker

Post by elemntsk8ter on Tue Apr 14, 2020 11:34 am

bump for updates to script Smile
elemntsk8ter
elemntsk8ter

World Ping Checker YP5zkAJ

Posts : 304
Reputation : 18
Age : 29
Join date : 2017-12-05


Back to top Go down

World Ping Checker Empty Re: World Ping Checker

Post by The_Gamed on Tue Apr 14, 2020 2:36 pm

Nice little tip/trick element!
The_Gamed
The_Gamed

World Ping Checker 4068HaS

Posts : 484
Reputation : 28
Join date : 2018-10-30


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum