Player functionalities¶
-
class
players.
Player
(name)¶ Class with attributes of a Runescape Player using Jagex’s RS3 API
Most of Runescape 3’s API can be accessed at: http://runescape.wikia.com/wiki/Application_programming_interface
…
Parameters: - name : str
Name of the Player, gets set to case-sensitive name later if his RuneMetrics profile is not private. If you’re also working with clans and the player’s profile is private, name should be passed case-sensitively. Otherwise some clan attributes will not be available.
Attributes: - name : str
Name of the Player, gets set to case-sensitive name later if his RuneMetrics profile is not private.
- exp : int or None
Total Exp of the player, or None if private_profile is True.
- combat_level : int or None
Total Combat Level of the player, or None if private_profile is True.
- total_level : int or None
Total Skill Level of the player, or None if private_profile is True.
- private_profile : bool
If the player has a private RuneMetrics profile or not.
- exists : bool
If the player exists or not.
Methods
runemetrics_info
()Gets player info from Runemetrics’ API. set_runemetrics_info
()Sets Runemetrics info attributes for the Player. -
runemetrics_info
()¶ Gets player info from Runemetrics’ API. Sets private_profile to True if his Runemetrics profile is found to be Private.
Format: >>> { … “magic”:16216354, … “questsstarted”:5, … “totalskill”:2715, … “questscomplete”:198, … “questsnotstarted”:32, … “totalxp”:1037291112, … “ranged”:84195157, … “activities”:[ … … ], … # “skillvalues” has all skills and they are marked with their respective ID’s, only 3 were shown here … “skillvalues”:[ … { … “level”:120, … “xp”:1857550415, … “rank”:12014, … “id”:26 … }, … { … “level”:99, … “xp”:1202360390, … “rank”:10370, … “id”:6 … }, … { … “level”:99, … “xp”:841951573, … “rank”:26941, … “id”:3 … }, … ], … “name”:”NRiver”, … “rank”:”36,708”, … “melee”:527931306, … “combatlevel”:138, … “loggedIn”:”false” … }
- dict or bool
- Runemetrics player info if the player profile is public, or False if it is Private.
-
set_runemetrics_info
()¶ Sets Runemetrics info attributes for the Player.