Module:Sandbox/User:Devilchat

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Template:Module sandbox/doc. [edit] [history] [purge]
Module:Sandbox/User:Devilchat loads data from Module:GEHighAlchs/data.json.
Module:Sandbox/User:Devilchat loads data from Module:GELimits/data.json.
Module:Sandbox/User:Devilchat loads data from Module:GEPrices/data.json.
Function list
L 8 — p.main

This module is a sandbox for Devilchat. It can be used to test changes to existing modules, prototype new modules, or just experiment with Lua features.

Invocations of this sandbox should be kept in userspace; if the module is intended for use in other namespaces, it should be moved out of the sandbox into a normal module and template.

This default documentation can be overridden by creating the /doc subpage of this module, as normal.

--<nowiki>
local prices = mw.loadJsonData('Module:GEPrices/data.json')
local highAlchValues = mw.loadJsonData('Module:GEHighAlchs/data.json')
local limits = mw.loadJsonData('Module:GELimits/data.json')

local p = {}

function p.main(args)
	for k, v in pairs( prices ) do
		mw.log(k)
	end	
end

return p
--</nowiki>