Accutrix / Rolimons

A module for interacting with the Rolimons website
MIT License
18 stars 7 forks source link
accutrix roblox rolimons

Rolimons

An API for interacting with the Rolimons website, with full support for object-oriented programming. This API is useful for retrieving data regarding item value, RAP, and demand.

Classes

The Rolimon's API has full support for object-oriented programming, for better updating mechanisms.

Item

The item class is to represent an item on the ROBLOX catalog, with an asset-ID. This includes everything from limited items, to packages.

Constructor

The constructor of the item class creates an item. It takes in only one parameter, which is the item's asset-ID

local Item = Rolimons.Get("Item")
local classicFedora = Item.new(1029025)

Methods

GetData Get's the item's data from Rolimons. This method is used internally, and takes no parameters.

local data = classicFedora:GetData()

UpdateData Get's the item's data from Rolimons, and updates the object. This method can be used to update (in intervals) when accuracy is key, and takes no parameters.

classicFedora:UpdateData()

Properties

Player

The player class is to represent an player/user on the ROBLOX website, with an user-ID. Please note that this class is quite limited at the moment, and inventory APIs will be implemented soon.

Constructor

The constructor of the item class creates an item. It takes in only one parameter, which can be either the player's user-ID or their username.

local Player = Rolimons.Get("Player")

local shedletksy = Player.new(261)
local optimisticSide = Player.new("OptimisticSide")

Methods

GetData Get's the item's data from Rolimons. This method is used internally, and takes no parameters.

local data = shedletsky:GetData()

UpdateData Get's the player's data from Rolimons, and updates the object. This method can be used to update (in intervals) when accuracy is key, and takes no parameters.

shetletsky:UpdateData()

Properties

Game

The item class is to represent an item on the ROBLOX catalog, with an asset-ID. This includes everything from limited items, to packages.

Constructor

The constructor of the item class creates an item. It takes in only one parameter, which is the game's game-ID

local Game = Rolimons.Get("Game")
local murderMystery2 = Game.new(142823291)

Methods

GetData Get's the game's data from Rolimons. This method is used internally, and takes no parameters.

local data = murderMystery2:GetData()

UpdateData Get's the game's data from Rolimons, and updates the object. This method can be used to update (in intervals) when accuracy is key, and takes no parameters.

murderMystery2:UpdateData()