No edit summary |
No edit summary |
||
| Line 44: | Line 44: | ||
function p.table(recipes) | function p.table(recipes) | ||
local result = mw.text.tag("table", {class="wikitable sortable"}, "") | local result = mw.text.tag("table", {class="wikitable sortable"}, "") | ||
result = result .. mw.text.tag("tr", {}, | result = result .. mw.text.tag("tr", {}, | ||
mw.text.tag("th", {colspan="2", style="width:30%"}, "Item") .. | mw.text.tag("th", {colspan="2", style="width:30%"}, "Item") .. | ||
| Line 51: | Line 51: | ||
mw.text.tag("th", {style="width:25%"}, "Description") .. | mw.text.tag("th", {style="width:25%"}, "Description") .. | ||
mw.text.tag("th", {}, "XP") | mw.text.tag("th", {}, "XP") | ||
) | ) | ||
for _, e in pairs(recipes) do | for _, e in pairs(recipes) do | ||
| Line 67: | Line 67: | ||
mw.text.tag("td", {}, e.description) .. | mw.text.tag("td", {}, e.description) .. | ||
mw.text.tag("td", {}, u.c(e.xp) .. "xp") | mw.text.tag("td", {}, u.c(e.xp) .. "xp") | ||
) | ) | ||
end | end | ||
result = result .. "</table>" | result = result .. "</table>" | ||
Revision as of 10:20, 4 November 2024
This module uses the data from Module:Crafting_DB to create a exhibition of all the craftable items of the game
{{#invoke:Lua|crafting}}
Allow you to smelt Ores into Bars.24xp
30 Bronze Bars
Upgrades your furnace capacity.155xp
200 Iron Bars
Upgrades your furnace capacity.545xp
200 Silver Bars
Upgrades your furnace capacity.898xp
200 Gold Bars
Upgrades your furnace capacity.1,500xp
35 Promethium Bars
Upgrades your furnace capacity.2,999xp
15 Titanium Bars
Upgrades your furnace capacity.6,666xp
5 Ancient Bars
Upgrades your furnace capacity.10,000xp
30 Bronze Bars
Unlocks the Cooking skill.112xp
250 Iron Bars
Decrease the chance of burning food.351xp
250 Silver Bars
Decrease the chance of burning food.700xp
250 Gold Bars
Decrease the chance of burning food.1,300xp
100 Promethium Bars
Decrease the chance of burning food.3,585xp
50 Titanium Bars
Decrease the chance of burning food.8,758xp
50 Ancient Bars
Decrease the chance of burning food.21,585xp
Can be sold to the dwarf for Quest.10xp
Can be traded to the Dwarf for coins.500xp
A glass statue. Im sure the dwarf would love this.811xpFile:BloodGlassStatue.pngBlood Glass Statue65
500 Evil Blood
1 Invention
Ability to pray to the gods and convert evil blood into saint blood.6,788xp
Allows you to gather Oil.15xp
Allows you to gather Oil.200xp
Upgrade oil well to increase oil rate.555xp
Upgrade oil well to increase oil rate.1,500xp
Upgrade oil well to increase oil rate.6,000xp
Upgrade oil well to increase oil rate.12,414xp
NPC shop, unlocks more buyables.124xp
100 Willow Logs
Upgrades the npc shop.666xp
Upgrades the shop to sell more items.954xp
Upgrades the shop to sell more items, including the unlockable criptoe market.2,898xp
Increases your Oil capacity.88xp
Further increases your Oil capacity.301xp
Increases your oil capacity.1,241xp
Increases your oil capacity.5,175xp
Increases your oil capacity.14,585xp
5 Logs
5 Iron Bars
Arrows for your bow for Combat.15xp
5 Oak Logs
5 Silver Bars
Fire Arrows for your bow for Combat.150xp
5 Willow Logs
5 Gold Bars
Very powerful againsts fire based monsters.315xp
5 Redwood Logs
5 Ancient Bars
Strong arrows0xp
Can be used to mine faster and higher level Ores. (Requires Oil).24xp
5 Gold Bars
Machinery that runs on oil and collects ores.250xp
300 Silver Bars
Can be used to mine faster and higher level ores. (Requires Oil)900xp
500 Gold Bars
100 Promethium Bars
Can be used to mine faster and higher level ores. (Requires Oil)4,200xp
200 Promethium Bars
Can be used to mine faster and higher level ores. (Requires Oil)9,857xp
Easy Fishing Achievements
Allows you to send out a boat to gather fish for you.485xp
100 Willow Logs
50 Maple Logs
Easy Fishing Achievements
Can be sent out to collect fish for you.555xp
Easy Fishing Achievements
Boat that can gather stardust fish.3,152xp
10 Pirates
Easy Fishing Achievements
Ability to send your boat but not for fish, but to kidnap evil pirates who steal from cargo ships.31,584xp
900 Fight Points
Increases your Fight Points cap.(2000)788xp
2,000 Fight Points
Increases your Fight Points cap.(4000)2,212xp
4,000 Fight Points
Increases your Fight Points cap.(8000)6,857xp
8,000 Fight Points
Increases your Fight Points cap.(12 000)25,142xp
Unlocks the combat skill.80xp
1 Poison
Deals extra damage and ignores enemy defence. Also needed for Quest "The Tank".150xp
1 Long Bow Frame
More accurate bow.2,000xp
100 Ant Needles
Add spikes to a club, increasing its damage by 4.2,346xp
1 Haunted Bow Frame
Double damage on ghost type monsters.0xp
500 Flexible Logs
5 Dragon Bars
A very strong range weapon - uses 5 arrows per hit.135,141xp
Unlocks Woodcutting.78xp
Required for the Quests The Achiever.500xp
1 Stardust Potion
1 Energy Potion
1 Anti-Disease Potion
1 Tree Speed Potion
1 Smelting Upgrade Potion
1 Farming Speed Potion
1 Strange Leaf
When upgraded, increases the duration for all potions.322xp
100 Iron Bars
10 Lava
A tool used to filter through junk from gathering.7,011xp
u = require("Module:Util")
db = require("Module:Crafting_DB")
inspect = require("Module:InspectLua")
local p = {}
local groups = {'Furnace','Oven','Statue','Oil Well','Community Center','Oil Silo','Arrow','Mining Machinery','Boat','Fight Points Medallion','Weapon','Tool'}
function p.craftingTable()
local tableText = [[{{tabs
]]
for groupIndex, group in ipairs(groups) do
local recipes = {}
local itemIndex = 0
for _, e in ipairs(db) do
if e[6] == groupIndex then
itemIndex = itemIndex + 1
if not recipes[itemIndex] then
recipes[itemIndex] = {
item = e[1],
itemImage = e[2],
level = e[3],
description = e[7],
xp = e[4],
materials = {}
}
end
for _, f in ipairs(e[5]) do
table.insert(recipes[itemIndex].materials, f)
end
end
end
tableText = tableText .. [[|name]] .. groupIndex .. [[=]] .. groups[groupIndex] .. [[
|tab]] .. groupIndex .. [[=]] .. p.table(recipes)
end
tableText = tableText .. [[
}}]]
return tableText
end
function p.table(recipes)
local result = mw.text.tag("table", {class="wikitable sortable"}, "")
result = result .. mw.text.tag("tr", {},
mw.text.tag("th", {colspan="2", style="width:30%"}, "Item") ..
mw.text.tag("th", {}, "Level Needed") ..
mw.text.tag("th", {style="width:20%"}, "Materials") ..
mw.text.tag("th", {style="width:25%"}, "Description") ..
mw.text.tag("th", {}, "XP")
)
for _, e in pairs(recipes) do
local materialStr = ''
for i, m in ipairs(e.materials) do
materialStr = materialStr .. u.c(m[2]) .. " " .. '[[' .. m[1] .. ']]'
materialStr = materialStr .. "<br>"
end
result = result .. mw.text.tag("tr", {},
mw.text.tag("td", {}, '[[File:' .. e.itemImage .. '.png|35px|link=' .. e.item .. ']]') ..
mw.text.tag("td", {}, '[[' .. e.item .. ']]') ..
mw.text.tag("td", {}, e.level .. ' [[File:CraftingSigil.png|20px|link=]]') ..
mw.text.tag("td", {}, materialStr) ..
mw.text.tag("td", {}, e.description) ..
mw.text.tag("td", {}, u.c(e.xp) .. "xp")
)
end
result = result .. "</table>"
return result
end
return p