Module:Vendors

--All information of the current xur items --This table is updated by User:DestinyWikiBot. DO NOT change any comments containing the HTML tag: local vendor_table = { --    ["xur"] = { ["status"] = "True", ["curios"] = { ["Plasma\ Drive"] = "Plasma\_Drive\_icon\.jpg", ["\"Emerald\ Coil\""] = "\"Emerald\_Coil\"\_icon\.jpg", ["Heavy\ Ammo\ Synthesis"] = "Heavy\_Ammo\_Synthesis\_icon\.jpg", ["Three\ of\ Coins"] = "Three\_of\_Coins\_icon\.jpg", ["Glass\ Needles"] = "GlassNeedles\.jpg" },       ["material exchange"] = { ["Mote\ of\ Light"] = "Mote\_of\_Light\_icon\.jpg" },       ["exotic gear"] = { ["Helm\ of\ Saint\-14"] = "Helm\_of\_Saint\-14\_\(Year\_2\)\_icon\.jpg", ["Bones\ of\ Eao"] = "Bones\_of\_Eao\_icon\.jpg", ["Voidfang\ Vestments"] = "Voidfang\_Vestments\_\(Year\_2\)\_icon\.jpg", ["Invective"] = "Invective\_\(Year\_2\)\_icon\.jpg", ["Legacy\ Engram"] = "Legacy\_Engram\_icon\.jpg" }   },    ["ironbanner"] = { ["status"] = "True", ["event rewards"] = { ["Iron\ Companion\ Plate"] = "Iron\_Companion\_Plate\_icon\.jpg", ["Iron\ Companion\ Helm"] = "Iron\_Companion\_Helm\_icon\.jpg", ["Iron\ Camelot\ Helm"] = "Iron\_Camelot\_Helm\_icon\.jpg", ["Deidris\'s\ Retort"] = "Deidris\'s\_Retort\_icon\.jpg", ["Finnala\'s\ Peril"] = "Finnala\'s\_Peril\_icon\.jpg", ["Iron\ Pride"] = "Iron\_Pride\_icon\.jpg", ["The\ Ironwood\ Tree"] = "The\_Ironwood\_Tree\_icon\.jpg", ["Million\ Million"] = "Million\_Million\_icon\.jpg", ["Goldspiral"] = "Goldspiral\_icon\.jpg" },       ["available bounties"] = { ["Iron\ Gauntlet"] = "Iron\_Gauntlet\_icon\.jpg", ["Iron\ Marathon"] = "Iron\_Gauntlet\_icon\.jpg", ["Iron\ Versatility"] = "Iron\_Gauntlet\_icon\.jpg", ["Iron\ Precision"] = "Iron\_Precision\_icon\.jpg", ["Iron\ Domination"] = "Iron\_Precision\_icon\.jpg", ["Iron\ Journeyman"] = "Iron\_Precision\_icon\.jpg" }   },    ["armsday"] = { ["status"] = "True", ["miscellaneous"] = { ["Primary\ Telemetry"] = "Primary\_Telemetry\_icon\.jpg", ["Special\ Telemetry"] = "Special\_Telemetry\_icon\.jpg", ["Heavy\ Telemetry"] = "Heavy\_Telemetry\_icon\.jpg", ["Special\ Ammo\ Synthesis"] = "Special\_Ammo\_Synthesis\_icon\.jpg", ["Heavy\ Ammo\ Synthesis"] = "Heavy\_Ammo\_Synthesis\_icon\.jpg", ["Weapon\ Parts"] = "Weapon\_Parts\_icon\.jpg" },       ["weapons"] = { ["Shinigami\ SR1"] = "Shinigami\_SR1\_icon\.jpg", ["Mos\ Scala\ I"] = "Mos\_Scala\_I\_icon\.jpg", ["Antimuon\ ESc"] = "Antimuon\_ESc\_icon\.jpg", ["Qua\ Roris\ I"] = "Qua\_Roris\_I\_icon\.jpg", ["Antimuon\ ESc"] = "Antimuon\_ESc\_icon\.jpg", ["Seneschal\ RS\/1"] = "Seneschal\_RS\_1\_icon\.jpg" },       ["field test weapons"] = { ["H\äkke\ Test\-A"] = "H\äkke\_Test\-A\_icon\.jpg", ["H\äkke\ Test\-A"] = "H\äkke\_Test\-A\_icon\.jpg", ["Omolon\ Test\ FR1"] = "Omolon\_Test\_FR1\_icon\.jpg", ["H\äkke\ Test\-A"] = "H\äkke\_Test\-A\_icon\.jpg", ["Omolon\ Test\ RR1"] = "Omolon\_Test\_RR1\_icon\.jpg" },       ["foundry orders"] = { ["H\äkke\ Arminius\-D"] = "H\äkke\_Arminius\-D\_icon\.jpg", ["SUROS\ PDX\-45"] = "SUROS\_PDX\-45\_icon\.jpg", ["SUROS\ JLB\-47"] = "SUROS\_JLB\-47\_icon\.jpg", ["H\äkke\ Jingukogo\-D"] = "H\äkke\_Arminius\-D\_icon\.jpg", ["Omolon\ Eirene\ RR4"] = "Omolon\_Eirene\_RR4\_icon\.jpg" }   },    ["srl"] = { ["status"] = "False", },   ["trials"] = { ["status"] = "True", ["available bounties"] = { ["Attack\ of\ Opportunity"] = "Attack\_of\_Opportunity\_icon\.jpg", ["Physician"] = "Attack\_of\_Opportunity\_icon\.jpg", ["Trials\ Journeyman"] = "Attack\_of\_Opportunity\_icon\.jpg", ["Teamwork"] = "Attack\_of\_Opportunity\_icon\.jpg", ["Valor\'s\ Reward"] = "Valor\'s\_Reward\_icon\.jpg", ["His\ Eye\ Upon\ You"] = "Valor\'s\_Reward\_icon\.jpg" }   }

-- }

--Main page function returns values in main page friendly format function p.vendor ( frame ) --Sets activity type (activity) and activity information key (info) from arguments. local vendorname = string.lower( frame.args[1] ) local vendortype = string.lower( frame.args[2] ) --If the activity type doesn't exist, returns false if not vendor_table[vendorname] then return "Key does not exist in vendor table. See Module:Activities." end --If activity info value is a table, parses into string format if (type(vendor_table[vendorname]) == "table") then --Creates local string to return local string = "" --Loops through table and returns in format 20px|DESCRIPTION if (frame.args[3] == "mainpage" ) then for itemname, itemfile in pairs(vendor_table[vendorname][vendortype]) do               string = string .. " "            end else for itemname, itemfile in pairs(vendor_table[vendorname][vendortype]) do               string = string .. "* " .. itemname .. "\n" end end return string end

--Adds returned information to global variable return vendor_table[vendortype] end

--Returns global variable return p