RuneScape Wiki
(Minor cleanup)
(Added get_lowest_rank)
Line 153: Line 153:
 
--
 
--
 
-- End 200mxp
 
-- End 200mxp
  +
--
  +
  +
--
  +
-- Data for Hiscores lowest rank
  +
-- [[Template:Hiscores lowest rank]]
  +
--
  +
local lowest_rank = {
  +
["agility"] = "",
  +
["agility.rank"] = "",
  +
["attack"] = "",
  +
["attack.rank"] = "",
  +
["constitution"] = "",
  +
["constitution.rank"] = "",
  +
["construction"] = "",
  +
["construction.rank"] = "",
  +
["cooking"] = "",
  +
["cooking.rank"] = "",
  +
["crafting"] = "",
  +
["crafting.rank"] = "",
  +
["defence"] = "",
  +
["defence.rank"] = "",
  +
["divination"] = "",
  +
["divination.rank"] = "",
  +
["dungeoneering"] = "",
  +
["dungeoneering.rank"] = "",
  +
["farming"] = "",
  +
["farming.rank"] = "",
  +
["firemaking"] = "",
  +
["firemaking.rank"] = "",
  +
["fishing"] = "",
  +
["fishing.rank"] = "",
  +
["fletching"] = "",
  +
["fletching.rank"] = "",
  +
["herblore"] = "",
  +
["herblore.rank"] = "",
  +
["hunter"] = "",
  +
["hunter.rank"] = "",
  +
["magic"] = "",
  +
["magic.rank"] = "",
  +
["mining"] = "",
  +
["mining.rank"] = "",
  +
["prayer"] = "",
  +
["prayer.rank"] = "",
  +
["ranged"] = "",
  +
["ranged.rank"] = "",
  +
["runecrafting"] = "",
  +
["runecrafting.rank"] = "",
  +
["slayer"] = "",
  +
["slayer.rank"] = "",
  +
["smithing"] = "",
  +
["smithing.rank"] = "",
  +
["strength"] = "",
  +
["strength.rank"] = "",
  +
["summoning"] = "",
  +
["summoning.rank"] = "",
  +
["thieving"] = "",
  +
["thieving.rank"] = "",
  +
["woodcutting"] = "",
  +
["woodcutting.rank"] = "",
  +
["overall"] = "",
  +
["overall.rank"] = "",
  +
["updated"] = "14 June 2014"
  +
}
  +
  +
function p.get_lowest_rank ( frame )
  +
local skill = string.lower( frame.args[1] )
  +
if not lowest_rank[skill] then
  +
return 0
  +
end
  +
  +
return lowest_rank[skill]
  +
end
  +
  +
--
  +
-- End Hiscores lowest rank
 
--
 
--
 
return p
 
return p

Revision as of 21:08, 14 June 2014

Documentation for this module may be created at Module:Hiscore counts/doc

