User contributions for Alex
Jump to navigation
Jump to search
17 October 2024
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Dry calc/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +4,464 N Module:Dry calc Created page with "local p = {} function expr(x) x = tostring(x) x = x:gsub(",", ".") local expr_good, expr_val = pcall(mw.ext.ParserFunctions.expr, x) if expr_good then return tonumber(expr_val) end return nil end function flavourText(x, obtained) local flavourTexts = { { -1, 1, "You are some sort of sentient water being you're so not-dry. How'd you even do this?" }, { 1, 10, "You're a higher % water than a watermelon.", "Or you would be if you had gotten any drops. But you..." current
- 01:0001:00, 17 October 2024 diff hist +79,102 N Module:DropsLine/Sandbox/AlchData Created page with "return { ['Mind rune'] = {true, true, 73}, ['Chaos rune'] = {true, true, 73}, ['Death rune'] = {true, true, 73}, ['Bolt rack'] = {true, true, 73}, ['Blood rune'] = {true, true, 73}, ['Ahrim\'s hood'] = {true, true, 73}, ['Ahrim\'s robetop'] = {true, true, 73}, ['Ahrim\'s robeskirt'] = {true, true, 73}, ['Ahrim\'s staff'] = {true, true, 73}, ['Dharok\'s helm'] = {true, true, 73}, ['Dharok\'s platebody'] = {true, true, 73}, ['Dharok\'s platelegs'] =..." current
- 01:0001:00, 17 October 2024 diff hist 0 Module:DropsLine/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist +20 N Module:DropsLineClue/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +2,786 N Module:DropsLineClue Created page with "local p = {} local string = string local commas = require('Module:Addcommas')._add function p.main(frame) local args = frame:getParent().args local type = args.type local rarity = args.rarity local altrarity = args.altrarity local altraritydash = args.altraritydash local raritynotes = args.raritynotes ~= nil and args.raritynotes ~= '' and args.raritynotes or nil local f2p = args.f2p ~= nil and args.f2p ~= '' and frame:expandTemplate{ title='(m)' } or nil local..." current
- 01:0001:00, 17 October 2024 diff hist +23,263 Module:BoostedDropsLine/Sandbox No edit summary Tag: Reverted
- 01:0001:00, 17 October 2024 diff hist +3 Module:DPLlua No edit summary Tag: Reverted
- 01:0001:00, 17 October 2024 diff hist +3,588 N Module:Documentation/sandbox Created page with "-- <nowiki> local dependencyList = require( 'Module:DependencyList' ) local yn = require( 'Module:Yesno' ) local p = {} function p.doc( frame ) local title = mw.title.getCurrentTitle() local args = frame:getParent().args local page = args[1] or mw.ustring.gsub( title.fullText, '/doc$', '' ) -- local addDependencyList = yn( args.DependencyList or true ) local addDependencyList = true local ret, cats, ret1, ret2, ret3 local onModule = title.nam..." current
- 01:0001:00, 17 October 2024 diff hist 0 Module:DependencyList/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist +15 Module:DependencyList No edit summary Tag: Reverted
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Demo/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Damage/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +1,483 N Module:Damage Created page with "-- <pre> -- Implements {{MDamage}} local p = {} local function amount(a) -- convert used globals to locals where possible to improve performance local math = math local string = string local table = table local mw = mw local expr = mw.ext.ParserFunctions.expr local ret = {true, true, true, true, '</span>'} ret[1] = '<span class="MDamage Mdamage-' -- strip commas from input -- @example {{GEPrice|Foo}} -> '1,000' a = string.gsub(a, ',', '') -- for..." current
- 01:0001:00, 17 October 2024 diff hist 0 Module:Currencies/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist 0 Module:CombatStyles/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist 0 Module:CombatStylesDisplay/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist +16,153 N Module:Combat Only Pure/Combat Achievements Created page with "local tables = require('Module:Tables') local VariablesLua = mw.ext.VariablesLua local p = {} local whitelist = { ["... 'til Dawn"] = true, ["A Demon's Best Friend"] = true, ["A Frozen Foe from the Past"] = true, ["A Frozen King"] = true, ["A Greater Foe"] = true, ["A Long Trip"] = true, ["A Near Miss!"] = true, ["A Not So Special Lizard"] = true, ["A Scaley Encounter"] = true, ["A Slithery Encounter"] = true, ["A Slow Death"] = true, ["A Smashin..." current
- 01:0001:00, 17 October 2024 diff hist +236 N Module:Combat Achievements Json/doc Created page with "This module outputs a json array containing all combat achievements that have been created in the wiki. It also contains code from https://github.com/rxi/json.lua/blob/master/json.lua as I needed a way to transform a lua table to json." current
- 01:0001:00, 17 October 2024 diff hist +3,728 N Module:Combat Achievements Json Created page with "-- -- json.lua -- -- Copyright (c) 2020 rxi -- -- Permission is hereby granted, free of charge, to any person obtaining a copy of -- this software and associated documentation files (the "Software"), to deal in -- the Software without restriction, including without limitation the rights to -- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -- of the Software, and to permit persons to whom the Software is furnished to do -- so, subject to the..." current
- 01:0001:00, 17 October 2024 diff hist +441 N Module:CoinsGE/doc Created page with "{{Documentation}} This is a wrapper around the Module:Coins module and inspired by the Template:GEP. It combines their functionality to both show the appopriate coins symbol and grab the GE price for the given item. {{Helper module |name = CoinsGE |fname1 = _main(item) |ftype1 = String |fuse1 = Returns a formatted string with a coins icon and the amount of coins the item is worth in GE. See Template:CoinsGE for examples. }}" current
- 01:0001:00, 17 October 2024 diff hist +499 N Module:CoinsGE Created page with "local p = {} local coins = require('Module:Coins') local exchange = require('Module:Exchange') -- -- Module access point -- function p._main(target) -- return target if not target then return 'N/A' end target = tostring(target) local amount = exchange._price(target) return coins._amount(amount) end -- -- {{Coins}} access point -- function p.main(frame) local args = frame:getParent().args return p._main(args[1]) end --[[ DEBUG = = p._main('Watering can') =..." current
- 01:0001:00, 17 October 2024 diff hist 0 Module:Coins image/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist +2,696 N Module:Clue nest chance calculator Created page with "local p = {} local lang = mw.language.getContentLanguage() local baseChanceArray = { {tree = 'Magic trees', chance = 72321}, {tree = 'Redwood trees', chance = 72321}, {tree = 'Yew trees', chance = 145013}, {tree = 'Arctic pine trees', chance = 145758}, {tree = 'Hollow trees', chance = 214367}, {tree = 'Mahogany trees', chance = 220623}, {tree = 'Maple trees', chance = 221918}, {tree = 'Teak trees', chance = 264336}, {tree = 'Willow trees', chance = 289286}, {..." current
- 01:0001:00, 17 October 2024 diff hist +3,497 N Module:Clue geode chance calculator Created page with "local p = {} local lang = mw.language.getContentLanguage() local baseChanceArray = { {rock = 'Runite rocks', chance = 42377}, {rock = 'Amethyst crystals', chance = 46350}, {rock = 'Adamantite rocks', chance = 59328}, {rock = 'Volcanic Mine', chance = 60000}, {rock = 'Crashed Star (size 9)', chance = 87840}, {rock = 'Crashed Star (size 8)', chance = 118035}, {rock = 'Blast mine', chance = 123600}, {rock = 'Crashed Star (size 7)', chance = 148230}, {rock = 'Mith..." current
- 01:0001:00, 17 October 2024 diff hist +2,970 N Module:Clue bottle chance calculator Created page with "local p = {} local lang = mw.language.getContentLanguage() local baseChanceArray = { {fish = 'Anglerfish', chance = 78649}, {fish = 'Sharks', chance = 82243}, {fish = 'Sacred eels', chance = 99000}, {fish = 'Lobsters', chance = 116129}, {fish = 'Rainbow fish', chance = 137739}, {fish = 'Monkfish', chance = 138583}, {fish = 'Dark crabs', chance = 149434}, {fish = 'Infernal eels', chance = 160000}, {fish = 'Karambwan', chance = 170874}, {fish = 'Tuna/Swordfish'..." current
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Clean image2/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist 0 Module:Chat options/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist +908 N Module:Chart data/xp chart Created page with "local xp = mw.loadData('Module:Experience/dataunr') local helper = require('Module:Chart data') local data = { type = 'scatter', data = { datasets = { { label = 'Standard skill', showLine = true, fill = false, backgroundColor = tostring(helper.colorPallets.qualitative[1]:fade(0.2)), borderColor = tostring(helper.colorPallets.qualitative[1]), data = helper.convertToXYFormat(xp) } } }, options = { maintainAspectRatio = false, tool..." current
- 01:0001:00, 17 October 2024 diff hist +3,773 N Module:Chart data/test chart Created page with "local helper = require('Module:Chart data') local data = { type = 'scatter', data = { datasets = { { label = 'line 1', showLine = true, fill = false, backgroundColor = tostring(helper.colorPallets.qualitative[1]:fade(0.2)), borderColor = tostring(helper.colorPallets.qualitative[1]), data = helper.generateXYFromFunc(function(x) return x/10 end, 1, 100, 10) }, { label = 'line 2', showLine = true, fill = false, backgroun..." current
- 01:0001:00, 17 October 2024 diff hist +2,920 N Module:Chart data/ranging guild target region chance Created page with "local helper = require('Module:Chart data') local attRollMin = 0 local attRollMax = 55000 local attRollStep = 200 -- Source for def rolls: -- https://discord.com/channels/177206626514632704/269673599554551808/1070094764797595729 local buckets = { { name = 'miss' }, { name = 'black', defRoll = 1000 }, { name = 'blue', defRoll = 2000 }, { name = 'red', defRoll = 3000 }, { name = 'yellow', defRoll = 4000 }, { name = 'bullseye', defRoll = 7000 } } local function acc..." current
- 01:0001:00, 17 October 2024 diff hist +2,470 N Module:Chart data/ranging guild target average score Created page with "local helper = require('Module:Chart data') local attRollMin = 0 local attRollMax = 55000 local attRollStep = 200 -- Source for def rolls: -- https://discord.com/channels/177206626514632704/269673599554551808/1070094764797595729 local buckets = { { name = 'miss', score = 0 }, { name = 'black', score = 10, defRoll = 1000 }, { name = 'blue', score = 20, defRoll = 2000 }, { name = 'red', score = 30, defRoll = 3000 }, { name = 'yellow', score = 50, defRoll = 4000 },..." current
- 01:0001:00, 17 October 2024 diff hist +9,986 N Module:Chart data/doc examples Created page with "-- <nowiki> local p = {} local chart = require( 'Module:Chart data' ) function p.line() local plot = chart.newChart{ type = 'line' } :setDimensions( '10vw', '10vh', 300, 300, true ) :setTitle( 'Line chart' ) :setXLabel( 'x axis label' ) :setYLabel( 'y axis label' ) plot.options.fill = true for i = 1, 2 do local set = plot:newDataSet() set.data = { i^2, (i+1)^2, (i+2)^2, (i+3^2), (i+4)^2 } set.label = '..." current
- 01:0001:00, 17 October 2024 diff hist +1,560 N Module:Chart data/brimstone key drop rate Created page with "local helper = require('Module:Chart data') local rate = {} for i = 1, 99 do local floorPart = math.pow(100 - i, 2) / 5 local floored = math.floor(floorPart) rate[i] = 1 / (100 + floored) end for i = 100, 350 do local floored = math.floor(i / 5) rate[i] = 1 / (120 - floored) end for i = 351, 500 do rate[i] = rate[350] end local withReq = {} for i = 1, 500 do withReq[i] = rate[i] / 0.8 end local data = { type = 'scatter', data = { datasets = { {..." current
- 01:0001:00, 17 October 2024 diff hist +20 N Module:ChangePerDay/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Chambers of Xeric calculator/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +8,627 N Module:Chambers of Xeric calculator Created page with "local geprice = require('Module:Exchange')._price local coins = require('Module:Coins')._amount local commas = require('Module:Addcommas')._add local p = {} local uniqueItems = { {name = "Arcane prayer scroll", weight = 20}, {name = "Dexterous prayer scroll", weight = 20}, {name = "Dragon hunter crossbow", weight = 4}, {name = "Twisted buckler", weight = 4}, {name = "Dinh's bulwark", weight = 3}, {name = "Ancestral hat", weight = 3}, {name = "Ancestral robe bott..." current
- 01:0001:00, 17 October 2024 diff hist 0 Module:Category handler/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist +6 Module:Category handler No edit summary Tag: Reverted
- 01:0001:00, 17 October 2024 diff hist +3,201 N Module:Calc/User:Galvagornus Created page with "local p = {} function expr(x) x = tostring(x) local expr_good, expr_val = pcall(mw.ext.ParserFunctions.expr, x) if expr_good then return tonumber(expr_val) end return nil end -- from WP function choose(n,k) if k < 0 or k > n then return 0 end if k == 0 or k == n then return 1 end k = math.min(k, n-k) -- symmetry c = 1 for i=0,k-1 do c = c * (n-i) / (k - i) end return c end function flavourText(x) local flavourTexts = { { -1, 1, "You are some s..." current
- 01:0001:00, 17 October 2024 diff hist +3,154 N Module:BoostedDropsLine/Sandbox Created page with "local p = {}; local lang = mw.language.getContentLanguage() local rarity_class = { { 1, 'table-bg-blue' }, { 1/25, 'table-bg-green' }, { 1/99.99, 'table-bg-yellow' }, { 1/999.99, 'table-bg-orange' }, { 1/9999999, 'table-bg-red' } } function get_rarity_class(val) for i,v in ipairs(rarity_class) do curr = v if val >= v[1] then break end end return curr[2] end function sigfig(n, f) f = math.floor(f-1) if n == 0 then return 0 end local m = math.floor(m..."
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Blast Furnace Gold calculator/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +2,246 N Module:Blast Furnace Gold calculator Created page with "local coins = require('Module:Coins')._amount local lang = mw.getContentLanguage() function fnum(x) if type(x) == 'number' then return lang:formatNum(x) end return x end local p = {} function p.main(frame) local args = frame:getParent().args --get args from calc input local drop = tonumber(args.Drop) --set up basic variables from args local hop = tonumber(args.Hop) local sixty = args.Sixty local dropticks26 = math.ceil(26/drop) local dropticks22 = math.c..." current
- 01:0001:00, 17 October 2024 diff hist +656 N Module:Blackjack stun calculator Created page with "local p = {} function p.main(frame) local args = frame:getParent().args return p.calculate(tonumber(args.max_hit), tonumber(args.hitpoints)) end function p.calculate(max_hit, hitpoints) local chance = 0.0 for hit = 0,max_hit do if hit > hitpoints then chance = chance + (2*hit-hitpoints)/(2*hit+2)/(1+max_hit) else chance = chance + hit/(2*hitpoints+2)/(1+max_hit) end end return "On a successful hit, the stun chance with a max hit of '''" .. tos..." current
- 01:0001:00, 17 October 2024 diff hist +3,004 N Module:Bestiary/Slayer assignments Created page with "local p = {} local slayerCat = {} slayerCat["AB"]={"Aberrant spectre", "Abyssal demon", "Adamant dragon", "Ankou", "Aviansie", "Bandit", "Banshee", "Basilisk", "Bat", "Bear", "Bird", "Black demon", "Black dragon", "Black Knights", "Bloodveld", "Blue dragon", "Boss", "Brine rat", "Bronze dragon"} slayerCat["CD"]={"Catablepon", "Cave bug", "Cave crawler", "Cave horror", "Cave kraken", "Cave slime", "Chaos druid", "Cock..." current
- 01:0001:00, 17 October 2024 diff hist +13,686 N Module:Bestiary/Sandbox Created page with "local p = {} local yesno = require('Module:Yesno') local pt = require('Module:Paramtest') local enum = require('Module:Enum') local pagelisttools = require('Module:PageListTools') local avg = require('Module:Average_drop_value/Sandbox') local curr = require('Module:Currency')._amount local pageswithcats = pagelisttools.pageswithcats local smwstats = {} -- Formats a table header function p.header(tbl, verbose) local tr = tbl:tag('tr') :tag('th'):addClass('u..." current
- 01:0001:00, 17 October 2024 diff hist 0 Module:Bestiary/doc No edit summary current
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Barrows item repair calculator/doc Created page with "{{No documentation}}" current
- 01:0001:00, 17 October 2024 diff hist +3,334 N Module:Barrows item repair calculator Created page with "local p = {} local coins = require('Module:Coins')._amount local itemCost = { {'Helmet', 60000}, {'Body', 90000}, {'Legs', 80000}, {'Weapon', 100000}, } function p.buildTable(npcCost, smithingCost) local ret = mw.html.create('table'):addClass('wikitable align-center-1'):done() ret:tag('tr'):tag('th'):wikitext( '<small>Cost to repair<br/>Barrows equipment</small>'):done() :tag('th'):wikitext('NPC'):done() :tag('th'):wikitext('Player-owned house<br/..." current
- 01:0001:00, 17 October 2024 diff hist +20 N Module:Barrows calculator/doc Created page with "{{No documentation}}" current