Module:Hiscore counts

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Module:Hiscore counts/doc. [edit] [history] [purge]
Module:Hiscore counts is invoked by .

Hiscore data grabbed by User:Cresbot.

Implements the following templates:

Note that some overall counts are not updated due to the complexity in acquiring the data.

If data is being updated manually, avoid changing the format of the data otherwise automatic updates may break.


local p = {}

--
-- Data for 120s (includes virtual 120s)
-- [[Template:120s]]
--
local count_120s = {}
count_120s["agility"] = "10,259"
count_120s["archaeology"] = "49,826"
count_120s["attack"] = "27,237"
count_120s["constitution"] = "46,841"
count_120s["construction"] = "9,533"
count_120s["cooking"] = "9,963"
count_120s["crafting"] = "10,068"
count_120s["defence"] = "46,878"
count_120s["divination"] = "9,270"
count_120s["dungeoneering"] = "53,616"
count_120s["farming"] = "44,595"
count_120s["firemaking"] = "17,527"
count_120s["fishing"] = "15,901"
count_120s["fletching"] = "9,901"
count_120s["herblore"] = "45,347"
count_120s["hunter"] = "14,345"
count_120s["invention"] = "101,214"
count_120s["magic"] = "37,037"
count_120s["mining"] = "18,090"
count_120s["prayer"] = "10,972"
count_120s["ranged"] = "36,977"
count_120s["runecrafting"] = "6,683"
count_120s["slayer"] = "47,372"
count_120s["smithing"] = "13,176"
count_120s["strength"] = "24,371"
count_120s["summoning"] = "18,689"
count_120s["thieving"] = "22,837"
count_120s["woodcutting"] = "9,286"
-- @notes this isn't updated by [[User:Cresbot]]
count_120s["overall"] = "62"
count_120s["updated"] = "04 December 2021"

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 ironman with 120s (includes virtual 120s)
-- [[Template:Ironman with 120s]]
--
local count_120s_ironman = {}
count_120s_ironman["agility"] = "92"
count_120s_ironman["archaeology"] = "3,019"
count_120s_ironman["attack"] = "1,128"
count_120s_ironman["constitution"] = "2,218"
count_120s_ironman["construction"] = "114"
count_120s_ironman["cooking"] = "128"
count_120s_ironman["crafting"] = "119"
count_120s_ironman["defence"] = "1,911"
count_120s_ironman["divination"] = "199"
count_120s_ironman["dungeoneering"] = "1,147"
count_120s_ironman["farming"] = "1,997"
count_120s_ironman["firemaking"] = "186"
count_120s_ironman["fishing"] = "271"
count_120s_ironman["fletching"] = "103"
count_120s_ironman["herblore"] = "1,139"
count_120s_ironman["hunter"] = "287"
count_120s_ironman["invention"] = "6,353"
count_120s_ironman["magic"] = "1,486"
count_120s_ironman["mining"] = "357"
count_120s_ironman["prayer"] = "221"
count_120s_ironman["ranged"] = "2,034"
count_120s_ironman["runecrafting"] = "91"
count_120s_ironman["slayer"] = "1,514"
count_120s_ironman["smithing"] = "144"
count_120s_ironman["strength"] = "970"
count_120s_ironman["summoning"] = "156"
count_120s_ironman["thieving"] = "1,032"
count_120s_ironman["woodcutting"] = "153"
-- @notes this isn't updated by [[User:Cresbot]]
count_120s_ironman["overall"] = "0"
count_120s_ironman["updated"] = "04 December 2021"

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

    return count_120s_ironman[skill]
end

--
-- End ironman with 120s
--

