Module:MoneyMakingGuide: Difference between revisions

Undo revision 66481 by Ricewind (talk)
(Undo revision 66482 by Ricewind (talk))
Tag: Undo
(Undo revision 66481 by Ricewind (talk))
Tag: Undo
Line 21: Line 21:


local function removeNoWikiTags(str)
local function removeNoWikiTags(str)
     local stripped = str:gsub("^%s*<nowiki>%s*", "")
     return 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 377: Line 375:
function p.test()
function p.test()
local args = {
local args = {
guideName       = 'My guide',
guideName = "",
interval         = nil,
interval = "",
skills           = [=[
skills = "",
{{SkillReq|Woodcutting|12}}</br>
items = "",
{{SkillReq|Mining|40}}]=],
other = "",
items           =[=[
recommended = "",
{{ItemIcon|Diamond}} At least 3 diamonds]=],
skillExp1 = "Maagic",
other           =
skillExp1amount = "-1000",
[=[{{ZoneIcon|Into the Mist}} completion]=],
skillExp2 = "Mining",
recommended     =[=[
skillExp2amount = "420",
{{ItemIcon|Thieving Skillcape}}</br>
input1 = "nature rune",
[[Thieving#Mastery Pool Checkpoints|95% Thieving Mastery Pool Checkpoint]]]=],
input1amount = "5",
skillExp1       ='mining',
input1value = "69",
skillExp1amount =-50000,
input2 = "Fire Rune",
skillExp2       ='woodcutting',
input2amount = "20",
skillExp2amount =123456,
output1 = "gp",
input1           ='magic logs',
output1amount = "1050",
input1amount     =500,
category = "",
input2          ='nature rune',
dlc = "aod, toth",
input2amount    =500.13,
intensity = "",
input2value      =69,
explanation = ""
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._buildMMGTable(args))
mw.log(p._main(args))
end
end


return p
return p
918

edits