<?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%3AGEBot_dump</id>
	<title>Module:GEBot dump - 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%3AGEBot_dump"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:GEBot_dump&amp;action=history"/>
	<updated>2026-05-05T15:17:30Z</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:GEBot_dump&amp;diff=34941&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;local p = {}  function p.get(frame) 	return p._get(frame.args[1], frame.args[2]==&#039;yes&#039;) end  function p._get(offset, allowhistorical) 	local dpl = [=[ {{#dpl: |namespace=Module |titlematch=Exchange/%% |nottitlematch=Exchange/%%/Data |nottitlematch=Exchange/%%/doc |nottitlematch=Exchange/%%/annotations.json |ordermethod=title |format=,@%%TITLE%%@,, |replaceintitle=/^Exchange\//, |offset=%s }} ]=] 	dpl = dpl:format(offset) 	local res = mw.getCurrentFrame():preprocess(dpl)...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:GEBot_dump&amp;diff=34941&amp;oldid=prev"/>
		<updated>2024-10-16T23:12:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.get(frame) 	return p._get(frame.args[1], frame.args[2]==&amp;#039;yes&amp;#039;) end  function p._get(offset, allowhistorical) 	local dpl = [=[ {{#dpl: |namespace=Module |titlematch=Exchange/%% |nottitlematch=Exchange/%%/Data |nottitlematch=Exchange/%%/doc |nottitlematch=Exchange/%%/annotations.json |ordermethod=title |format=,@%%TITLE%%@,, |replaceintitle=/^Exchange\//, |offset=%s }} ]=] 	dpl = dpl:format(offset) 	local res = mw.getCurrentFrame():preprocess(dpl)...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.get(frame)&lt;br /&gt;
	return p._get(frame.args[1], frame.args[2]==&amp;#039;yes&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._get(offset, allowhistorical)&lt;br /&gt;
	local dpl = [=[&lt;br /&gt;
{{#dpl:&lt;br /&gt;
|namespace=Module&lt;br /&gt;
|titlematch=Exchange/%%&lt;br /&gt;
|nottitlematch=Exchange/%%/Data&lt;br /&gt;
|nottitlematch=Exchange/%%/doc&lt;br /&gt;
|nottitlematch=Exchange/%%/annotations.json&lt;br /&gt;
|ordermethod=title&lt;br /&gt;
|format=,@%%TITLE%%@,,&lt;br /&gt;
|replaceintitle=/^Exchange\//,&lt;br /&gt;
|offset=%s&lt;br /&gt;
}}&lt;br /&gt;
]=]&lt;br /&gt;
	dpl = dpl:format(offset)&lt;br /&gt;
	local res = mw.getCurrentFrame():preprocess(dpl)&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for v in mw.ustring.gmatch(res, &amp;#039;@(.-)@&amp;#039;) do&lt;br /&gt;
		local data_good, data = pcall(mw.loadData, &amp;#039;Module:Exchange/&amp;#039;..v)&lt;br /&gt;
		if data_good then&lt;br /&gt;
			local allowpage = true&lt;br /&gt;
			if data.historical then&lt;br /&gt;
				if not allowhistorical then&lt;br /&gt;
					allowpage = false&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if allowpage then&lt;br /&gt;
				local out_data = {&lt;br /&gt;
					id=data.itemId,&lt;br /&gt;
					name=v,&lt;br /&gt;
					limit=data.limit,&lt;br /&gt;
					value=data.value,&lt;br /&gt;
					icon=data.icon,&lt;br /&gt;
					members=data.members,&lt;br /&gt;
					examine=data.examine&lt;br /&gt;
				}&lt;br /&gt;
				local val = tonumber(data.value)&lt;br /&gt;
				if (data.alchable == nil or data.alchable == true) and val then&lt;br /&gt;
					local mult = 0.6&lt;br /&gt;
					if type(data.alchmultiplier) == &amp;#039;number&amp;#039; then&lt;br /&gt;
						mult = data.alchmultiplier&lt;br /&gt;
					end&lt;br /&gt;
					out_data.highalch = math.max(1, math.floor(mult * val))&lt;br /&gt;
					out_data.lowalch = math.max(1, math.floor(mult * val * 2/3))&lt;br /&gt;
				end&lt;br /&gt;
				table.insert(out, out_data)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return mw.text.jsonEncode(out)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>