<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AGetMostExpensiveArmorPiece</id>
	<title>Module:GetMostExpensiveArmorPiece - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AGetMostExpensiveArmorPiece"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:GetMostExpensiveArmorPiece&amp;action=history"/>
	<updated>2026-05-05T15:18:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:GetMostExpensiveArmorPiece&amp;diff=34960&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;-- Module:GetMostExpensiveArmorPiece  local p = {}  -- Define the equipment slots local slotOptions = {&#039;head&#039;, &#039;cape&#039;, &#039;neck&#039;, &#039;ammo&#039;, &#039;weapon&#039;, &#039;shield&#039;, &#039;body&#039;, &#039;legs&#039;, &#039;hands&#039;, &#039;feet&#039;, &#039;ring&#039;, &#039;2h&#039;}  function p.getMostExpensiveArmorPiece() 	local geprices = mw.loadJsonData(&#039;Module:GEPrices/data.json&#039;)     -- Check if the specified slot is valid     -- local slotName = slotOptions[slot]     -- if not slotName then     --     return &quot;Invalid equipment slot&quot;     -- end...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:GetMostExpensiveArmorPiece&amp;diff=34960&amp;oldid=prev"/>
		<updated>2024-10-16T23:12:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module:GetMostExpensiveArmorPiece  local p = {}  -- Define the equipment slots local slotOptions = {&amp;#039;head&amp;#039;, &amp;#039;cape&amp;#039;, &amp;#039;neck&amp;#039;, &amp;#039;ammo&amp;#039;, &amp;#039;weapon&amp;#039;, &amp;#039;shield&amp;#039;, &amp;#039;body&amp;#039;, &amp;#039;legs&amp;#039;, &amp;#039;hands&amp;#039;, &amp;#039;feet&amp;#039;, &amp;#039;ring&amp;#039;, &amp;#039;2h&amp;#039;}  function p.getMostExpensiveArmorPiece() 	local geprices = mw.loadJsonData(&amp;#039;Module:GEPrices/data.json&amp;#039;)     -- Check if the specified slot is valid     -- local slotName = slotOptions[slot]     -- if not slotName then     --     return &amp;quot;Invalid equipment slot&amp;quot;     -- end...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:GetMostExpensiveArmorPiece&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Define the equipment slots&lt;br /&gt;
local slotOptions = {&amp;#039;head&amp;#039;, &amp;#039;cape&amp;#039;, &amp;#039;neck&amp;#039;, &amp;#039;ammo&amp;#039;, &amp;#039;weapon&amp;#039;, &amp;#039;shield&amp;#039;, &amp;#039;body&amp;#039;, &amp;#039;legs&amp;#039;, &amp;#039;hands&amp;#039;, &amp;#039;feet&amp;#039;, &amp;#039;ring&amp;#039;, &amp;#039;2h&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
function p.getMostExpensiveArmorPiece()&lt;br /&gt;
	local geprices = mw.loadJsonData(&amp;#039;Module:GEPrices/data.json&amp;#039;)&lt;br /&gt;
    -- Check if the specified slot is valid&lt;br /&gt;
    -- local slotName = slotOptions[slot]&lt;br /&gt;
    -- if not slotName then&lt;br /&gt;
    --     return &amp;quot;Invalid equipment slot&amp;quot;&lt;br /&gt;
    -- end&lt;br /&gt;
	local slot = &amp;#039;head&amp;#039;&lt;br /&gt;
    local mostExpensiveItem = nil&lt;br /&gt;
    local highestPrice = 0&lt;br /&gt;
&lt;br /&gt;
    -- Iterate through all items in the slot&lt;br /&gt;
    for _, item in geprices do&lt;br /&gt;
        if item.slot == slotName then&lt;br /&gt;
            local price = exchange._price(item.name)&lt;br /&gt;
            if price &amp;gt; highestPrice then&lt;br /&gt;
                highestPrice = price&lt;br /&gt;
                mostExpensiveItem = item&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>