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 (includes virtual 120s)
-- [[Template:120s]]
--
local count_120s = {}
count_120s["agility"] = "2,707"
count_120s["attack"] = "9,876"
count_120s["constitution"] = "19,308"
count_120s["construction"] = "2,254"
count_120s["cooking"] = "4,947"
count_120s["crafting"] = "2,671"
count_120s["defence"] = "19,175"
count_120s["divination"] = "3,118"
count_120s["dungeoneering"] = "36,923"
count_120s["farming"] = "4,219"
count_120s["firemaking"] = "8,739"
count_120s["fishing"] = "8,402"
count_120s["fletching"] = "3,666"
count_120s["herblore"] = "5,102"
count_120s["hunter"] = "3,808"
count_120s["invention"] = "44,082"
count_120s["magic"] = "16,544"
count_120s["mining"] = "8,463"
count_120s["prayer"] = "3,915"
count_120s["ranged"] = "15,362"
count_120s["runecrafting"] = "2,380"
count_120s["slayer"] = "17,883"
count_120s["smithing"] = "3,685"
count_120s["strength"] = "8,744"
count_120s["summoning"] = "7,520"
count_120s["thieving"] = "12,696"
count_120s["woodcutting"] = "3,674"
-- @notes this isn't updated by [[User:Cresbot]]
count_120s["overall"] = "70"
count_120s["updated"] = "26 June 2018"

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"] = "19"
count_120s_ironman["attack"] = "151"
count_120s_ironman["constitution"] = "360"
count_120s_ironman["construction"] = "23"
count_120s_ironman["cooking"] = "35"
count_120s_ironman["crafting"] = "33"
count_120s_ironman["defence"] = "308"
count_120s_ironman["divination"] = "62"
count_120s_ironman["dungeoneering"] = "427"
count_120s_ironman["farming"] = "38"
count_120s_ironman["firemaking"] = "61"
count_120s_ironman["fishing"] = "84"
count_120s_ironman["fletching"] = "21"
count_120s_ironman["herblore"] = "27"
count_120s_ironman["hunter"] = "78"
count_120s_ironman["invention"] = "1,365"
count_120s_ironman["magic"] = "289"
count_120s_ironman["mining"] = "112"
count_120s_ironman["prayer"] = "66"
count_120s_ironman["ranged"] = "294"
count_120s_ironman["runecrafting"] = "33"
count_120s_ironman["slayer"] = "295"
count_120s_ironman["smithing"] = "27"
count_120s_ironman["strength"] = "138"
count_120s_ironman["summoning"] = "39"
count_120s_ironman["thieving"] = "300"
count_120s_ironman["woodcutting"] = "46"
-- @notes this isn't updated by [[User:Cresbot]]
count_120s_ironman["overall"] = "0"
count_120s_ironman["updated"] = "26 June 2018"

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"] = "101,003"
count_99s["attack"] = "212,258"
count_99s["constitution"] = "240,048"
count_99s["construction"] = "101,331"
count_99s["cooking"] = "204,671"
count_99s["crafting"] = "117,362"
count_99s["defence"] = "222,842"
count_99s["divination"] = "96,752"
count_99s["dungeoneering"] = "119,157"
count_99s["farming"] = "102,949"
count_99s["firemaking"] = "199,750"
count_99s["fishing"] = "150,857"
count_99s["fletching"] = "173,715"
count_99s["herblore"] = "160,742"
count_99s["hunter"] = "102,010"
count_99s["invention"] = "84,060"
count_99s["magic"] = "235,348"
count_99s["mining"] = "132,412"
count_99s["prayer"] = "165,071"
count_99s["ranged"] = "209,828"
count_99s["runecrafting"] = "105,350"
count_99s["slayer"] = "148,441"
count_99s["smithing"] = "128,850"
count_99s["strength"] = "236,179"
count_99s["summoning"] = "144,434"
count_99s["thieving"] = "115,999"
count_99s["woodcutting"] = "180,555"
-- @notes this isn't updated by [[User:Cresbot]]
count_99s["overall"] = "10,000"
-- @notes this isn't updated by [[User:Cresbot]]
count_99s["overall f2p"] = "8"
count_99s["updated"] = "16 August 2018"

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"] = "1,362"
count_99s_ironman["attack"] = "2,074"
count_99s_ironman["constitution"] = "3,490"
count_99s_ironman["construction"] = "1,365"
count_99s_ironman["cooking"] = "1,997"
count_99s_ironman["crafting"] = "2,171"
count_99s_ironman["defence"] = "3,251"
count_99s_ironman["divination"] = "2,068"
count_99s_ironman["dungeoneering"] = "1,992"
count_99s_ironman["farming"] = "1,421"
count_99s_ironman["firemaking"] = "1,890"
count_99s_ironman["fishing"] = "2,128"
count_99s_ironman["fletching"] = "1,549"
count_99s_ironman["herblore"] = "1,775"
count_99s_ironman["hunter"] = "1,540"
count_99s_ironman["invention"] = "1,997"
count_99s_ironman["magic"] = "3,845"
count_99s_ironman["mining"] = "2,216"
count_99s_ironman["prayer"] = "1,982"
count_99s_ironman["ranged"] = "2,899"
count_99s_ironman["runecrafting"] = "1,984"
count_99s_ironman["slayer"] = "2,865"
count_99s_ironman["smithing"] = "1,514"
count_99s_ironman["strength"] = "1,996"
count_99s_ironman["summoning"] = "1,995"
count_99s_ironman["thieving"] = "2,178"
count_99s_ironman["woodcutting"] = "1,818"
-- @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"] = "9 February 2018"

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"] = "765"
count_200mxp["attack"] = "1,725"
count_200mxp["constitution"] = "5,345"
count_200mxp["construction"] = "756"
count_200mxp["cooking"] = "1,763"
count_200mxp["crafting"] = "838"
count_200mxp["defence"] = "3,796"
count_200mxp["divination"] = "986"
count_200mxp["dungeoneering"] = "9,655"
count_200mxp["farming"] = "1,176"
count_200mxp["firemaking"] = "2,232"
count_200mxp["fishing"] = "2,010"
count_200mxp["fletching"] = "1,059"
count_200mxp["herblore"] = "1,159"
count_200mxp["hunter"] = "1,107"
count_200mxp["invention"] = "10,849"
count_200mxp["magic"] = "4,255"
count_200mxp["mining"] = "1,977"
count_200mxp["prayer"] = "1,015"
count_200mxp["ranged"] = "3,556"
count_200mxp["runecrafting"] = "793"
count_200mxp["slayer"] = "2,406"
count_200mxp["smithing"] = "1,028"
count_200mxp["strength"] = "1,639"
count_200mxp["summoning"] = "2,224"
count_200mxp["thieving"] = "3,710"
count_200mxp["woodcutting"] = "1,103"
count_200mxp["overall"] = "390"
count_200mxp["updated"] = "16 August 2018"

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"] = "6"
count_200mxp_ironman["attack"] = "38"
count_200mxp_ironman["constitution"] = "90"
count_200mxp_ironman["construction"] = "4"
count_200mxp_ironman["cooking"] = "7"
count_200mxp_ironman["crafting"] = "7"
count_200mxp_ironman["defence"] = "64"
count_200mxp_ironman["divination"] = "15"
count_200mxp_ironman["dungeoneering"] = "57"
count_200mxp_ironman["farming"] = "9"
count_200mxp_ironman["firemaking"] = "22"
count_200mxp_ironman["fishing"] = "18"
count_200mxp_ironman["fletching"] = "6"
count_200mxp_ironman["herblore"] = "7"
count_200mxp_ironman["hunter"] = "35"
count_200mxp_ironman["invention"] = "262"
count_200mxp_ironman["magic"] = "74"
count_200mxp_ironman["mining"] = "31"
count_200mxp_ironman["prayer"] = "27"
count_200mxp_ironman["ranged"] = "66"
count_200mxp_ironman["runecrafting"] = "14"
count_200mxp_ironman["slayer"] = "33"
count_200mxp_ironman["smithing"] = "9"
count_200mxp_ironman["strength"] = "33"
count_200mxp_ironman["summoning"] = "13"
count_200mxp_ironman["thieving"] = "103"
count_200mxp_ironman["woodcutting"] = "9"
count_200mxp_ironman["overall"] = "1"
count_200mxp_ironman["updated"] = "24 May 2018"

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"] = "881,227"
lowest_ranks["attack"] = "15"
lowest_ranks["attack.rank"] = "1,315,698"
lowest_ranks["constitution"] = "15"
lowest_ranks["constitution.rank"] = "1,500,945"
lowest_ranks["construction"] = "15"
lowest_ranks["construction.rank"] = "727,500"
lowest_ranks["cooking"] = "15"
lowest_ranks["cooking.rank"] = "1,206,248"
lowest_ranks["crafting"] = "15"
lowest_ranks["crafting.rank"] = "1,060,795"
lowest_ranks["defence"] = "15"
lowest_ranks["defence.rank"] = "1,308,946"
lowest_ranks["divination"] = "15"
lowest_ranks["divination.rank"] = "506,313"
lowest_ranks["dungeoneering"] = "15"
lowest_ranks["dungeoneering.rank"] = "806,930"
lowest_ranks["farming"] = "15"
lowest_ranks["farming.rank"] = "659,274"
lowest_ranks["firemaking"] = "15"
lowest_ranks["firemaking.rank"] = "1,198,979"
lowest_ranks["fishing"] = "15"
lowest_ranks["fishing.rank"] = "1,130,760"
lowest_ranks["fletching"] = "15"
lowest_ranks["fletching.rank"] = "862,013"
lowest_ranks["herblore"] = "15"
lowest_ranks["herblore.rank"] = "765,861"
lowest_ranks["hunter"] = "15"
lowest_ranks["hunter.rank"] = "694,329"
lowest_ranks["invention"] = "15"
lowest_ranks["invention.rank"] = "184,872"
lowest_ranks["magic"] = "15"
lowest_ranks["magic.rank"] = "1,203,700"
lowest_ranks["mining"] = "15"
lowest_ranks["mining.rank"] = "1,223,996"
lowest_ranks["prayer"] = "15"
lowest_ranks["prayer.rank"] = "1,173,592"
lowest_ranks["ranged"] = "15"
lowest_ranks["ranged.rank"] = "1,131,284"
lowest_ranks["runecrafting"] = "15"
lowest_ranks["runecrafting.rank"] = "917,728"
lowest_ranks["slayer"] = "15"
lowest_ranks["slayer.rank"] = "816,989"
lowest_ranks["smithing"] = "15"
lowest_ranks["smithing.rank"] = "1,151,314"
lowest_ranks["strength"] = "15"
lowest_ranks["strength.rank"] = "1,307,430"
lowest_ranks["summoning"] = "15"
lowest_ranks["summoning.rank"] = "642,359"
lowest_ranks["thieving"] = "15"
lowest_ranks["thieving.rank"] = "859,929"
lowest_ranks["woodcutting"] = "15"
lowest_ranks["woodcutting.rank"] = "1,283,089"
lowest_ranks["overall"] = "36"
lowest_ranks["overall.rank"] = "1,930,165"
lowest_ranks["updated"] = "12 December 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