RuneScape Wiki
(Updating hiscore counts)
Tag: apiedit
(Updating hiscore counts)
Tag: apiedit
Line 16: Line 16:
 
--
 
--
 
local count_120s = {
 
local count_120s = {
["agility"] = "1,787",
+
["agility"] = "1,788",
["attack"] = "6,967",
+
["attack"] = "6,971",
["constitution"] = "13,920",
+
["constitution"] = "13,930",
["construction"] = "1,435",
+
["construction"] = "1,436",
["cooking"] = "3,878",
+
["cooking"] = "3,877",
["crafting"] = "1,767",
+
["crafting"] = "1,769",
["defence"] = "13,898",
+
["defence"] = "13,912",
["divination"] = "1,770",
+
["divination"] = "1,773",
["dungeoneering"] = "33,676",
+
["dungeoneering"] = "33,695",
["farming"] = "2,726",
+
["farming"] = "2,730",
["firemaking"] = "6,557",
+
["firemaking"] = "6,558",
["fishing"] = "5,776",
+
["fishing"] = "5,787",
["fletching"] = "2,738",
+
["fletching"] = "2,744",
["herblore"] = "3,854",
+
["herblore"] = "3,857",
["hunter"] = "2,013",
+
["hunter"] = "2,019",
["invention"] = "26,147",
+
["invention"] = "26,191",
["magic"] = "11,973",
+
["magic"] = "11,983",
["mining"] = "5,801",
+
["mining"] = "5,804",
["prayer"] = "2,569",
+
["prayer"] = "2,574",
["ranged"] = "11,274",
+
["ranged"] = "11,281",
["runecrafting"] = "1,363",
+
["runecrafting"] = "1,369",
["slayer"] = "6,996",
+
["slayer"] = "7,013",
["smithing"] = "2,455",
+
["smithing"] = "2,457",
["strength"] = "6,322",
+
["strength"] = "6,327",
["summoning"] = "5,704",
+
["summoning"] = "5,705",
["thieving"] = "9,773",
+
["thieving"] = "9,786",
["woodcutting"] = "2,435",
+
["woodcutting"] = "2,433",
 
-- @notes this isn't updated by [[User:Cresbot]]
 
-- @notes this isn't updated by [[User:Cresbot]]
 
["overall"] = "70",
 
["overall"] = "70",
["updated"] = "30 May 2017"
+
["updated"] = "31 May 2017"
 
}
 
}
   
Line 66: Line 66:
 
--
 
--
 
local count_99s = {
 
local count_99s = {
["agility"] = "85,627",
+
["agility"] = "85,702",
["attack"] = "198,101",
+
["attack"] = "198,134",
["constitution"] = "224,790",
+
["constitution"] = "224,794",
["construction"] = "87,113",
+
["construction"] = "87,131",
["cooking"] = "198,119",
+
["cooking"] = "198,128",
["crafting"] = "101,792",
+
["crafting"] = "101,821",
 
["defence"] = "205,347",
 
["defence"] = "205,347",
["divination"] = "77,617",
+
["divination"] = "77,659",
["dungeoneering"] = "108,204",
+
["dungeoneering"] = "108,243",
["farming"] = "86,670",
+
["farming"] = "86,729",
["firemaking"] = "191,033",
+
["firemaking"] = "191,011",
["fishing"] = "131,743",
+
["fishing"] = "131,813",
["fletching"] = "163,484",
+
["fletching"] = "163,498",
["herblore"] = "145,769",
+
["herblore"] = "145,771",
["invention"] = "53,752",
+
["invention"] = "53,827",
["hunter"] = "87,484",
+
["hunter"] = "87,538",
["magic"] = "223,738",
+
["magic"] = "223,741",
["mining"] = "113,679",
+
["mining"] = "113,747",
["prayer"] = "147,147",
+
["prayer"] = "147,194",
["ranged"] = "195,142",
+
["ranged"] = "195,174",
["runecrafting"] = "90,200",
+
["runecrafting"] = "90,251",
["slayer"] = "126,918",
+
["slayer"] = "126,994",
["smithing"] = "111,615",
+
["smithing"] = "111,666",
["strength"] = "225,276",
+
["strength"] = "225,285",
["summoning"] = "130,019",
+
["summoning"] = "130,026",
["thieving"] = "96,031",
+
["thieving"] = "96,082",
["woodcutting"] = "172,276",
+
["woodcutting"] = "172,312",
 
-- @notes this isn't updated by [[User:Cresbot]]
 
-- @notes this isn't updated by [[User:Cresbot]]
 
["overall"] = "10,000",
 
["overall"] = "10,000",
 
-- @notes this isn't updated by [[User:Cresbot]]
 
-- @notes this isn't updated by [[User:Cresbot]]
 
["overall f2p"] = "8",
 
["overall f2p"] = "8",
["updated"] = "30 May 2017"
+
["updated"] = "31 May 2017"
 
}
 
}
   
