Module:Skill calc/Herblaw/data

From RuneScape Classic Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Skill calc/Herblaw/data/doc

--[=[
     Notations found in this Module:
        * name:     Name of product
        * icon:      Alternate image location
        * level:    Level required to complete
        * xp:       Experience gained
        * material: Materials required { #, "Item name", ...}
            - Special case for alternate currencies: {#, value, "Item name", ...}
        * mcount:   Material count - Number of materials required
            - This allows for exclusion of items not found in the GE
        * title:    Alternative name of object
            - Used to clarify the difference from a similar object or offer a cleaner name
        * mtrade:   Indicates whether the materials needed can be found in the GE
        * trade:    Indicates whether the product can be found in the GE
        * currency: Indicates an alternative currency being used
        * value:    Specifies the product's value in alternative currencys
        * members:  Indicates whether an item is members-only content.
--]=]
local skillData = {}
 
return function(trainMethod)

    -- Clean herbs
    if trainMethod == "Clean herbs" then
        local methods = 
        {
            {   
                name         = "Guam leaf",
                level        = 1,
                xp           = 2.5,
                material     = {1, "Herb (Guam leaf)"}
            }, {
                name         = "Marrentill",
                level        = 5,
                xp           = 3.75,
                material     = {1, "Herb (Marrentill)"},
                members      = 0
            }, {
                name         = "Tarromin",
                level        = 11,
                xp           = 5,
                material     = {1, "Herb (Tarromin)"}
            }, {
                name         = "Harralander",
                level        = 20,
                xp           = 6.25,
                material     = {1, "Herb (Harralander)"},
                members      = 0
            }, {
                name         = "Ranarr Weed",
                level        = 25,
                xp           = 7.5,
                material     = {1, "Herb (Ranarr Weed)"},
                members      = 0
            }, {
                name         = "Irit Leaf",
                level        = 40,
                xp           = 8.75,
                material     = {1, "Herb (Irit Leaf)"},
                members      = 0
            }, {
                name         = "Avantoe",
                level        = 48,
                xp           = 10,
                material     = {1, "Herb (Avantoe)"},
                members      = 0
            }, {
                name         = "Kwuarm",
                level        = 54,
                xp           = 11.25,
                material     = {1, "Herb (Kwuarm)"},
                members      = 0
            }, {
                name         = "Cadantine",
                level        = 65,
                xp           = 12.5,
                material     = {1, "Herb (Cadantine)"},
                members      = 0
            }, {
                name         = "Dwarf Weed",
                level        = 70,
                xp           = 13.75,
                material     = {1, "Herb (Dwarf Weed)"},
                members      = 0
            }, {
                name         = "Torstol",
                level        = 75,
                xp           = 15,
                material     = {1, "Herb (Torstol)"},
                members      = 0
            }
        }
        return methods
    end

    -- Standard potions
    if trainMethod == "Potions" then
        local methods = 
        {
            {
                name         = "attack Potion (3 dose)",
                title        = "Attack Potion",
                level        = 1,
                xp           = 25,
                material     = {1, "Unfinished potion (Guam)", 1, "Eye of newt"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Cure poison Potion (3 dose)",
                title        = "Cure poison Potion",
                level        = 5,
                xp           = 37.5,
                material     = {1, "Unfinished potion (Marrentill)", 1, "Ground unicorn horn"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Explosive compound",
                level        = 10,
                xp           = 7.5,
                material     = {1, "Mixed chemicals (step 2)", 1, "Arcenia root"},
                mcount       = 2,
                trade        = 0,
                members      = 0
            }, {
                name         = "Strength Potion (3 dose)",
                title        = "Strength potion",
                level        = 12,
                xp           = 50,
                material     = {1, "Unfinished potion (Tarromin)", 1, "Limpwurt root"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Ogre potion",
                level        = 14,
                xp           = 25,
                material     = {1, "Unfinished potion (Ogre)", 1, "Ground bat bones"},
                mcount       = 2,
                trade        = 0,
                members      = 0
            }, {
                name         = "Stat restoration Potion (3 dose)",
                title        = "Stat restoration Potion",
                level        = 22,
                xp           = 62.5,
                material     = {1, "Unfinished potion (Harralander)", 1, "Red spiders eggs"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Blamish oil",
                level        = 25,
                xp           = 80,
                material     = {1, "Harralander", 1, "Blamish snail slime"},
                mcount       = 1,
                trade        = 0,
                members      = 0
            }, {
                name         = "defense Potion (3 dose)",
                title        = "defense Potion",
                level        = 30,
                xp           = 75,
                material     = {1, "Unfinished potion (Ranarr)", 1, "White berries"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "restore prayer Potion (3 dose)",
                title        = "restore prayer Potion",
                level        = 38,
                xp           = 87.5,
                material     = {1, "Unfinished potion (Ranarr)", 1, "Snape grass"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Super attack Potion (3 dose)",
                title        = "Super attack Potion",
                level        = 45,
                xp           = 100,
                material     = {1, "Unfinished potion (Irit)", 1, "Eye of newt"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Poison antidote (3 dose)",
                title        = "Poison antidote",
                level        = 48,
                xp           = 106.25,
                material     = {1, "Unfinished potion (Irit)", 1, "Ground unicorn horn"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "fishing Potion (3 dose)",
                title        = "fishing Potion",
                level        = 50,
                xp           = 112.5,
                material     = {1, "Unfinished potion (Avantoe)", 1, "Snape grass"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Super strength Potion (3 dose)",
                title        = "Super strength Potion",
                level        = 55,
                xp           = 125,
                material     = {1, "Unfinished potion (Kwuarm)", 1, "Limpwurt root"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "weapon poison",
                level        = 60,
                xp           = 137.5,
                material     = {1, "Unfinished potion (Kwuarm)", 1, "Ground blue dragon scale"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Super defense Potion (3 dose)",
                title        = "Super defense Potion",
                level        = 66,
                xp           = 150,
                material     = {1, "Unfinished potion (Cadantine)", 1, "White berries"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Ranging Potion (3 dose)",
                title        = "Ranging Potion",
                level        = 72,
                xp           = 162.5,
                material     = {1, "Unfinished potion (Dwarf Weed)", 1, "wine of Zamorak"},
                mcount       = 2,
                members      = 0
            }, {
                name         = "Potion of Zamorak (3 dose)",
                title        = "Potion of Zamorak",
                level        = 78,
                xp           = 175,
                material     = {1, "Unfinished potion (Torstol)", 1, "Jangerberries"},
                mcount       = 2,
                members      = 0
            }
        }
        return methods
    end

    -- Standard potions from scratch
    if trainMethod == "Potions (Scratch)" then
        local methods = 
        {
            {
                name         = "attack Potion (3 dose)",
                title        = "Attack potion",
                level        = 1,
                xp           = 25,
                material     = {1, "Guam leaf", 1, "Eye of newt", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Cure poison Potion (3 dose)",
                title        = "Cure poison Potion",
                level        = 5,
                xp           = 37.5,
                material     = {1, "Marrentill", 1, "Ground unicorn horn", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Explosive compound",
                level        = 10,
                xp           = 18.75,
                material     = {1, "Nitroglycerin", 1, "Ammonium Nitrate", 1, "Ground charcoal", 1, "Arcenia root"},
                mcount       = 4,
                trade        = 0,
                members      = 0
            }, {
                name         = "Strength Potion (3 dose)",
                title        = "Strength potion",
                level        = 12,
                xp           = 50,
                material     = {1, "Tarromin", 1, "Limpwurt root", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Ogre potion",
                level        = 14,
                xp           = 50,
                material     = {1, "Unfinished potion (Guam)", 1, "Jangerberries", 1, "Ground bat bones"},
                mcount       = 3,
                trade        = 0,
                members      = 0
            }, {
                name         = "Stat restoration Potion (3 dose)",
                title        = "Stat restoration Potion",
                level        = 22,
                xp           = 62.5,
                material     = {1, "Harralander", 1, "Red spiders eggs", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Blamish oil",
                level        = 25,
                xp           = 80,
                material     = {1, "Harralander", 1, "Blamish snail slime"},
                mcount       = 1,
                trade        = 0,
                members      = 0
            }, {
                name         = "defense Potion (3 dose)",
                title        = "defense Potion",
                level        = 30,
                xp           = 75,
                material     = {1, "Ranarr Weed", 1, "White berries", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "restore prayer Potion (3 dose)",
                title        = "restore prayer Potion",
                level        = 38,
                xp           = 87.5,
                material     = {1, "Ranarr Weed", 1, "Snape grass", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Super attack Potion (3 dose)",
                title        = "Super attack Potion",
                level        = 45,
                xp           = 100,
                material     = {1, "Irit Leaf", 1, "Eye of newt", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Poison antidote (3 dose)",
                title        = "Poison antidote",
                level        = 48,
                xp           = 106.25,
                material     = {1, "Irit Leaf", 1, "Ground unicorn horn", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "fishing Potion (3 dose)",
                title        = "fishing Potion",
                level        = 50,
                xp           = 112.5,
                material     = {1, "Avantoe", 1, "Snape grass", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Super strength Potion (3 dose)",
                title        = "Super strength Potion",
                level        = 55,
                xp           = 125,
                material     = {1, "Kwuarm", 1, "Limpwurt root", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "weapon poison",
                level        = 60,
                xp           = 137.5,
                material     = {1, "Kwuarm", 1, "Ground blue dragon scale", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Super defense Potion (3 dose)",
                title        = "Super defense Potion",
                level        = 66,
                xp           = 150,
                material     = {1, "Cadantine", 1, "White berries", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Ranging Potion (3 dose)",
                title        = "Ranging Potion",
                level        = 72,
                xp           = 162.5,
                material     = {1, "Dwarf Weed", 1, "wine of Zamorak", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }, {
                name         = "Potion of Zamorak (3 dose)",
                title        = "Potion of Zamorak",
                level        = 78,
                xp           = 175,
                material     = {1, "Torstol", 1, "Jangerberries", 1, "Vial (water)"},
                mcount       = 3,
                members      = 0
            }
        }
        return methods
    end
end