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 available ops that can be performed on this NPC.
Table of params belonging to NPC.
Tile size of NPC.
Table containing stats for this NPC.
Class representing the base data of an NPC type.