Line 118: Line 118:
 
--
 
--
 
local count_200mxp = {
 
local count_200mxp = {
["agility"] = "453",
+
["agility"] = "454",
 
["attack"] = "1,090",
 
["attack"] = "1,090",
["constitution"] = "2,992",
+
["constitution"] = "3,001",
 
["construction"] = "419",
 
["construction"] = "419",
["cooking"] = "1,363",
+
["cooking"] = "1,361",
 
["crafting"] = "522",
 
["crafting"] = "522",
["defence"] = "2,210",
+
["defence"] = "2,214",
 
["divination"] = "455",
 
["divination"] = "455",
 
["dungeoneering"] = "8,539",
 
["dungeoneering"] = "8,539",
["farming"] = "700",
+
["farming"] = "701",
 
["firemaking"] = "1,618",
 
["firemaking"] = "1,618",
["fishing"] = "1,305",
+
["fishing"] = "1,307",
["fletching"] = "716",
+
["fletching"] = "718",
 
["herblore"] = "805",
 
["herblore"] = "805",
 
["hunter"] = "564",
 
["hunter"] = "564",
["invention"] = "3,936",
+
["invention"] = "3,953",
["magic"] = "2,384",
+
["magic"] = "2,386",
["mining"] = "1,259",
+
["mining"] = "1,260",
 
["prayer"] = "559",
 
["prayer"] = "559",
["ranged"] = "2,124",
+
["ranged"] = "2,128",
 
["runecrafting"] = "393",
 
["runecrafting"] = "393",
 
["slayer"] = "1,157",
 
["slayer"] = "1,157",
["smithing"] = "603",
+
["smithing"] = "604",
["strength"] = "1,048",
+
["strength"] = "1,049",
 
["summoning"] = "1,572",
 
["summoning"] = "1,572",
["thieving"] = "2,803",
+
["thieving"] = "2,805",
["woodcutting"] = "667",
+
["woodcutting"] = "665",
 
["overall"] = "166",
 
["overall"] = "166",
["updated"] = "30 May 2017"
+
["updated"] = "31 May 2017"
 
}
 
}
   
Line 168: Line 168:
 