--
-- Data for 99s (including overall)
-- [[Template:99s]]
--
local count_99s = {}
count_99s["agility"] = "171,353"
count_99s["archaeology"] = "124,173"
count_99s["attack"] = "283,983"
count_99s["constitution"] = "313,283"
count_99s["construction"] = "171,866"
count_99s["cooking"] = "248,658"
count_99s["crafting"] = "201,673"
count_99s["defence"] = "300,151"
count_99s["divination"] = "169,673"
count_99s["dungeoneering"] = "176,611"
count_99s["farming"] = "180,090"
count_99s["firemaking"] = "261,002"
count_99s["fishing"] = "209,891"
count_99s["fletching"] = "237,490"
count_99s["herblore"] = "234,947"
count_99s["hunter"] = "178,461"
count_99s["invention"] = "164,452"
count_99s["magic"] = "305,493"
count_99s["mining"] = "217,504"
count_99s["prayer"] = "232,233"
count_99s["ranged"] = "276,643"
count_99s["runecrafting"] = "159,101"
count_99s["slayer"] = "213,151"
count_99s["smithing"] = "232,113"
count_99s["strength"] = "302,321"
count_99s["summoning"] = "212,759"
count_99s["thieving"] = "185,689"
count_99s["woodcutting"] = "227,445"
-- @notes this isn't updated by [[User:Cresbot]]
count_99s["overall"] = "2"
-- @notes this isn't updated by [[User:Cresbot]]
count_99s["overall f2p"] = "8"
count_99s["updated"] = "04 December 2021"

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 ironman 99s
-- [[Template:Ironman with 99s]]
--
local count_99s_ironman = {}
count_99s_ironman["agility"] = "5,749"
count_99s_ironman["archaeology"] = "8,013"
count_99s_ironman["attack"] = "10,633"
count_99s_ironman["constitution"] = "14,279"
count_99s_ironman["construction"] = "5,941"
count_99s_ironman["cooking"] = "7,636"
count_99s_ironman["crafting"] = "7,578"
count_99s_ironman["defence"] = "13,449"
count_99s_ironman["divination"] = "10,401"
count_99s_ironman["dungeoneering"] = "7,126"
count_99s_ironman["farming"] = "11,191"
count_99s_ironman["firemaking"] = "7,092"
count_99s_ironman["fishing"] = "9,286"
count_99s_ironman["fletching"] = "6,924"
count_99s_ironman["herblore"] = "9,185"
count_99s_ironman["hunter"] = "7,213"
count_99s_ironman["invention"] = "10,508"
count_99s_ironman["magic"] = "14,661"
count_99s_ironman["mining"] = "13,943"
count_99s_ironman["prayer"] = "8,327"
count_99s_ironman["ranged"] = "10,692"
count_99s_ironman["runecrafting"] = "6,612"
count_99s_ironman["slayer"] = "10,014"
count_99s_ironman["smithing"] = "12,153"
count_99s_ironman["strength"] = "10,366"
count_99s_ironman["summoning"] = "7,828"
count_99s_ironman["thieving"] = "12,356"
count_99s_ironman["woodcutting"] = "7,256"
-- @notes this isn't updated by [[User:Cresbot]]
count_99s_ironman["overall"] = "0"
-- @notes this isn't updated by [[User:Cresbot]]
count_99s_ironman["overall f2p"] = "0"
count_99s_ironman["updated"] = "04 December 2021"

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

    return count_99s_ironman[skill]
end

--
-- End ironman 99s
--

--
-- Data for 200mxp
-- [[Template:200mxp]]
--
local count_200mxp = {}
count_200mxp["agility"] = "3,038"
count_200mxp["archaeology"] = "13,798"
count_200mxp["attack"] = "7,095"
count_200mxp["constitution"] = "18,521"
count_200mxp["construction"] = "3,017"
count_200mxp["cooking"] = "3,374"
count_200mxp["crafting"] = "3,016"
count_200mxp["defence"] = "14,970"
count_200mxp["divination"] = "2,801"
count_200mxp["dungeoneering"] = "12,305"
count_200mxp["farming"] = "10,922"
count_200mxp["firemaking"] = "4,780"
count_200mxp["fishing"] = "4,239"
count_200mxp["fletching"] = "3,123"
count_200mxp["herblore"] = "5,468"
count_200mxp["hunter"] = "3,583"
count_200mxp["invention"] = "26,356"
count_200mxp["magic"] = "13,253"
count_200mxp["mining"] = "4,823"
count_200mxp["prayer"] = "3,179"
count_200mxp["ranged"] = "12,515"
count_200mxp["runecrafting"] = "2,377"
count_200mxp["slayer"] = "7,956"
count_200mxp["smithing"] = "3,867"
count_200mxp["strength"] = "6,846"
count_200mxp["summoning"] = "5,728"
count_200mxp["thieving"] = "6,573"
count_200mxp["woodcutting"] = "3,019"
count_200mxp["overall"] = "1,541"
count_200mxp["updated"] = "04 December 2021"

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 ironman with 200mxp
-- [[Template:Ironman with 200mxp]]
--
local count_200mxp_ironman = {}
count_200mxp_ironman["agility"] = "39"
count_200mxp_ironman["archaeology"] = "724"
count_200mxp_ironman["attack"] = "268"
count_200mxp_ironman["constitution"] = "805"
count_200mxp_ironman["construction"] = "36"
count_200mxp_ironman["cooking"] = "44"
count_200mxp_ironman["crafting"] = "37"
count_200mxp_ironman["defence"] = "517"
count_200mxp_ironman["divination"] = "64"
count_200mxp_ironman["dungeoneering"] = "129"
count_200mxp_ironman["farming"] = "389"
count_200mxp_ironman["firemaking"] = "60"
count_200mxp_ironman["fishing"] = "69"
count_200mxp_ironman["fletching"] = "39"
count_200mxp_ironman["herblore"] = "97"
count_200mxp_ironman["hunter"] = "80"
count_200mxp_ironman["invention"] = "1,249"
count_200mxp_ironman["magic"] = "502"
count_200mxp_ironman["mining"] = "111"
count_200mxp_ironman["prayer"] = "81"
count_200mxp_ironman["ranged"] = "530"
count_200mxp_ironman["runecrafting"] = "41"
count_200mxp_ironman["slayer"] = "303"
count_200mxp_ironman["smithing"] = "51"
count_200mxp_ironman["strength"] = "266"
count_200mxp_ironman["summoning"] = "62"
count_200mxp_ironman["thieving"] = "279"
count_200mxp_ironman["woodcutting"] = "51"
count_200mxp_ironman["overall"] = "17"
count_200mxp_ironman["updated"] = "04 December 2021"

