RuneScape Wiki
(Updating hiscore counts)
Tag: apiedit
(Updating hiscore counts)
Tag: apiedit
Line 16: Line 16:
 
--
 
--
 
local count_120s = {
 
local count_120s = {
["agility"] = "1,856",
+
["agility"] = "1,857",
["attack"] = "7,196",
+
["attack"] = "7,203",
["constitution"] = "14,371",
+
["constitution"] = "14,382",
["construction"] = "1,478",
+
["construction"] = "1,480",
 
["cooking"] = "3,953",
 
["cooking"] = "3,953",
["crafting"] = "1,820",
+
["crafting"] = "1,824",
["defence"] = "14,408",
+
["defence"] = "14,426",
["divination"] = "1,862",
+
["divination"] = "1,863",
["dungeoneering"] = "34,147",
+
["dungeoneering"] = "34,142",
["farming"] = "2,832",
+
["farming"] = "2,835",
["firemaking"] = "6,770",
+
["firemaking"] = "6,774",
["fishing"] = "6,005",
+
["fishing"] = "6,014",
["fletching"] = "2,774",
+
["fletching"] = "2,773",
["herblore"] = "3,904",
+
["herblore"] = "3,906",
["hunter"] = "2,115",
+
["hunter"] = "2,116",
["invention"] = "27,601",
+
["invention"] = "27,645",
["magic"] = "12,335",
+
["magic"] = "12,349",
["mining"] = "5,995",
+
["mining"] = "6,001",
["prayer"] = "2,646",
+
["prayer"] = "2,651",
["ranged"] = "11,620",
+
["ranged"] = "11,628",
["runecrafting"] = "1,442",
+
["runecrafting"] = "1,443",
["slayer"] = "7,834",
+
["slayer"] = "7,853",
["smithing"] = "2,549",
+
["smithing"] = "2,555",
["strength"] = "6,515",
+
["strength"] = "6,527",
 
["summoning"] = "5,751",
 
["summoning"] = "5,751",
["thieving"] = "10,022",
+
["thieving"] = "10,023",
 
["woodcutting"] = "2,544",
 
["woodcutting"] = "2,544",
 
-- @notes this isn't updated by [[User:Cresbot]]
 
-- @notes this isn't updated by [[User:Cresbot]]
 
["overall"] = "70",
 
["overall"] = "70",
["updated"] = "28 June 2017"
+
["updated"] = "29 June 2017"
 
}
 
}
   
Line 66: Line 66:
 
--
 
--
 
local count_99s = {
 
local count_99s = {
["agility"] = "87,174",
+
["agility"] = "87,155",
["attack"] = "200,101",
+
["attack"] = "200,053",
["constitution"] = "227,209",
+
["constitution"] = "227,134",
["construction"] = "87,952",
+
["construction"] = "87,934",
["cooking"] = "199,597",
+
["cooking"] = "199,506",
["crafting"] = "102,994",
+
["crafting"] = "103,001",
["defence"] = "207,831",
+
["defence"] = "207,776",
["divination"] = "79,393",
+
["divination"] = "79,409",
["dungeoneering"] = "109,653",
+
["dungeoneering"] = "109,587",
["farming"] = "88,440",
+
["farming"] = "88,423",
["firemaking"] = "192,754",
+
["firemaking"] = "192,669",
 
["fishing"] = "134,351",
 
["fishing"] = "134,351",
["fletching"] = "164,866",
+
["fletching"] = "164,788",
["herblore"] = "146,840",
+
["herblore"] = "146,793",
["invention"] = "56,260",
+
["invention"] = "56,331",
["hunter"] = "89,051",
+
["hunter"] = "89,031",
["magic"] = "225,734",
+
["magic"] = "225,623",
["mining"] = "115,862",
+
["mining"] = "115,854",
["prayer"] = "149,020",
+
["prayer"] = "149,015",
["ranged"] = "197,340",
+
["ranged"] = "197,254",
["runecrafting"] = "91,908",
+
["runecrafting"] = "91,889",
["slayer"] = "129,737",
+
["slayer"] = "129,766",
["smithing"] = "113,037",
+
["smithing"] = "113,004",
["strength"] = "227,269",
+
["strength"] = "227,201",
["summoning"] = "130,777",
+
["summoning"] = "130,748",
["thieving"] = "97,588",
+
["thieving"] = "97,585",
["woodcutting"] = "174,117",
+
["woodcutting"] = "174,055",
 
-- @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"] = "28 June 2017"
+
["updated"] = "29 June 2017"
 
}
 
}
   
