FANDOM


--
-- 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,883",
    ["attack"] = "7,347",
    ["constitution"] = "14,667",
    ["construction"] = "1,504",
    ["cooking"] = "3,997",
    ["crafting"] = "1,855",
    ["defence"] = "14,786",
    ["divination"] = "1,908",
    ["dungeoneering"] = "34,265",
    ["farming"] = "2,902",
    ["firemaking"] = "6,883",
    ["fishing"] = "6,188",
    ["fletching"] = "2,793",
    ["herblore"] = "3,936",
    ["hunter"] = "2,174",
    ["invention"] = "28,609",
    ["magic"] = "12,596",
    ["mining"] = "6,127",
    ["prayer"] = "2,714",
    ["ranged"] = "11,868",
    ["runecrafting"] = "1,494",
    ["slayer"] = "8,388",
    ["smithing"] = "2,610",
    ["strength"] = "6,632",
    ["summoning"] = "5,774",
    ["thieving"] = "10,140",
    ["woodcutting"] = "2,598",
    -- @notes this isn't updated by [[User:Cresbot]]
    ["overall"] = "70",
    ["updated"] = "18 July 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"] = "516",
    ["attack"] = "1,198",
    ["constitution"] = "3,307",
    ["construction"] = "462",
    ["cooking"] = "1,445",
    ["crafting"] = "558",
    ["defence"] = "2,455",
    ["divination"] = "538",
    ["dungeoneering"] = "8,748",
    ["farming"] = "789",
    ["firemaking"] = "1,710",
    ["fishing"] = "1,433",
    ["fletching"] = "764",
    ["herblore"] = "837",
    ["hunter"] = "634",
    ["invention"] = "5,134",
    ["magic"] = "2,629",
    ["mining"] = "1,364",
    ["prayer"] = "617",
    ["ranged"] = "2,351",
    ["runecrafting"] = "473",
    ["slayer"] = "1,333",
    ["smithing"] = "660",
    ["strength"] = "1,115",
    ["summoning"] = "1,597",
    ["thieving"] = "2,940",
    ["woodcutting"] = "734",
    ["overall"] = "194",
    ["updated"] = "6 August 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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.