local lowest_ranks = {
 
local lowest_ranks = {
 
["agility"] = "15",
 
["agility"] = "15",
["agility.rank"] = "900,100",
+
["agility.rank"] = "900,046",
 
["attack"] = "15",
 
["attack"] = "15",
["attack.rank"] = "1,342,941",
+
["attack.rank"] = "1,342,673",
 
["constitution"] = "15",
 
["constitution"] = "15",
["constitution.rank"] = "1,526,258",
+
["constitution.rank"] = "1,526,142",
 
["construction"] = "15",
 
["construction"] = "15",
["construction.rank"] = "736,370",
+
["construction.rank"] = "736,275",
 
["cooking"] = "15",
 
["cooking"] = "15",
["cooking.rank"] = "1,230,253",
+
["cooking.rank"] = "1,230,029",
 
["crafting"] = "15",
 
["crafting"] = "15",
["crafting.rank"] = "1,080,233",
+
["crafting.rank"] = "1,080,102",
 
["defence"] = "15",
 
["defence"] = "15",
["defence.rank"] = "1,334,140",
+
["defence.rank"] = "1,333,959",
 
["divination"] = "15",
 
["divination"] = "15",
["divination.rank"] = "502,259",
+
["divination.rank"] = "502,269",
 
["dungeoneering"] = "15",
 
["dungeoneering"] = "15",
["dungeoneering.rank"] = "819,732",
+
["dungeoneering.rank"] = "819,717",
 
["farming"] = "15",
 
["farming"] = "15",
["farming.rank"] = "664,104",
+
["farming.rank"] = "664,039",
 
["firemaking"] = "15",
 
["firemaking"] = "15",
["firemaking.rank"] = "1,226,155",
+
["firemaking.rank"] = "1,225,980",
 
["fishing"] = "15",
 
["fishing"] = "15",
["fishing.rank"] = "1,151,854",
+
["fishing.rank"] = "1,151,632",
 
["fletching"] = "15",
 
["fletching"] = "15",
["fletching.rank"] = "862,027",
+
["fletching.rank"] = "861,951",
 
["herblore"] = "15",
 
["herblore"] = "15",
["herblore.rank"] = "781,022",
+
["herblore.rank"] = "780,974",
 
["hunter"] = "15",
 
["hunter"] = "15",
["hunter.rank"] = "704,142",
+
["hunter.rank"] = "704,107",
 
["invention"] = "15",
 
["invention"] = "15",
["invention.rank"] = "163,088",
+
["invention.rank"] = "163,262",
 
["magic"] = "15",
 
["magic"] = "15",
["magic.rank"] = "1,230,183",
+
["magic.rank"] = "1,230,060",
 
["mining"] = "15",
 
["mining"] = "15",
["mining.rank"] = "1,249,282",
+
["mining.rank"] = "1,249,125",
 
["prayer"] = "15",
 
["prayer"] = "15",
["prayer.rank"] = "1,199,096",
+
["prayer.rank"] = "1,198,855",
 
["ranged"] = "15",
 
["ranged"] = "15",
["ranged.rank"] = "1,153,516",
+
["ranged.rank"] = "1,153,360",
 
["runecrafting"] = "15",
 
["runecrafting"] = "15",
["runecrafting.rank"] = "935,444",
+
["runecrafting.rank"] = "935,329",
 
["slayer"] = "15",
 
["slayer"] = "15",
["slayer.rank"] = "833,327",
+
["slayer.rank"] = "833,183",
 
["smithing"] = "15",
 
["smithing"] = "15",
["smithing.rank"] = "1,172,612",
+
["smithing.rank"] = "1,172,442",
 
["strength"] = "15",
 
["strength"] = "15",
["strength.rank"] = "1,335,215",
+
["strength.rank"] = "1,334,948",
 
["summoning"] = "15",
 
["summoning"] = "15",
["summoning.rank"] = "650,537",
+
["summoning.rank"] = "650,496",
 
["thieving"] = "15",
 
["thieving"] = "15",
["thieving.rank"] = "877,395",
+
["thieving.rank"] = "877,319",
 
["woodcutting"] = "15",
 
["woodcutting"] = "15",
["woodcutting.rank"] = "1,310,743",
+
["woodcutting.rank"] = "1,310,534",
 
["overall"] = "38",
 
["overall"] = "38",
["overall.rank"] = "1,947,003",
+
["overall.rank"] = "1,947,135",
["updated"] = "30 May 2017"
+
["updated"] = "31 May 2017"
 
}
 
}
   