function p.get_200mxp_ironman(frame)
    local skill = string.lower(frame.args[1])

    if not count_200mxp_ironman[skill] then
        return 0
    end

    return count_200mxp_ironman[skill]
end

--
-- End ironman with 200mxp
--

--
-- Data for Hiscores lowest rank
-- [[Template:Hiscores lowest rank]]
--
local lowest_ranks = {}
lowest_ranks["agility"] = "15"
lowest_ranks["agility.rank"] = "936,084"
lowest_ranks["archaeology"] = "15"
lowest_ranks["archaeology.rank"] = "463,614"
lowest_ranks["attack"] = "15"
lowest_ranks["attack.rank"] = "1,471,750"
lowest_ranks["constitution"] = "15"
lowest_ranks["constitution.rank"] = "1,725,066"
lowest_ranks["construction"] = "15"
lowest_ranks["construction.rank"] = "791,064"
lowest_ranks["cooking"] = "15"
lowest_ranks["cooking.rank"] = "1,323,717"
lowest_ranks["crafting"] = "15"
lowest_ranks["crafting.rank"] = "1,149,817"
lowest_ranks["defence"] = "15"
lowest_ranks["defence.rank"] = "1,467,964"
lowest_ranks["divination"] = "15"
lowest_ranks["divination.rank"] = "632,470"
lowest_ranks["dungeoneering"] = "15"
lowest_ranks["dungeoneering.rank"] = "881,823"
lowest_ranks["farming"] = "15"
lowest_ranks["farming.rank"] = "729,909"
lowest_ranks["firemaking"] = "15"
lowest_ranks["firemaking.rank"] = "1,306,509"
lowest_ranks["fishing"] = "15"
lowest_ranks["fishing.rank"] = "1,215,868"
lowest_ranks["fletching"] = "15"
lowest_ranks["fletching.rank"] = "966,508"
lowest_ranks["herblore"] = "15"
lowest_ranks["herblore.rank"] = "824,912"
lowest_ranks["hunter"] = "15"
lowest_ranks["hunter.rank"] = "760,828"
lowest_ranks["invention"] = "15"
lowest_ranks["invention.rank"] = "333,707"
lowest_ranks["magic"] = "15"
lowest_ranks["magic.rank"] = "1,295,929"
lowest_ranks["mining"] = "15"
lowest_ranks["mining.rank"] = "1,422,653"
lowest_ranks["prayer"] = "15"
lowest_ranks["prayer.rank"] = "1,289,877"
lowest_ranks["ranged"] = "15"
lowest_ranks["ranged.rank"] = "1,190,632"
lowest_ranks["runecrafting"] = "15"
lowest_ranks["runecrafting.rank"] = "980,775"
lowest_ranks["slayer"] = "15"
lowest_ranks["slayer.rank"] = "875,718"
lowest_ranks["smithing"] = "15"
lowest_ranks["smithing.rank"] = "1,291,260"
lowest_ranks["strength"] = "15"
lowest_ranks["strength.rank"] = "1,455,606"
lowest_ranks["summoning"] = "15"
lowest_ranks["summoning.rank"] = "707,697"
lowest_ranks["thieving"] = "15"
lowest_ranks["thieving.rank"] = "911,878"
lowest_ranks["woodcutting"] = "15"
lowest_ranks["woodcutting.rank"] = "1,419,423"
lowest_ranks["overall"] = "40"
lowest_ranks["overall.rank"] = "1,989,438"
lowest_ranks["updated"] = "04 December 2021"

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