Module:Hiscore counts

-- -- 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"] = "544", ["attack"] = "2,592", ["constitution"] = "5,499", ["construction"] = "468", ["cooking"] = "2,463", ["crafting"] = "581", ["defence"] = "5,621", ["divination"] = "457", ["dungeoneering"] = "25,592", ["farming"] = "1,071", ["firemaking"] = "2,928", ["fishing"] = "997", ["fletching"] = "1,155", ["herblore"] = "1,551", ["hunter"] = "459", ["magic"] = "4,906", ["mining"] = "2,269", ["prayer"] = "1,072", ["ranged"] = "4,574", ["runecrafting"] = "444", ["slayer"] = "2,140", ["smithing"] = "654", ["strength"] = "2,834", ["summoning"] = "2,327", ["thieving"] = "4,943", ["woodcutting"] = "992", -- @notes this isn't updated by User:Cresbot ["overall"] = "32", ["updated"] = "25 October 2015" }

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"] = "62,037", ["attack"] = "179,467", ["constitution"] = "202,836", ["construction"] = "63,677", ["cooking"] = "188,739", ["crafting"] = "75,570", ["defence"] = "182,289", ["divination"] = "49,184", ["dungeoneering"] = "93,965", ["farming"] = "63,905", ["firemaking"] = "165,256", ["fishing"] = "108,222", ["fletching"] = "148,569", ["herblore"] = "111,482", ["hunter"] = "62,980", ["magic"] = "208,165", ["mining"] = "85,321", ["prayer"] = "116,710", ["ranged"] = "171,347", ["runecrafting"] = "70,424", ["slayer"] = "93,091", ["smithing"] = "78,189", ["strength"] = "212,520", ["summoning"] = "99,784", ["thieving"] = "74,157", ["woodcutting"] = "161,816", -- @notes this isn't updated by User:Cresbot ["overall"] = "20,237", -- @notes this isn't updated by User:Cresbot ["overall f2p"] = "8", ["updated"] = "25 October 2015" }

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"] = "134", ["attack"] = "412", ["constitution"] = "796", ["construction"] = "140", ["cooking"] = "1,110", ["crafting"] = "169", ["defence"] = "791", ["divination"] = "134", ["dungeoneering"] = "6,131", ["farming"] = "267", ["firemaking"] = "811", ["fishing"] = "271", ["fletching"] = "300", ["herblore"] = "344", ["hunter"] = "137", ["magic"] = "828", ["mining"] = "502", ["prayer"] = "222", ["ranged"] = "732", ["runecrafting"] = "135", ["slayer"] = "396", ["smithing"] = "173", ["strength"] = "442", ["summoning"] = "606", ["thieving"] = "1,485", ["woodcutting"] = "301", ["overall"] = "27", ["updated"] = "25 October 2015" }

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"] = "922,306", ["attack"] = "15", ["attack.rank"] = "1,399,649", ["constitution"] = "15", ["constitution.rank"] = "1,565,459", ["construction"] = "15", ["construction.rank"] = "753,565", ["cooking"] = "15", ["cooking.rank"] = "1,274,577", ["crafting"] = "15", ["crafting.rank"] = "1,096,080", ["defence"] = "15", ["defence.rank"] = "1,381,595", ["divination"] = "15", ["divination.rank"] = "436,044", ["dungeoneering"] = "15", ["dungeoneering.rank"] = "844,384", ["farming"] = "15", ["farming.rank"] = "668,356", ["firemaking"] = "15", ["firemaking.rank"] = "1,267,916", ["fishing"] = "15", ["fishing.rank"] = "1,193,156", ["fletching"] = "15", ["fletching.rank"] = "880,908", ["herblore"] = "15", ["herblore.rank"] = "792,246", ["hunter"] = "15", ["hunter.rank"] = "702,935", ["magic"] = "15", ["magic.rank"] = "1,274,965", ["mining"] = "15", ["mining.rank"] = "1,293,289", ["prayer"] = "15", ["prayer.rank"] = "1,247,013", ["ranged"] = "15", ["ranged.rank"] = "1,200,853", ["runecrafting"] = "15", ["runecrafting.rank"] = "948,706", ["slayer"] = "15", ["slayer.rank"] = "846,225", ["smithing"] = "15", ["smithing.rank"] = "1,201,358", ["strength"] = "15", ["strength.rank"] = "1,388,111", ["summoning"] = "15", ["summoning.rank"] = "658,869", ["thieving"] = "15", ["thieving.rank"] = "899,321", ["woodcutting"] = "15", ["woodcutting.rank"] = "1,363,947", ["overall"] = "35", ["overall.rank"] = "1,991,911", ["updated"] = "25 October 2015" }

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