Line 118: Line 118:
 
--
 
--
 
local count_200mxp = {
 
local count_200mxp = {
["agility"] = "484",
+
["agility"] = "486",
["attack"] = "1,129",
+
["attack"] = "1,128",
["constitution"] = "3,119",
+
["constitution"] = "3,123",
 
["construction"] = "431",
 
["construction"] = "431",
["cooking"] = "1,397",
+
["cooking"] = "1,398",
 
["crafting"] = "531",
 
["crafting"] = "531",
["defence"] = "2,303",
+
["defence"] = "2,307",
["divination"] = "486",
+
["divination"] = "485",
["dungeoneering"] = "8,642",
+
["dungeoneering"] = "8,641",
["farming"] = "744",
+
["farming"] = "745",
["firemaking"] = "1,660",
+
["firemaking"] = "1,659",
 
["fishing"] = "1,364",
 
["fishing"] = "1,364",
["fletching"] = "732",
+
["fletching"] = "734",
["herblore"] = "823",
+
["herblore"] = "822",
 
["hunter"] = "588",
 
["hunter"] = "588",
["invention"] = "4,471",
+
["invention"] = "4,490",
["magic"] = "2,480",
+
["magic"] = "2,482",
["mining"] = "1,308",
+
["mining"] = "1,310",
 
["prayer"] = "582",
 
["prayer"] = "582",
["ranged"] = "2,209",
+
["ranged"] = "2,211",
["runecrafting"] = "434",
+
["runecrafting"] = "433",
 
["slayer"] = "1,214",
 
["slayer"] = "1,214",
["smithing"] = "621",
+
["smithing"] = "623",
 
["strength"] = "1,078",
 
["strength"] = "1,078",
["summoning"] = "1,582",
+
["summoning"] = "1,581",
["thieving"] = "2,865",
+
["thieving"] = "2,863",
 
["woodcutting"] = "692",
 
["woodcutting"] = "692",
 
["overall"] = "177",
 
["overall"] = "177",
["updated"] = "28 June 2017"
+
["updated"] = "29 June 2017"
 
}
 
}
   
Line 168: Line 168:
 
