Decodes and returns ALL DBRows that use the same parent table.
Parent table ID, can be found in osrs.gamevals.dbtabletypes.*
Decodes and returns all the available information of a given DBRow in the form of a table. Each DBRow is structured differently and not all the information is available to the client.
The ID of the DBRow to decode.
local seventhRealmMusic = osrs.Engine.Decoders.decodeDBRow(osrs.gamevals.dbrowtypes.music_7th_realm)
local musicColumns = osrs.gamevals.dbtabletypes.music
--The table will be returned with the keys being the column names, if you know these you can access directly via
osrs.print(seventhRealmMusic.sortname)
--Otherwise you can also use the dbtabletypes to get these column names
osrs.print(seventhRealmMusic[musicColumns[1]])
Return a table of information decoded from Loc configs.
The ID of Loc to decode.
local loc = osrs.Engine.Decoders.decodeLocType(osrs.gamevals.loctypes.poh_portal_teak_empty)
osrs.print("Name: ", loc:getName())
osrs.print("Width: ", loc:getWallWidth())
local locParams = loc:getParams()
for key,value in pairs(locParams) do
osrs.print("Key: " .. key .. ", Value: " .. value )
end
Returns a table of information decoded from Npc configs
The ID of npc to decode.
local lesserdemon = osrs.Engine.Decoders.decodeNpcType(osrs.gamevals.npctypes.lesser_demon)
if lesserdemon:getSize() > 1 then
osrs.print("You should try a scythe.")
if string.find(lesserdemon.deathdrop, "bone") then
osrs.print("Grab that bonecrusher!")
end
for key, value in pairs(lesserdemon:getParams()) do
osrs.print(key .. ", " .. value)
end
Returns a table of information decoded from Obj configs
The ID of Obj to decode.
Decodes a single column of a DBROW and get whatever value(s) are in it. Useful for runtime retrievals so the whole table doesn't need to be rebuilt.
DBRow you want to access.
The column of respective DBRow you want.
This interface allows decoding of information within our client configs, providing various information depending on the type decoded. The IDs for various aspects can be found in the osrs.gamevals global table, such as osrs.gamevals.objtypes., osrs.gamevals.dbrowtypes., etc.