<?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%3ACron%2Falch</id>
	<title>Module:Cron/alch - 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%3ACron%2Falch"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Cron/alch&amp;action=history"/>
	<updated>2026-05-05T15:18:45Z</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:Cron/alch&amp;diff=38362&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;local exchange = require(&#039;Module:Exchange&#039;)  local p = {}  function p.getPages(offset) 	local dpl_base = offset = %s }} 	local pages = {} 	local dpl = string.format(dpl_base, offset) 	local r = mw.getCurrentFrame():preprocess(dpl) 	if string.match(r, &quot;Warning: No results.&quot;) then 		return pages 	end 	local split = mw.text.gsplit(r, &#039;@@&#039;) 	for line in split do 		line = mw.text.trim(line) 		i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Cron/alch&amp;diff=38362&amp;oldid=prev"/>
		<updated>2024-10-17T09:03:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local exchange = require(&amp;#039;Module:Exchange&amp;#039;)  local p = {}  function p.getPages(offset) 	local dpl_base = [[{{#dpl: |namespace = Exchange |ordermethod = title |format = ,\n@@%%TITLE%%,, |offset = %s }}]] 	local pages = {} 	local dpl = string.format(dpl_base, offset) 	local r = mw.getCurrentFrame():preprocess(dpl) 	if string.match(r, &amp;quot;Warning: No results.&amp;quot;) then 		return pages 	end 	local split = mw.text.gsplit(r, &amp;#039;@@&amp;#039;) 	for line in split do 		line = mw.text.trim(line) 		i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local exchange = require(&amp;#039;Module:Exchange&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.getPages(offset)&lt;br /&gt;
	local dpl_base = [[{{#dpl:&lt;br /&gt;
|namespace = Exchange&lt;br /&gt;
|ordermethod = title&lt;br /&gt;
|format = ,\n@@%%TITLE%%,,&lt;br /&gt;
|offset = %s&lt;br /&gt;
}}]]&lt;br /&gt;
	local pages = {}&lt;br /&gt;
	local dpl = string.format(dpl_base, offset)&lt;br /&gt;
	local r = mw.getCurrentFrame():preprocess(dpl)&lt;br /&gt;
	if string.match(r, &amp;quot;Warning: No results.&amp;quot;) then&lt;br /&gt;
		return pages&lt;br /&gt;
	end&lt;br /&gt;
	local split = mw.text.gsplit(r, &amp;#039;@@&amp;#039;)&lt;br /&gt;
	for line in split do&lt;br /&gt;
		line = mw.text.trim(line)&lt;br /&gt;
		if line ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			local values = mw.text.split(line, &amp;#039;\n|&amp;#039;)&lt;br /&gt;
			local page = table.remove(values, 1)&lt;br /&gt;
			pages[page] = values&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return pages&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.each(page, data)&lt;br /&gt;
	local limit = exchange._highalch(page, 1)&lt;br /&gt;
	table.insert(data, limit)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local offset = frame.args.offset&lt;br /&gt;
	local pages = p.getPages(offset)&lt;br /&gt;
	&lt;br /&gt;
	for page, data in pairs(pages) do&lt;br /&gt;
		p.each(page, data)&lt;br /&gt;
		if #data == 0 then&lt;br /&gt;
			pages[page] = nil&lt;br /&gt;
		end&lt;br /&gt;
		if #data == 1 then&lt;br /&gt;
			pages[page] = data[1]&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local ret = mw.dumpObject(pages):gsub(&amp;#039;table#%d+&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>