local lowest_ranks = {
 
local lowest_ranks = {
 
["agility"] = "15",
 
["agility"] = "15",
["agility.rank"] = "911,120",
+
["agility.rank"] = "910,925",
 
["attack"] = "15",
 
["attack"] = "15",
["attack.rank"] = "1,355,773",
+
["attack.rank"] = "1,355,349",
 
["constitution"] = "15",
 
["constitution"] = "15",
["constitution.rank"] = "1,541,498",
+
["constitution.rank"] = "1,541,270",
 
["construction"] = "15",
 
["construction"] = "15",
["construction.rank"] = "745,050",
+
["construction.rank"] = "744,886",
 
["cooking"] = "15",
 
["cooking"] = "15",
["cooking.rank"] = "1,242,069",
+
["cooking.rank"] = "1,241,888",
 
["crafting"] = "15",
 
["crafting"] = "15",
["crafting.rank"] = "1,090,935",
+
["crafting.rank"] = "1,090,719",
 
["defence"] = "15",
 
["defence"] = "15",
["defence.rank"] = "1,347,706",
+
["defence.rank"] = "1,347,339",
 
["divination"] = "15",
 
["divination"] = "15",
["divination.rank"] = "509,056",
+
["divination.rank"] = "509,004",
 
["dungeoneering"] = "15",
 
["dungeoneering"] = "15",
["dungeoneering.rank"] = "827,993",
+
["dungeoneering.rank"] = "827,863",
 
["farming"] = "15",
 
["farming"] = "15",
["farming.rank"] = "670,820",
+
["farming.rank"] = "670,588",
 
["firemaking"] = "15",
 
["firemaking"] = "15",
["firemaking.rank"] = "1,236,894",
+
["firemaking.rank"] = "1,236,708",
 
["fishing"] = "15",
 
["fishing"] = "15",
["fishing.rank"] = "1,163,056",
+
["fishing.rank"] = "1,162,878",
 
["fletching"] = "15",
 
["fletching"] = "15",
["fletching.rank"] = "871,803",
+
["fletching.rank"] = "871,568",
 
["herblore"] = "15",
 
["herblore"] = "15",
["herblore.rank"] = "789,557",
+
["herblore.rank"] = "789,342",
 
["hunter"] = "15",
 
["hunter"] = "15",
["hunter.rank"] = "711,691",
+
["hunter.rank"] = "711,563",
 
["invention"] = "15",
 
["invention"] = "15",
["invention.rank"] = "168,148",
+
["invention.rank"] = "168,247",
 
["magic"] = "15",
 
["magic"] = "15",
["magic.rank"] = "1,242,439",
+
["magic.rank"] = "1,242,203",
 
["mining"] = "15",
 
["mining"] = "15",
["mining.rank"] = "1,261,054",
+
["mining.rank"] = "1,260,859",
 
["prayer"] = "15",
 
["prayer"] = "15",
["prayer.rank"] = "1,210,861",
+
["prayer.rank"] = "1,210,650",
 
["ranged"] = "15",
 
["ranged"] = "15",
["ranged.rank"] = "1,164,425",
+
["ranged.rank"] = "1,164,216",
 
["runecrafting"] = "15",
 
["runecrafting"] = "15",
["runecrafting.rank"] = "944,974",
+
["runecrafting.rank"] = "944,812",
 
["slayer"] = "15",
 
["slayer"] = "15",
["slayer.rank"] = "843,229",
+
["slayer.rank"] = "843,004",
 
["smithing"] = "15",
 
["smithing"] = "15",
["smithing.rank"] = "1,184,243",
+
["smithing.rank"] = "1,184,106",
["strength"] = "99",
+
["strength"] = "15",
["strength.rank"] = "25",
+
["strength.rank"] = "1,347,136",
 
["summoning"] = "15",
 
["summoning"] = "15",
["summoning.rank"] = "656,879",
+
["summoning.rank"] = "656,742",
 
["thieving"] = "15",
 
["thieving"] = "15",
["thieving.rank"] = "888,522",
+
["thieving.rank"] = "888,306",
 
["woodcutting"] = "15",
 
["woodcutting"] = "15",
["woodcutting.rank"] = "1,322,189",
+
["woodcutting.rank"] = "1,321,927",
 
["overall"] = "38",
 
["overall"] = "38",
["overall.rank"] = "1,971,533",
+
["overall.rank"] = "1,971,158",
["updated"] = "28 June 2017"
+
["updated"] = "29 June 2017"
 
}
 
}
   

