RuneScape Wiki
Advertisement

Documentation for this module may be created at Module:Hiscore counts/doc

--
-- Hiscore data grabbed by [[User:Cresbot]]
--
-- While the bot does change these numbers, they can be updated manually as well
-- Be sure to find the correct set of numbers to update
-- You can use Control + F to find the specific template that sent you here
-- Or you can read through the comments
-- ** Be sure to leave the rest of the code the way it is **
-- Skills/etc are left lower case intentionally

local p = {}

--
-- Data for 120s (virtual and dungeoneering)
-- [[Template:120s]]
--
local count_120s = {
    ["agility"] = "1,856",
    ["attack"] = "7,206",
    ["constitution"] = "14,393",
    ["construction"] = "1,483",
    ["cooking"] = "3,954",
    ["crafting"] = "1,826",
    ["defence"] = "14,440",
    ["divination"] = "1,863",
    ["dungeoneering"] = "34,156",
    ["farming"] = "2,841",
    ["firemaking"] = "6,780",
    ["fishing"] = "6,021",
    ["fletching"] = "2,770",
    ["herblore"] = "3,906",
    ["hunter"] = "2,117",
    ["invention"] = "27,687",
    ["magic"] = "12,352",
    ["mining"] = "6,002",
    ["prayer"] = "2,652",
    ["ranged"] = "11,637",
    ["runecrafting"] = "1,443",
    ["slayer"] = "7,878",
    ["smithing"] = "2,555",
    ["strength"] = "6,533",
    ["summoning"] = "5,749",
    ["thieving"] = "10,029",
    ["woodcutting"] = "2,546",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall"] = "70",
    ["updated"] = "30 June 2017"
}

function p.get_120s ( frame )
    local skill = string.lower( frame.args[1] )
    if not count_120s[skill] then
        return 0
    end

    return count_120s[skill]
end

--
-- End 120s
--

--
-- Data for 99s (including overall)
-- [[Template:99s]]
--
local count_99s = {
    ["agility"] = "87,169",
    ["attack"] = "200,073",
    ["constitution"] = "227,172",
    ["construction"] = "87,946",
    ["cooking"] = "199,479",
    ["crafting"] = "103,026",
    ["defence"] = "207,805",
    ["divination"] = "79,461",
    ["dungeoneering"] = "109,603",
    ["farming"] = "88,445",
    ["firemaking"] = "192,685",
    ["fishing"] = "134,454",
    ["fletching"] = "164,793",
    ["herblore"] = "146,793",
    ["invention"] = "56,411",
    ["hunter"] = "89,068",
    ["magic"] = "225,654",
    ["mining"] = "115,893",
    ["prayer"] = "149,054",
    ["ranged"] = "197,281",
    ["runecrafting"] = "91,926",
    ["slayer"] = "129,818",
    ["smithing"] = "113,013",
    ["strength"] = "227,216",
    ["summoning"] = "130,754",
    ["thieving"] = "97,621",
    ["woodcutting"] = "174,055",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall"] = "10,000",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall f2p"] = "8",
    ["updated"] = "30 June 2017"
}

function p.get_99s ( frame )
    local skill = string.lower( frame.args[1] )
    if not count_99s[skill] then
        return 0
    end

    return count_99s[skill]
end

--
-- End 99s
--

--
-- Data for 200mxp
-- [[Template:200mxp]]
--
local count_200mxp = {
    ["agility"] = "486",
    ["attack"] = "1,128",
    ["constitution"] = "3,129",
    ["construction"] = "431",
    ["cooking"] = "1,399",
    ["crafting"] = "533",
    ["defence"] = "2,308",
    ["divination"] = "486",
    ["dungeoneering"] = "8,642",
    ["farming"] = "745",
    ["firemaking"] = "1,659",
    ["fishing"] = "1,365",
    ["fletching"] = "733",
    ["herblore"] = "822",
    ["hunter"] = "589",
    ["invention"] = "4,499",
    ["magic"] = "2,484",
    ["mining"] = "1,312",
    ["prayer"] = "582",
    ["ranged"] = "2,214",
    ["runecrafting"] = "433",
    ["slayer"] = "1,217",
    ["smithing"] = "623",
    ["strength"] = "1,079",
    ["summoning"] = "1,580",
    ["thieving"] = "2,864",
    ["woodcutting"] = "693",
    ["overall"] = "178",
    ["updated"] = "30 June 2017"
}

function p.get_200mxp ( frame )
    local skill = string.lower( frame.args[1] )
    if not count_200mxp[skill] then
        return 0
    end

    return count_200mxp[skill]
end

--
-- End 200mxp
--

--
-- Data for Hiscores lowest rank
-- [[Template:Hiscores lowest rank]]
--
local lowest_ranks = {
    ["agility"] = "15",
    ["agility.rank"] = "910,754",
    ["attack"] = "15",
    ["attack.rank"] = "1,354,987",
    ["constitution"] = "15",
    ["constitution.rank"] = "1,540,891",
    ["construction"] = "15",
    ["construction.rank"] = "744,659",
    ["cooking"] = "15",
    ["cooking.rank"] = "1,241,565",
    ["crafting"] = "15",
    ["crafting.rank"] = "1,090,441",
    ["defence"] = "15",
    ["defence.rank"] = "1,346,961",
    ["divination"] = "15",
    ["divination.rank"] = "508,882",
    ["dungeoneering"] = "15",
    ["dungeoneering.rank"] = "827,723",
    ["farming"] = "15",
    ["farming.rank"] = "670,443",
    ["firemaking"] = "15",
    ["firemaking.rank"] = "1,236,415",
    ["fishing"] = "15",
    ["fishing.rank"] = "1,162,597",
    ["fletching"] = "15",
    ["fletching.rank"] = "871,357",
    ["herblore"] = "15",
    ["herblore.rank"] = "789,206",
    ["hunter"] = "15",
    ["hunter.rank"] = "711,409",
    ["invention"] = "15",
    ["invention.rank"] = "168,345",
    ["magic"] = "15",
    ["magic.rank"] = "1,241,991",
    ["mining"] = "15",
    ["mining.rank"] = "1,260,503",
    ["prayer"] = "15",
    ["prayer.rank"] = "1,210,373",
    ["ranged"] = "15",
    ["ranged.rank"] = "1,164,030",
    ["runecrafting"] = "15",
    ["runecrafting.rank"] = "944,530",
    ["slayer"] = "15",
    ["slayer.rank"] = "842,887",
    ["smithing"] = "15",
    ["smithing.rank"] = "1,183,758",
    ["strength"] = "15",
    ["strength.rank"] = "1,346,754",
    ["summoning"] = "15",
    ["summoning.rank"] = "656,590",
    ["thieving"] = "15",
    ["thieving.rank"] = "888,152",
    ["woodcutting"] = "15",
    ["woodcutting.rank"] = "1,321,614",
    ["overall"] = "38",
    ["overall.rank"] = "1,970,618",
    ["updated"] = "30 June 2017"
}

function p.get_lowest_ranks ( frame )
    local skill = string.lower( frame.args[1] )
    if not lowest_ranks[skill] then
        return 0
    end

    return lowest_ranks[skill]
end

--
-- End Hiscores lowest rank
--
return p
Advertisement