Old School Runescape !stats command

OSRS Stats Command

English Version

Hey I recently was able to make a stats command that works for the Old School runescape highscores. Idk how much this is wanted but if anyone is interested I’ll leave it below.

!addcom !stats $(eval var a=`$(urlfetch json https://secure.runescape.com/m=hiscore_oldschool/index_lite.ws?player=$(1))`;var b=`$(1)`;var c=`$(2)`;var d=`$(3)`;var e=`$(4)`;var f=`$(5)`;var g=`$(query)`;$(urlfetch json https://pastebin.com/raw/0jwx4jLq))

Here is a link to how it works.
If your interested in seeing the pastebin behind the command check here.
If you have any trouble with the command or have any questions feel free to message me or leave them below.

Example Demonstration of Command

Here is what the command outputs:

Versión en Español

Hola, apenas hice un comando de estadísticas que funciona para los hiscores de OSRS. No sé si te importan ustedes, pero si estan interesado, lo dejo abajo.

!addcom !stats $(eval var a=`$(urlfetch json https://secure.runescape.com/m=hiscore_oldschool/index_lite.ws?player=$(1))`;var b=`$(1)`;var c=`$(2)`;var d=`$(3)`;var e=`$(4)`;var f=`$(5)`;var g=`$(query)`;$(urlfetch json https://pastebin.com/raw/kh6PJKqk))

Currently not completely in Spanish.

3 Likes

Very nice command. Is there a way to do this with any game? I have seen people use !blitz @username for chess.com and it will pull that users stats.

If the games offer some sort of way to show the stats in plain text it is most likely possible for said game to have a similar command.

hey dude, is it possible to make it return combat stats as default? so it doesnt require you to type “combat” after the username each time?

thats all i’d use it for so dont need the other searches.

cheers!

You could make a second command for that that auto does the combat stats.

!addcom !command_name -a=!stats $(1) combat

If you need any more help let me know

1 Like

that works perfectly!! thank you so much :smiley:

Is there code to make it so if someone types !stats without an osrs username following it then it links to my stats by default?

@wolfyosrs

!addcom !command_name -a=!stats Your_Username $(1)

Works perfectly thank you so much!