--
-- Hiscore data grabbed by [[User:AmauriceBot]]
--
-- 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"] = "59",
    ["attack"] = "756",
    ["constitution"] = "1,189",
    ["construction"] = "75",
    ["cooking"] = "1,309",
    ["crafting"] = "88",
    ["defence"] = "909",
    ["divination"] = "74",
    ["dungeoneering"] = "14,443",
    ["farming"] = "262",
    ["firemaking"] = "816",
    ["fishing"] = "285",
    ["fletching"] = "299",
    ["herblore"] = "190",
    ["hunter"] = "151",
    ["magic"] = "943",
    ["mining"] = "154",
    ["prayer"] = "155",
    ["ranged"] = "544",
    ["runecrafting"] = "129",
    ["slayer"] = "233",
    ["smithing"] = "119",
    ["strength"] = "1,065",
    ["summoning"] = "254",
    ["thieving"] = "198",
    ["woodcutting"] = "381",
    ["overall"] = "10,229",
    ["updated"] = "14 June 2014"
}

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"] = "38,312",
    ["attack"] = "146,666",
    ["constitution"] = "157,139",
    ["construction"] = "37,699",
    ["cooking"] = "170,648",
    ["crafting"] = "45,627",
    ["defence"] = "139,666",
    ["divination"] = "22,558",
    ["dungeoneering"] = "69,575",
    ["farming"] = "42,438",
    ["firemaking"] = "131,667",
    ["fishing"] = "83,314",
    ["fletching"] = "127,186",
    ["herblore"] = "71,424",
    ["hunter"] = "41,380",
    ["magic"] = "167,661",
    ["mining"] = "46,576",
    ["prayer"] = "77,541",
    ["ranged"] = "121,789",
    ["runecrafting"] = "52,674",
    ["slayer"] = "52,576",
    ["smithing"] = "46,274",
    ["strength"] = "179,474",
    ["summoning"] = "57,002",
    ["thieving"] = "47,427",
    ["woodcutting"] = "142,209",
    ["overall"] = "10,229",
    ["overall f2p"] = "8",
    ["updated"] = "14 June 2014"
}

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"] = "32",
    ["attack"] = "160",
    ["constitution"] = "163",
    ["construction"] = "41",
    ["cooking"] = "840",
    ["crafting"] = "48",
    ["defence"] = "233",
    ["divination"] = "34",
    ["dungeoneering"] = "2,585",
    ["farming"] = "103",
    ["firemaking"] = "382",
    ["fishing"] = "97",
    ["fletching"] = "164",
    ["herblore"] = "73",
    ["hunter"] = "58",
    ["magic"] = "253",
    ["mining"] = "58",
    ["prayer"] = "80",
    ["ranged"] = "210",
    ["runecrafting"] = "65",
    ["slayer"] = "61",
    ["smithing"] = "63",
    ["strength"] = "207",
    ["summoning"] = "78",
    ["thieving"] = "123",
    ["woodcutting"] = "162",
    ["updated"] = "14 June 2014"
}

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_rank = {
    ["agility"] = "",
    ["agility.rank"] = "",
    ["attack"] = "",
    ["attack.rank"] = "",
    ["constitution"] = "",
    ["constitution.rank"] = "",
    ["construction"] = "",
    ["construction.rank"] = "",
    ["cooking"] = "",
    ["cooking.rank"] = "",
    ["crafting"] = "",
    ["crafting.rank"] = "",
    ["defence"] = "",
    ["defence.rank"] = "",
    ["divination"] = "",
    ["divination.rank"] = "",
    ["dungeoneering"] = "",
    ["dungeoneering.rank"] = "",
    ["farming"] = "",
    ["farming.rank"] = "",
    ["firemaking"] = "",
    ["firemaking.rank"] = "",
    ["fishing"] = "",
    ["fishing.rank"] = "",
    ["fletching"] = "",
    ["fletching.rank"] = "",
    ["herblore"] = "",
    ["herblore.rank"] = "",
    ["hunter"] = "",
    ["hunter.rank"] = "",
    ["magic"] = "",
    ["magic.rank"] = "",
    ["mining"] = "",
    ["mining.rank"] = "",
    ["prayer"] = "",
    ["prayer.rank"] = "",
    ["ranged"] = "",
    ["ranged.rank"] = "",
    ["runecrafting"] = "",
    ["runecrafting.rank"] = "",
    ["slayer"] = "",
    ["slayer.rank"] = "",
    ["smithing"] = "",
    ["smithing.rank"] = "",
    ["strength"] = "",
    ["strength.rank"] = "",
    ["summoning"] = "",
    ["summoning.rank"] = "",
    ["thieving"] = "",
    ["thieving.rank"] = "",
    ["woodcutting"] = "",
    ["woodcutting.rank"] = "",
    ["overall"] = "",
    ["overall.rank"] = "",
    ["updated"] = "14 June 2014"
}

function p.get_lowest_rank ( frame )
    local skill = string.lower( frame.args[1] )
    if not lowest_rank[skill] then
        return 0
    end

    return lowest_rank[skill]
end

--
-- End Hiscores lowest rank
--
return p