Revision as of 23:40, 30 May 2017

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,788",
    ["attack"] = "6,971",
    ["constitution"] = "13,930",
    ["construction"] = "1,436",
    ["cooking"] = "3,877",
    ["crafting"] = "1,769",
    ["defence"] = "13,912",
    ["divination"] = "1,773",
    ["dungeoneering"] = "33,695",
    ["farming"] = "2,730",
    ["firemaking"] = "6,558",
    ["fishing"] = "5,787",
    ["fletching"] = "2,744",
    ["herblore"] = "3,857",
    ["hunter"] = "2,019",
    ["invention"] = "26,191",
    ["magic"] = "11,983",
    ["mining"] = "5,804",
    ["prayer"] = "2,574",
    ["ranged"] = "11,281",
    ["runecrafting"] = "1,369",
    ["slayer"] = "7,013",
    ["smithing"] = "2,457",
    ["strength"] = "6,327",
    ["summoning"] = "5,705",
    ["thieving"] = "9,786",
    ["woodcutting"] = "2,433",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall"] = "70",
    ["updated"] = "31 May 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"] = "85,702",
    ["attack"] = "198,134",
    ["constitution"] = "224,794",
    ["construction"] = "87,131",
    ["cooking"] = "198,128",
    ["crafting"] = "101,821",
    ["defence"] = "205,347",
    ["divination"] = "77,659",
    ["dungeoneering"] = "108,243",
    ["farming"] = "86,729",
    ["firemaking"] = "191,011",
    ["fishing"] = "131,813",
    ["fletching"] = "163,498",
    ["herblore"] = "145,771",
    ["invention"] = "53,827",
    ["hunter"] = "87,538",
    ["magic"] = "223,741",
    ["mining"] = "113,747",
    ["prayer"] = "147,194",
    ["ranged"] = "195,174",
    ["runecrafting"] = "90,251",
    ["slayer"] = "126,994",
    ["smithing"] = "111,666",
    ["strength"] = "225,285",
    ["summoning"] = "130,026",
    ["thieving"] = "96,082",
    ["woodcutting"] = "172,312",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall"] = "10,000",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall f2p"] = "8",
    ["updated"] = "31 May 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"] = "454",
    ["attack"] = "1,090",
    ["constitution"] = "3,001",
    ["construction"] = "419",
    ["cooking"] = "1,361",
    ["crafting"] = "522",
    ["defence"] = "2,214",
    ["divination"] = "455",
    ["dungeoneering"] = "8,539",
    ["farming"] = "701",
    ["firemaking"] = "1,618",
    ["fishing"] = "1,307",
    ["fletching"] = "718",
    ["herblore"] = "805",
    ["hunter"] = "564",
    ["invention"] = "3,953",
    ["magic"] = "2,386",
    ["mining"] = "1,260",
    ["prayer"] = "559",
    ["ranged"] = "2,128",
    ["runecrafting"] = "393",
    ["slayer"] = "1,157",
    ["smithing"] = "604",
    ["strength"] = "1,049",
    ["summoning"] = "1,572",
    ["thieving"] = "2,805",
    ["woodcutting"] = "665",
    ["overall"] = "166",
    ["updated"] = "31 May 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"] = "900,046",
    ["attack"] = "15",
    ["attack.rank"] = "1,342,673",
    ["constitution"] = "15",
    ["constitution.rank"] = "1,526,142",
    ["construction"] = "15",
    ["construction.rank"] = "736,275",
    ["cooking"] = "15",
    ["cooking.rank"] = "1,230,029",
    ["crafting"] = "15",
    ["crafting.rank"] = "1,080,102",
    ["defence"] = "15",
    ["defence.rank"] = "1,333,959",
    ["divination"] = "15",
    ["divination.rank"] = "502,269",
    ["dungeoneering"] = "15",
    ["dungeoneering.rank"] = "819,717",
    ["farming"] = "15",
    ["farming.rank"] = "664,039",
    ["firemaking"] = "15",
    ["firemaking.rank"] = "1,225,980",
    ["fishing"] = "15",
    ["fishing.rank"] = "1,151,632",
    ["fletching"] = "15",
    ["fletching.rank"] = "861,951",
    ["herblore"] = "15",
    ["herblore.rank"] = "780,974",
    ["hunter"] = "15",
    ["hunter.rank"] = "704,107",
    ["invention"] = "15",
    ["invention.rank"] = "163,262",
    ["magic"] = "15",
    ["magic.rank"] = "1,230,060",
    ["mining"] = "15",
    ["mining.rank"] = "1,249,125",
    ["prayer"] = "15",
    ["prayer.rank"] = "1,198,855",
    ["ranged"] = "15",
    ["ranged.rank"] = "1,153,360",
    ["runecrafting"] = "15",
    ["runecrafting.rank"] = "935,329",
    ["slayer"] = "15",
    ["slayer.rank"] = "833,183",
    ["smithing"] = "15",
    ["smithing.rank"] = "1,172,442",
    ["strength"] = "15",
    ["strength.rank"] = "1,334,948",
    ["summoning"] = "15",
    ["summoning.rank"] = "650,496",
    ["thieving"] = "15",
    ["thieving.rank"] = "877,319",
    ["woodcutting"] = "15",
    ["woodcutting.rank"] = "1,310,534",
    ["overall"] = "38",
    ["overall.rank"] = "1,947,135",
    ["updated"] = "31 May 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