Jump to content

Fetching other players levels


Recommended Posts

Posted (edited)
6 minutes ago, AdhesiveBandage said:

I was reading through the api and was wondering if there is a way to fetch other peoples level and stats rather than just fetching my own. I was planning on using it to avoid players in PVP worlds while looting. From what I am reading on https://osbot.org/api/org/osbot/rs07/api/Skills.html it seems to only refer to my Player.

I don't think you can get anything other than their combat lvl, whether they're skulled etc. using the API:
 

Player player = getPlayers().closest("Adhesivebandage");

int lvl = player.getCombatLevel();



If you actually need their different skill levels (not sure why you would), you can make use of the official OSRS web API:

 

Edited by Explv
Posted
15 hours ago, Explv said:

I don't think you can get anything other than their combat lvl, whether they're skulled etc. using the API:
 


Player player = getPlayers().closest("Adhesivebandage");

int lvl = player.getCombatLevel();



If you actually need their different skill levels (not sure why you would), you can make use of the official OSRS web API:

 

This solved my problem. Thanks for the help!

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...