Revision as of 23:41, 28 June 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,857",
    ["attack"] = "7,203",
    ["constitution"] = "14,382",
    ["construction"] = "1,480",
    ["cooking"] = "3,953",
    ["crafting"] = "1,824",
    ["defence"] = "14,426",
    ["divination"] = "1,863",
    ["dungeoneering"] = "34,142",
    ["farming"] = "2,835",
    ["firemaking"] = "6,774",
    ["fishing"] = "6,014",
    ["fletching"] = "2,773",
    ["herblore"] = "3,906",
    ["hunter"] = "2,116",
    ["invention"] = "27,645",
    ["magic"] = "12,349",
    ["mining"] = "6,001",
    ["prayer"] = "2,651",
    ["ranged"] = "11,628",
    ["runecrafting"] = "1,443",
    ["slayer"] = "7,853",
    ["smithing"] = "2,555",
    ["strength"] = "6,527",
    ["summoning"] = "5,751",
    ["thieving"] = "10,023",
    ["woodcutting"] = "2,544",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall"] = "70",
    ["updated"] = "29 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,155",
    ["attack"] = "200,053",
    ["constitution"] = "227,134",
    ["construction"] = "87,934",
    ["cooking"] = "199,506",
    ["crafting"] = "103,001",
    ["defence"] = "207,776",
    ["divination"] = "79,409",
    ["dungeoneering"] = "109,587",
    ["farming"] = "88,423",
    ["firemaking"] = "192,669",
    ["fishing"] = "134,351",
    ["fletching"] = "164,788",
    ["herblore"] = "146,793",
    ["invention"] = "56,331",
    ["hunter"] = "89,031",
    ["magic"] = "225,623",
    ["mining"] = "115,854",
    ["prayer"] = "149,015",
    ["ranged"] = "197,254",
    ["runecrafting"] = "91,889",
    ["slayer"] = "129,766",
    ["smithing"] = "113,004",
    ["strength"] = "227,201",
    ["summoning"] = "130,748",
    ["thieving"] = "97,585",
    ["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"] = "29 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,123",
    ["construction"] = "431",
    ["cooking"] = "1,398",
    ["crafting"] = "531",
    ["defence"] = "2,307",
    ["divination"] = "485",
    ["dungeoneering"] = "8,641",
    ["farming"] = "745",
    ["firemaking"] = "1,659",
    ["fishing"] = "1,364",
    ["fletching"] = "734",
    ["herblore"] = "822",
    ["hunter"] = "588",
    ["invention"] = "4,490",
    ["magic"] = "2,482",
    ["mining"] = "1,310",
    ["prayer"] = "582",
    ["ranged"] = "2,211",
    ["runecrafting"] = "433",
    ["slayer"] = "1,214",
    ["smithing"] = "623",
    ["strength"] = "1,078",
    ["summoning"] = "1,581",
    ["thieving"] = "2,863",
    ["woodcutting"] = "692",
    ["overall"] = "177",
    ["updated"] = "29 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,925",
    ["attack"] = "15",
    ["attack.rank"] = "1,355,349",
    ["constitution"] = "15",
    ["constitution.rank"] = "1,541,270",
    ["construction"] = "15",
    ["construction.rank"] = "744,886",
    ["cooking"] = "15",
    ["cooking.rank"] = "1,241,888",
    ["crafting"] = "15",
    ["crafting.rank"] = "1,090,719",
    ["defence"] = "15",
    ["defence.rank"] = "1,347,339",
    ["divination"] = "15",
    ["divination.rank"] = "509,004",
    ["dungeoneering"] = "15",
    ["dungeoneering.rank"] = "827,863",
    ["farming"] = "15",
    ["farming.rank"] = "670,588",
    ["firemaking"] = "15",
    ["firemaking.rank"] = "1,236,708",
    ["fishing"] = "15",
    ["fishing.rank"] = "1,162,878",
    ["fletching"] = "15",
    ["fletching.rank"] = "871,568",
    ["herblore"] = "15",
    ["herblore.rank"] = "789,342",
    ["hunter"] = "15",
    ["hunter.rank"] = "711,563",
    ["invention"] = "15",
    ["invention.rank"] = "168,247",
    ["magic"] = "15",
    ["magic.rank"] = "1,242,203",
    ["mining"] = "15",
    ["mining.rank"] = "1,260,859",
    ["prayer"] = "15",
    ["prayer.rank"] = "1,210,650",
    ["ranged"] = "15",
    ["ranged.rank"] = "1,164,216",
    ["runecrafting"] = "15",
    ["runecrafting.rank"] = "944,812",
    ["slayer"] = "15",
    ["slayer.rank"] = "843,004",
    ["smithing"] = "15",
    ["smithing.rank"] = "1,184,106",
    ["strength"] = "15",
    ["strength.rank"] = "1,347,136",
    ["summoning"] = "15",
    ["summoning.rank"] = "656,742",
    ["thieving"] = "15",
    ["thieving.rank"] = "888,306",
    ["woodcutting"] = "15",
    ["woodcutting.rank"] = "1,321,927",
    ["overall"] = "38",
    ["overall.rank"] = "1,971,158",
    ["updated"] = "29 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