The ID of the un-certified and un-placeholdered variant of this Obj.
The ID of the certificate variant of this Obj.
Returns the description of the specified object, which is the text returned when running the examine op.
description string for the object. local ironSword = osrs.Engine.Decoders.decodeObjType(osrs.gamevals.objtypes.iron_sword) osrs.print(ironSword:getName(), ": ", ironSword:getDesc())
Returns the type of the current entity.
enum designating the type of the current entity.
local loc = osrs.Engine.Decoders.decodeLocType(osrs.gamevals.loctypes.poh_portal_teak_empty)
if(loc:getEntityType() == osrs.TypecodeEntityType.LOC) then
osrs.print("Found type LOC")
end
local lesserdemon = osrs.Engine.Decoders.decodeNpcType(osrs.gamevals.npctypes.lesser_demon)
if(lesserdemon:getEntityType() == osrs.TypecodeEntityType.NPC) then
osrs.print("Found type NPC")
end
Gets the id of the current datatype. Data types will return their type ID, which will match the id in gamevals.
id of the current entity.
local loc = osrs.Engine.Decoders.decodeLocType(osrs.gamevals.loctypes.poh_portal_teak_empty)
if(loc:getEntityType() == osrs.TypecodeEntityType.LOC) then
osrs.print("Found type LOC")
end
local lesserdemon = osrs.Engine.Decoders.decodeNpcType(osrs.gamevals.npctypes.lesser_demon)
if(lesserdemon:getEntityType() == osrs.TypecodeEntityType.NPC) then
osrs.print("Found type NPC")
end
Table of ops that can be performed on this object in the player's inventory
The ID of the model this Obj uses.
Table of available ops that can be performed on this NPC
Table representing params stored in the config for this object.
The ID of the placeholder variant of this Obj.
A value matching ClientOp.WornSlots if equipable. Returns -1 if not equipable.
The value of this Obj.
The weight of this Obj.
True if this Obj is equipable.
True if this Obj is stackable in inventory.
True if this Obj is tradeable.
True if this Obj is two-handed.
Class representing the base data of an OBJ type.