Anonymous

Module:MoneyMakingGuide: Difference between revisions

From Melvor Idle
Nowiki test
(Trying a more manual approach to remove <nowiki>)
(Nowiki test)
Line 21: Line 21:


local function removeNoWikiTags(str)
local function removeNoWikiTags(str)
     return str:gsub("^%s*<nowiki>%s*", "")
     local stripped = str:gsub("^%s*<nowiki>%s*", "")
    :gsub("%s*</nowiki>%s*$", "")
        :gsub("%s*</nowiki>%s*$", "")
     
    return mw.text.unstripNoWiki(stripped)
end
end
--- Formats a given string to TitleCase.
--- Formats a given string to TitleCase.
Line 375: Line 377:
function p.test()
function p.test()
local args = {
local args = {
guideName = "",
guideName       = 'My guide',
interval = "",
interval         = nil,
skills = "",
skills           = [=[
items = "",
{{SkillReq|Woodcutting|12}}</br>
other = "",
{{SkillReq|Mining|40}}]=],
recommended = "",
items           =[=[
skillExp1 = "Maagic",
{{ItemIcon|Diamond}} At least 3 diamonds]=],
skillExp1amount = "-1000",
other           =
skillExp2 = "Mining",
[=[{{ZoneIcon|Into the Mist}} completion]=],
skillExp2amount = "420",
recommended     =[=[
input1 = "nature rune",
{{ItemIcon|Thieving Skillcape}}</br>
input1amount = "5",
[[Thieving#Mastery Pool Checkpoints|95% Thieving Mastery Pool Checkpoint]]]=],
input1value = "69",
skillExp1       ='mining',
input2 = "Fire Rune",
skillExp1amount =-50000,
input2amount = "20",
skillExp2       ='woodcutting',
output1 = "gp",
skillExp2amount =123456,
output1amount = "1050",
input1           ='magic logs',
category = "",
input1amount     =500,
dlc = "aod, toth",
input2          ='nature rune',
intensity = "",
input2amount    =500.13,
explanation = ""
input2value      =69,
output1         ='gp',
output1amount   =250000,
category         ="Non-combat",
dlc             = "aod, toth",
intensity       = nil,
explanation     =[=[
<nowiki>
===== Woodcutting =====
{| class="wikitable"
! Name
! Effect
|-
| {{UpgradeIcon|Dragon Axe}} || -40% cut time
|-
| {{ItemIcon|Woodcutting Skillcape}} || -15% Base Woodcutting Interval (additive with the bonuses above a total of -55% cut time)
|-
| {{UpgradeIcon|Master of Nature}} || -15% Base Woodcutting Interval (additive with the bonuses above to a total of -70% cut time)
|-
| {{MasteryReq|Redwood Logs|99}}<br> {{MasteryReq|Yew Logs|99}} || Decreased cut interval by 0.2s for this Tree (on top of the -70% cut time from above modifiers)<br> +45% chance to receive 2x Logs per action
|-
| {{ItemIcon|Bird Nest Potion IV}} || +30% Chance for [[Bird Nest]]s to drop in Woodcutting
|-
| {{ItemIcon|Lumberjack's Top}} || +2% Bird Nest drop rate
|-
| [[Woodcutting#Mastery Pool Checkpoints|25% Woodcutting Mastery Pool Checkpoint]] || +5% increased chance to receive double Logs per action
|-
| [[Woodcutting#Mastery Pool Checkpoints|50% Woodcutting Mastery Pool Checkpoint]] || All Logs sell for +50% GP Value
|-
| [[Woodcutting#Mastery Pool Checkpoints|95% Woodcutting Mastery Pool Checkpoint]] || When you receive a Birds Nest, always receive a base minimum of 2.
|-
| {{PetIcon|Beavis}} || +5% Chance to Double Items in Woodcutting
|-
| {{UpgradeIcon|Multi-Tree}} || cut 2 different trees simultaneously
|-
| {{MasteryReq|Deedree|type=constellation|99}} || +15% Chance to Double Items In Woodcutting and +15% Chance for Bird Nests to drop in Woodcutting
|}
 
====Ratios====
For each hour of Fletching you'll need to spend (on average):
* 00:01s mining {{ItemIcon|Rune Essence}}
* 00:11.5s mining {{ItemIcon|Dragonite Ore}}
* 00:23s mining {{ItemIcon|Runite Ore}}
* 00:27s runecrafting {{ItemIcon|Spirit Rune}}
* 01:04s runecrafting {{ItemIcon|Lava Rune}}
* 01:21s Superheat IV'ing {{ItemIcon|Dragonite Bar}}
* 37:16s Woodcutting {{ItemIcon|Redwood Logs}} and {{ItemIcon|Yew Logs}}
* 09:38s Smithing {{ItemIcon|Dragon Javelin Heads}}
</nowiki>]=],
}
}
mw.log(p._main(args))
mw.log(p._buildMMGTable(args))
end
end


return p
return p
2,875

edits