Module:ItemPrices

From Chronicles of Torisia
Jump to navigation Jump to search

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

-- Auto-generated from game database, do not edit manually!!!!!
local p = {
  items = {
    ["Bank expander"] = 0,
    ["Minor cooldown rate potion"] = 1020,
    ["Minor critical chance potion"] = 1020,
    ["Minor critical damage potion"] = 1020,
    ["Minor damage potion"] = 1020,
    ["Minor haste potion"] = 1020,
    ["Minor mana regeneration potion"] = 1020,
    ["Standard cooldown rate potion"] = 11751,
    ["Standard critical chance potion"] = 11751,
    ["Standard critical damage potion"] = 11751,
    ["Standard damage potion"] = 11751,
    ["Standard haste potion"] = 11751,
    ["Standard mana regeneration potion"] = 11751,
    ["Superior cooldown rate potion"] = 135403,
    ["Superior critical chance potion"] = 135403,
    ["Superior critical damage potion"] = 135403,
    ["Superior damage potion"] = 135403,
    ["Superior haste potion"] = 135403,
    ["Superior mana regeneration potion"] = 135403,
    ["Minor fire essence"] = 3,
    ["Minor ice essence"] = 3,
    ["Minor light essence"] = 3,
    ["Minor nature essence"] = 3,
    ["Minor shadow essence"] = 3,
    ["Minor storm essence"] = 3,
    ["Standard fire essence"] = 6,
    ["Standard ice essence"] = 6,
    ["Standard light essence"] = 6,
    ["Standard nature essence"] = 6,
    ["Standard shadow essence"] = 6,
    ["Standard storm essence"] = 6,
    ["Superior fire essence"] = 11,
    ["Superior ice essence"] = 11,
    ["Superior light essence"] = 11,
    ["Superior nature essence"] = 11,
    ["Superior shadow essence"] = 11,
    ["Superior storm essence"] = 11,
    ["Arcane calming dust"] = 3989,
    ["Bent hook"] = 16,
    ["Fresh fish bait"] = 346,
    ["Iron hook"] = 346,
    ["Juicy worm bait"] = 3989,
    ["Magical magnet"] = 3989,
    ["Powerful calming dust"] = 346,
    ["Rotten fish bait"] = 16,
    ["Rusty magnet"] = 16,
    ["Sharpened hook"] = 3989,
    ["Stinky worm bait"] = 16,
    ["Sturdy magnet"] = 346,
    ["Tasty fish bait"] = 3989,
    ["Weak calming dust"] = 16,
    ["Wiggly worm bait"] = 346,
    ["Apple pie"] = 73491,
    ["Apple"] = 1020,
    ["Blueberries"] = 163,
    ["Blueberry cake"] = 73491,
    ["Blueberry jam"] = 1020,
    ["Boiled egg"] = 1020,
    ["Bread"] = 1020,
    ["Butter"] = 1020,
    ["Carrot"] = 163,
    ["Cheese"] = 1020,
    ["Egg"] = 163,
    ["Flour"] = 163,
    ["French fries"] = 73491,
    ["Garlic bread"] = 73491,
    ["Garlic"] = 163,
    ["Honey"] = 163,
    ["Ketchup"] = 1020,
    ["Milk"] = 163,
    ["Mushroom"] = 163,
    ["Omelette"] = 73491,
    ["Parsley"] = 163,
    ["Pizza"] = 73491,
    ["Potato"] = 163,
    ["Salad"] = 73491,
    ["Soup"] = 73491,
    ["Sugar"] = 1020,
    ["Tomato"] = 163,
    ["Wheat"] = 102,
    ["Antidote"] = 33,
    ["Celestial health potion"] = 27081,
    ["Celestial mana potion"] = 27081,
    ["Celestial rejuvenation potion"] = 24373,
    ["Greater health potion"] = 1276,
    ["Greater mana potion"] = 1276,
    ["Greater rejuvenation potion"] = 1148,
    ["Lesser health potion"] = 111,
    ["Lesser mana potion"] = 111,
    ["Lesser rejuvenation potion"] = 100,
    ["Minor health potion"] = 33,
    ["Minor mana potion"] = 33,
    ["Minor rejuvenation potion"] = 29,
    ["Standard health potion"] = 376,
    ["Standard mana potion"] = 376,
    ["Standard rejuvenation potion"] = 338,
    ["Superior health potion"] = 4330,
    ["Superior mana potion"] = 4330,
    ["Superior rejuvenation potion"] = 3897,
    ["Unlimited celestial health potion"] = 4062088,
    ["Unlimited celestial mana potion"] = 4062088,
    ["Unlimited greater health potion"] = 191332,
    ["Unlimited greater mana potion"] = 191332,
    ["Unlimited lesser health potion"] = 16604,
    ["Unlimited lesser mana potion"] = 16604,
    ["Unlimited minor health potion"] = 4891,
    ["Unlimited minor mana potion"] = 4891,
    ["Unlimited standard health potion"] = 56364,
    ["Unlimited standard mana potion"] = 56364,
    ["Unlimited superior health potion"] = 649490,
    ["Unlimited superior mana potion"] = 649490,
    ["Water"] = 33,
    ["Inventory expander"] = 0,
    ["Celestium key"] = 10,
    ["Celestium lockpick"] = 3675,
    ["Celestium master key"] = 10,
    ["Cobalt key"] = 10,
    ["Cobalt lockpick"] = 94,
    ["Cobalt master key"] = 10,
    ["Copper key"] = 10,
    ["Copper lockpick"] = 8,
    ["Copper master key"] = 10,
    ["Emeralite key"] = 10,
    ["Emeralite lockpick"] = 319,
    ["Emeralite master key"] = 10,
    ["Gold key"] = 10,
    ["Gold lockpick"] = 28,
    ["Gold master key"] = 10,
    ["Lockbane"] = 1082,
    ["Mithril key"] = 10,
    ["Mithril lockpick"] = 1082,
    ["Mithril master key"] = 10,
    ["Material bank expander"] = 0,
    ["Recipe - Slime chestplate"] = 16,
    ["Recipe - Slime cloak"] = 10,
    ["Recipe - Cooldown rate potions"] = 30,
    ["Recipe - Critical chance potions"] = 30,
    ["Recipe - Critical damage potions"] = 30,
    ["Recipe - Damage potions"] = 30,
    ["Recipe - Haste potions"] = 30,
    ["Recipe - Mana regeneration potions"] = 30,
    ["Recipe - Apple pie"] = 1175,
    ["Recipe - Blueberry cake"] = 346,
    ["Recipe - Blueberry jam"] = 30,
    ["Recipe - Boiled egg"] = 30,
    ["Recipe - Bread"] = 30,
    ["Recipe - Butter"] = 30,
    ["Recipe - Cheese"] = 30,
    ["Recipe - French fries"] = 346,
    ["Recipe - Garlic bread"] = 346,
    ["Recipe - Ketchup"] = 30,
    ["Recipe - Omelette"] = 346,
    ["Recipe - Pizza"] = 346,
    ["Recipe - Salad"] = 346,
    ["Recipe - Soup"] = 346,
    ["Recipe - Sugar"] = 30,
    ["Recipe - Slime gloves"] = 10,
    ["Recipe - Slime helmet"] = 10,
    ["Recipe - Antidote"] = 16,
    ["Recipe - Strong health potions"] = 346,
    ["Recipe - Strong mana potions"] = 346,
    ["Recipe - Strong rejuvenation potions"] = 346,
    ["Recipe - Unlimited celestial health potion"] = 7349,
    ["Recipe - Unlimited celestial mana potion"] = 7349,
    ["Recipe - Unlimited greater health potion"] = 638,
    ["Recipe - Unlimited greater mana potion"] = 638,
    ["Recipe - Unlimited lesser health potion"] = 55,
    ["Recipe - Unlimited lesser mana potion"] = 55,
    ["Recipe - Unlimited minor health potion"] = 16,
    ["Recipe - Unlimited minor mana potion"] = 16,
    ["Recipe - Unlimited standard health potion"] = 188,
    ["Recipe - Unlimited standard mana potion"] = 188,
    ["Recipe - Unlimited superior health potion"] = 2165,
    ["Recipe - Unlimited superior mana potion"] = 2165,
    ["Recipe - Weak health potions"] = 16,
    ["Recipe - Weak mana potions"] = 16,
    ["Recipe - Weak rejuvenation potions"] = 16,
    ["Recipe - Slime pants"] = 16,
    ["Recipe - Celestium lockpick"] = 7349,
    ["Recipe - Cobalt lockpick"] = 188,
    ["Recipe - Copper lockpick"] = 16,
    ["Recipe - Emeralite lockpick"] = 638,
    ["Recipe - Gold lockpick"] = 55,
    ["Recipe - Mithril lockpick"] = 2165,
    ["Recipe - Slime shoes"] = 10,
    ["Recipe - Combat experience potions"] = 16,
    ["Recipe - Crafting potions"] = 16,
    ["Recipe - Gathering potions"] = 16,
    ["Recipe - Professions experience potions"] = 16,
    ["Recipe - Rarity potions"] = 16,
    ["Recipe - Travel potions"] = 16,
    ["Recipe - Water movement potions"] = 16,
    ["Recipe - Wealth potions"] = 16,
    ["Greater combat experience potion"] = 5875,
    ["Greater crafting potion"] = 4700,
    ["Greater gathering potion"] = 5875,
    ["Greater professions experience potion"] = 5875,
    ["Greater rarity potion"] = 5875,
    ["Greater travel potion"] = 3525,
    ["Greater water movement potion"] = 3525,
    ["Greater wealth potion"] = 5875,
    ["Minor combat experience potion"] = 150,
    ["Minor crafting potion"] = 120,
    ["Minor gathering potion"] = 150,
    ["Minor professions experience potion"] = 150,
    ["Minor rarity potion"] = 150,
    ["Minor travel potion"] = 90,
    ["Minor water movement potion"] = 90,
    ["Minor wealth potion"] = 150,
    ["Standard combat experience potion"] = 939,
    ["Standard crafting potion"] = 752,
    ["Standard gathering potion"] = 939,
    ["Standard professions experience potion"] = 939,
    ["Standard rarity potion"] = 939,
    ["Standard travel potion"] = 564,
    ["Standard water movement potion"] = 564,
    ["Standard wealth potion"] = 939,
    ["Superior combat experience potion"] = 36746,
    ["Superior crafting potion"] = 29397,
    ["Superior gathering potion"] = 36746,
    ["Superior professions experience potion"] = 36746,
    ["Superior rarity potion"] = 36746,
    ["Superior travel potion"] = 22047,
    ["Superior water movement potion"] = 22047,
    ["Superior wealth potion"] = 36746,
    ["Amulet of eternal clouds"] = 0,
    ["Amulet of eternal rain"] = 0,
    ["Amulet of eternal sunshine"] = 0,
    ["Amulet of eternal wind"] = 0,
    ["Cat eye"] = 0,
    ["Lantern"] = 0,
    ["Reinforced torch"] = 0,
    ["Torch"] = 0,
    ["Simple shoes"] = 0,
    ["Slime shoes"] = 0,
    ["Slime chestplate"] = 0,
    ["Worn ash coat"] = 0,
    ["Worn ash tabard"] = 0,
    ["Worn azure vest"] = 0,
    ["Worn blue coat"] = 0,
    ["Worn blue tabard"] = 0,
    ["Worn blue robe"] = 0,
    ["Worn blue shirt"] = 0,
    ["Worn blue vest"] = 0,
    ["Worn brown tabard"] = 0,
    ["Worn brown robe"] = 0,
    ["Worn brown tunic"] = 0,
    ["Worn green tabard"] = 0,
    ["Worn green robe"] = 0,
    ["Worn green shirt"] = 0,
    ["Worn green tunic"] = 0,
    ["Worn green vest"] = 0,
    ["Worn magenta coat"] = 0,
    ["Worn magenta robe"] = 0,
    ["Worn mint tabard"] = 0,
    ["Worn mint vest"] = 0,
    ["Worn orange shirt"] = 0,
    ["Worn orange vest"] = 0,
    ["Worn pink robe"] = 0,
    ["Worn pink tunic"] = 0,
    ["Worn pink tabard"] = 0,
    ["Worn purple tunic"] = 0,
    ["Worn red coat"] = 0,
    ["Worn red tabard"] = 0,
    ["Worn red shirt"] = 0,
    ["Worn red tunic"] = 0,
    ["Worn red vest"] = 0,
    ["Worn sandy shirt"] = 0,
    ["Worn sandy coat"] = 0,
    ["Worn sandy tunic"] = 0,
    ["Worn teal coat"] = 0,
    ["Worn teal robe"] = 0,
    ["Worn white coat"] = 0,
    ["Worn white tabard"] = 0,
    ["Worn white robe"] = 0,
    ["Worn white shirt"] = 0,
    ["Worn white tunic"] = 0,
    ["Worn white vest"] = 0,
    ["Simple white cape"] = 0,
    ["Slime cloak"] = 0,
    ["Basic fishing rod"] = 0,
    ["Celestial fishing rod"] = 0,
    ["Enchanted fishing rod"] = 0,
    ["Magical fishing rod"] = 0,
    ["Masterwork fishing rod"] = 0,
    ["Refined fishing rod"] = 0,
    ["Worn fishing rod"] = 0,
    ["Simple white gloves"] = 0,
    ["Slime gloves"] = 0,
    ["Simple white headpiece"] = 0,
    ["Slime helmet"] = 0,
    ["Simple white pants"] = 0,
    ["Slime pants"] = 0,
    ["Copper wand"] = 0,
    ["Simple wand"] = 0,
    ["Copper ring"] = 0,
    ["Copper staff"] = 0,
    ["Eternity"] = 0,
    ["Grassy staff"] = 0,
    ["Hivebender"] = 0,
    ["Shitty stick"] = 0,
    ["Soul of luck"] = 100,
    ["Soul of mana"] = 100,
    ["Soul of power"] = 100,
    ["Soul of vitality"] = 100,
    ["Celestial rift shard"] = 19944,
    ["Slime glob"] = 20,
    ["Wasp stinger"] = 20,
    ["Fire crystal"] = 10,
    ["Azure frog"] = 2497,
    ["Catfish"] = 38,
    ["Cloudfish"] = 67701,
    ["Cryofin"] = 2549,
    ["Dragonfish"] = -2147483648,
    ["Dune serpent"] = 8654,
    ["Duskwater pike"] = 36746,
    ["Electric eel"] = 54124,
    ["Emerald dart"] = 1384,
    ["Fiery carp"] = 391,
    ["Fiery pike"] = 19944,
    ["Forest frog"] = 38,
    ["Frostbite"] = 4072,
    ["Ghostfish"] = 29376,
    ["Glacial carp"] = 62,
    ["Glowing jellyfish"] = 102,
    ["Glowing shrimp"] = 12232,
    ["Goldfish"] = 80905536,
    ["Ice minnow"] = 62,
    ["Iciclefin"] = 4072,
    ["Icy pike"] = 4072,
    ["Inferno eel"] = 19944,
    ["Large shark"] = 7502,
    ["Lava minnow"] = 391,
    ["Leafscale"] = 2497,
    ["Marsh pike"] = 2497,
    ["Minnow"] = 38,
    ["Moss carp"] = 38,
    ["Mountainscale"] = 67701,
    ["Mud lobster"] = 188,
    ["Nightmare carp"] = 637,
    ["Octopus"] = 4697,
    ["Pebblefish"] = 346,
    ["Phantomscale"] = 36746,
    ["Pink starfish"] = 7502,
    ["Rainbow catfish"] = 2497,
    ["Red crab"] = 12232,
    ["Red lobster"] = 12232,
    ["Sand crab"] = 188,
    ["Sandy starfish"] = 102,
    ["Seahorse"] = 7502,
    ["Seashell"] = 102,
    ["Shiverfish"] = 62,
    ["Shrimp"] = 188,
    ["Small sand shark"] = 102,
    ["Stealthfish"] = 80905536,
    ["Stonescale"] = 346,
    ["Storm carp"] = 346,
    ["Storm minnow"] = 346,
    ["Thunder pike"] = 67701,
    ["Thunderscale"] = 67701,
    ["Void jellyfish"] = 7502,
    ["Void minnow"] = 637,
    ["Cloudroot"] = 3462,
    ["Ember leaf"] = 2165,
    ["Ember seeds"] = 39888,
    ["Everbloom dust"] = 601,
    ["Frost root"] = 11751,
    ["Glacial dust"] = 18,
    ["Glacial orb"] = 300,
    ["Glowcore"] = 21650,
    ["Glowleaf"] = 1175,
    ["Icicle"] = 638,
    ["Kindle ash"] = 1020,
    ["Kindle rod"] = 55,
    ["Nimbus sphere"] = 188,
    ["Pricklefiber"] = 553,
    ["Sunflower petals"] = 163,
    ["Sunflower seeds"] = 13,
    ["Terrabloom"] = 346,
    ["Terravine"] = 6378,
    ["Thorns"] = 30,
    ["Thunder rod"] = 3989,
    ["Thunder seeds"] = 135403,
    ["Twilight root"] = 73491,
    ["Twilight vine"] = 2764,
    ["Void dust"] = 1879,
    ["Void seeds"] = 102,
    ["Greater rift shard"] = 1731,
    ["Ice crystal"] = 10,
    ["Lesser rift shard"] = 150,
    ["Light crystal"] = 10,
    ["Algazite"] = 1107,
    ["Aqua tear"] = 21650,
    ["Astral onyx"] = 135403,
    ["Azure opal"] = 1879,
    ["Celestium ingot"] = 3989,
    ["Coal shard"] = 16,
    ["Coal"] = 16,
    ["Cobalt ingot"] = 102,
    ["Copper ingot"] = 11,
    ["Divinium"] = 270806,
    ["Emberstone"] = 163,
    ["Emeralite ingot"] = 442,
    ["Emirium"] = 6923,
    ["Gold ingot"] = 49,
    ["Infernite"] = 300,
    ["Iron ingot"] = 24,
    ["Jade tear"] = 6378,
    ["Lumenite"] = 43299,
    ["Mithril ingot"] = 920,
    ["Moonstone"] = 73491,
    ["Sky shard"] = 3462,
    ["Skysteel ingot"] = 212,
    ["Solar shard"] = 553,
    ["Stardust ingot"] = 1916,
    ["Zuzulite"] = 326,
    ["Minor rift shard"] = 50,
    ["Nature crystal"] = 10,
    ["Shadow crystal"] = 10,
    ["Standard rift shard"] = 510,
    ["Storm crystal"] = 10,
    ["Superior rift shard"] = 5875,
    ["Gold"] = 1,
    ["Worn white mantle"] = 0,
    ["Worn green mantle"] = 0,
    ["Worn sandy mantle"] = 0,
    ["Worn red mantle"] = 0,
    ["Worn blue mantle"] = 0,
    ["Worn orange mantle"] = 0,
    ["Worn white bracers"] = 0,
    ["Worn green bracers"] = 0,
    ["Worn sandy bracers"] = 0,
    ["Worn red bracers"] = 0,
    ["Worn blue bracers"] = 0,
    ["Worn orange bracers"] = 0,
    ["Worn white cape"] = 0,
    ["Worn brown cape"] = 0,
    ["Worn green cape"] = 0,
    ["Worn mint cape"] = 0,
    ["Worn blue cape"] = 0,
    ["Worn pink cape"] = 0,
    ["Worn ash cape"] = 0,
    ["Worn red cape"] = 0,
    ["Worn white cloak"] = 0,
    ["Worn ash cloak"] = 0,
    ["Worn blue cloak"] = 0,
    ["Worn red cloak"] = 0,
    ["Worn magenta cloak"] = 0,
    ["Worn sandy cloak"] = 0,
    ["Worn teal cloak"] = 0,
    ["Worn white gloves"] = 0,
    ["Worn brown gloves"] = 0,
    ["Worn green gloves"] = 0,
    ["Worn mint gloves"] = 0,
    ["Worn blue gloves"] = 0,
    ["Worn pink gloves"] = 0,
    ["Worn ash gloves"] = 0,
    ["Worn red gloves"] = 0,
    ["Worn white gaunlets"] = 0,
    ["Worn ash gaunlets"] = 0,
    ["Worn blue gaunlets"] = 0,
    ["Worn red gaunlets"] = 0,
    ["Worn magenta gaunlets"] = 0,
    ["Worn sandy gaunlets"] = 0,
    ["Worn teal gaunlets"] = 0,
    ["Crude white circlet"] = 0,
    ["Crude green circlet"] = 0,
    ["Crude sandy circlet"] = 0,
    ["Crude red circlet"] = 0,
    ["Crude blue circlet"] = 0,
    ["Crude orange circlet"] = 0,
    ["Ornate shitty stick"] = 0,
    ["Copper stick"] = 0,
    ["Ornate copper stick"] = 0,
  }
}

function p.getItemPriceNumber(name)
    local value = p.items[name]
    if value then return math.floor(value + 0.5) end
    return nil
end

function p.getItemPrice(frame)
    local name = frame.args[1]
    local price = p.getItemPriceNumber(name)
    return price and tostring(price) or "Cannot be sold"
end

return p