From Dark and Darker Wiki

(Moved code from Template:Quest Items)
(Added quantity per trader. Adjusted merchant column for better readability with space. Renamed variable to be more explicit.)
Line 8: Line 8:
{{#loop: loopTr|0|{{#arraysize:traders_arr}}|<!--
{{#loop: loopTr|0|{{#arraysize:traders_arr}}|<!--
-->
-->
{{#vardefine:cur_trader|{{#arrayindex:traders_arr|{{#var:loopTr}}}}}}
{{#vardefine:cur_trader|[[{{#arrayindex:traders_arr|{{#var:loopTr}}}}]]}}
{{#arraydefine:chapters_array|
{{#arraydefine:chapters_array|
{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|All}}
{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|All}}
Line 41: Line 41:
|<!--True-->
|<!--True-->
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#arrayprint:quests{{#var:current_item}}|,}},{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
|<!--False-->
|<!--False-->
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
}}
}}


Line 67: Line 67:
|<!--True-->
|<!--True-->
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#arrayprint:quests{{#var:current_item}}|,}},{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
|<!--False-->
|<!--False-->
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
}}
}}


Line 93: Line 93:
|<!--True-->
|<!--True-->
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#arrayprint:quests{{#var:current_item}}|,}},{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
|<!--False-->
|<!--False-->
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
}}
}}


Line 119: Line 119:
|<!--True-->
|<!--True-->
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#arrayprint:quests{{#var:current_item}}|,}},{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
|<!--False-->
|<!--False-->
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
}}
}}


Line 145: Line 145:
|<!--True-->
|<!--True-->
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#arrayprint:quests{{#var:current_item}}|,}},{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
|<!--False-->
|<!--False-->
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
}}
}}


Line 171: Line 171:
|<!--True-->
|<!--True-->
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#arrayprint:quests{{#var:current_item}}|,}},{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
|<!--False-->
|<!--False-->
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
{{#arraydefine:quests{{#var:current_item}}|{{#var:cur_trader}}}}
{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
}}
}}


Line 198: Line 198:
|<!-- Loop -->
|<!-- Loop -->
{{#vardefine:name|{{#arrayindex:array_item_names|{{#var:LoopTest}}}}}}
{{#vardefine:name|{{#arrayindex:array_item_names|{{#var:LoopTest}}}}}}
<tr><td>{{#var:name}}</td><td>{{#var:{{#var:name}}}}</td><td>{{#arrayprint:quests{{#var:name}}|, }}</td></tr>
<tr><td>{{#var:name}}</td><td>{{#var:{{#var:name}}}}</td><td>{{#arrayprint:quest_giver{{#var:name}}|,&#32;}}</td></tr>
}}<!--
}}<!--
--></table><!--
--></table><!--

Revision as of 11:51, 18 September 2024





Item nameQuantityTraders
Phantom Flower (any rarity)1Alchemist (x1)
Wardweed (any rarity)1Alchemist (x1)
Lifeleaf (any rarity)4Alchemist (x1), The Collector (x3)
Broken Skull (any rarity)2Alchemist (x2)
Grave Essence (any rarity)3Alchemist (x1), Tavern Master (x2)
Maggots (any rarity)7Alchemist (x2), Surgeon (x5)
Potion of Healing (any rarity)2Alchemist (x2)
Potion of Protection (any rarity)2Alchemist (x2)
Potion of Invisibility (any rarity)2Alchemist (x2)
Hardened Shell Fragment (any rarity)4Alchemist (x4)
Magma Essence (any rarity)3Alchemist (x3)
Flickering Ember (any rarity)2Alchemist (x2)
Cobalt Ore (any rarity)2Armourer (x2)
Uncommon Armor3Armourer (x2), Squire (x1)
Rubysilver Ore (any rarity)2Armourer (x2)
Tidestone Ore (any rarity)3Armourer (x3)
Hard Crab Shell (any rarity)3Armourer (x3)
Sharp Sea Urchin Spine (any rarity)3Armourer (x3)
Hourglass (any rarity)2Armourer (x2)
Walking Cane (any rarity)2Armourer (x2)
Infected Flesh (any rarity)10Armourer (x10)
Old Bloody Bandage (any rarity)18Armourer (x10), Surgeon (x7), Tailor (x1)
Ceremonial Dagger (any rarity)2Cockatrice (x2)
Uncommon Gem Necklace2Cockatrice (x2)
Extra Thick Pelt (any rarity)3Cockatrice (x2), The Collector (x1)
Uncommon Gem Ring2Cockatrice (x2)
Uncommon Gold Band2Cockatrice (x2)
Cockatrice's Lucky Feather (any rarity)2Cockatrice (x1), Goblin Merchant (x1)
Uncommon Simple Gold Bangle2Cockatrice (x2)
Uncommon Patterned Gold Bangle2Cockatrice (x2)
Cockatrice's Egg (any rarity)1Cockatrice (x1)
Rare Dotted Gold Bangle3Cockatrice (x3)
Rare Glimmer Bangle3Cockatrice (x3)
Rare Turquoise Gem Bangle3Cockatrice (x3)
Rare Shine Bangle3Cockatrice (x3)
Rare Pearl Necklace3Cockatrice (x3)
Rare Gold Bowl3Cockatrice (x3)
Epic Triple Gem Bangle3Cockatrice (x3)
Epic Gold Candelabra3Cockatrice (x3)
Epic Silver Chalice3Cockatrice (x3)
Epic Gold Candle Holder3Cockatrice (x3)
Epic Slim Bangle3Cockatrice (x3)
Epic Gold Candle Platter3Cockatrice (x3)
Legend Gold Goblet5Cockatrice (x5)
Legend Gold Waterpot5Cockatrice (x5)
Legend Gold Chalice5Cockatrice (x5)
Legend Ancient Scroll5Cockatrice (x5)
Legend Gold Crown6Cockatrice (x5), Treasurer (x1)
Legend Goblet5Cockatrice (x5)
Mimic Tongue (any rarity)1Fortune Teller (x1)
Blue Eyeballs (any rarity)1Fortune Teller (x1)
Giant Bat Ear (any rarity)1Fortune Teller (x1)
Torn Bat Wing (any rarity)1Fortune Teller (x1)
Crystal Ball (any rarity)1Fortune Teller (x1)
Armillary Sphere (any rarity)2Fortune Teller (x2)
Primitive Bracelet (any rarity)4Fortune Teller (x4)
Glowing Blue Ice Eyes (any rarity)2Fortune Teller (x2)
Frosted Feather (any rarity)2Fortune Teller (x1), The Collector (x1)
Wendigo's Hoof (any rarity)2Fortune Teller (x1), Tailor (x1)
Saltvine (any rarity)6Fortune Teller (x6)
Seaweed Necklace (any rarity)3Fortune Teller (x3)
Etched Wand Fragment (any rarity)1Fortune Teller (x1)
White Shark Fin (any rarity)1Fortune Teller (x1)
White Shark Hide (any rarity)1Fortune Teller (x1)
White Shark Tooth (any rarity)1Fortune Teller (x1)
Thick Forefoot (any rarity)1Fortune Teller (x1)
Giant Horn (any rarity)1Fortune Teller (x1)
Goblin Ear (any rarity)4Goblin Merchant (x4)
Bug Shell (any rarity)1Goblin Merchant (x1)
Blazing Tail (any rarity)1Goblin Merchant (x1)
Lava Mushroom (any rarity)5Goblin Merchant (x5)
Cave Trolls Precious Rock (any rarity)1Goblin Merchant (x1)
Cyclops Precious Mirror (any rarity)1Goblin Merchant (x1)
Common Diamond1Goldsmith (x1)
Common Ruby1Goldsmith (x1)
Common Emerald1Goldsmith (x1)
Common Blue Sapphire1Goldsmith (x1)
Uncommon Diamond1Goldsmith (x1)
Uncommon Ruby1Goldsmith (x1)
Uncommon Emerald1Goldsmith (x1)
Uncommon Blue Sapphire1Goldsmith (x1)
Rare Diamond4Goldsmith (x2), Nightmare Mummy (x2)
Rare Ruby4Goldsmith (x2), Nightmare Mummy (x2)
Rare Emerald4Goldsmith (x2), Nightmare Mummy (x2)
Rare Blue Sapphire4Goldsmith (x2), Nightmare Mummy (x2)
Cobalt Ingot (any rarity)3Goldsmith (x3)
Lukewarm Stew (any rarity)2Goldsmith (x1), Tavern Master (x1)
Red Apple (any rarity)2Goldsmith (x1), Tavern Master (x1)
Silver Ingot (any rarity)3Goldsmith (x3)
Stone Mortar (any rarity)1Goldsmith (x1)
Bronze Scale (any rarity)1Goldsmith (x1)
Rubysilver Ingot (any rarity)3Goldsmith (x3)
Awl (any rarity)3Goldsmith (x3)
Bellows (any rarity)3Goldsmith (x3)
Epic Ruby3Goldsmith (x3)
Epic Diamond3Goldsmith (x3)
Epic Blue Sapphire3Goldsmith (x3)
Epic Emerald3Goldsmith (x3)
Tidestone Ingot (any rarity)3Goldsmith (x3)
Broken Glasses (any rarity)3Goldsmith (x3)
Blemished Pearl (any rarity)3Goldsmith (x3)
Legend Ruby5Goldsmith (x5)
Legend Blue Sapphire5Goldsmith (x5)
Gold Ingot (any rarity)6Goldsmith (x5), Weaponsmith (x1)
Shining Pearl (any rarity)6Goldsmith (x5), Navigator (x1)
Legend Diamond5Goldsmith (x5)
Legend Emerald5Goldsmith (x5)
Mysterious Potion (any rarity)5Goldsmith (x5)
Pocket Watch (any rarity)5Goldsmith (x5)
Obsidian Ingot (any rarity)5Goldsmith (x5)
Epic Accessory5Huntress (x5)
Huntress' Gold Emblem (any rarity)30Huntress (x30)
Huntress' Silver Emblem (any rarity)7Huntress (x7)
Krampus' Silver Bell (any rarity)10Krampus (x10)
Krampus' Golden Bell (any rarity)21Krampus (x1), Krampus (x5), Krampus (x15)
Leather Cap (any rarity)1Leathersmith (x1)
Kobold's Ear (any rarity)27Leathersmith (x2), Tailor (x25)
Bone (any rarity)34Leathersmith (x2), Skeleton (x30), The Collector (x2)
Sturdy Cloth (any rarity)8Leathersmith (x3), Navigator (x3), Tailor (x2)
Spider Silk (any rarity)4Leathersmith (x3), Tailor (x1)
Rare Warden Outfit1Leathersmith (x1)
Rare Troubadour Outfit1Leathersmith (x1)
Rare Marauder Outfit1Leathersmith (x1)
Human Remains (any rarity)1Leathersmith (x1)
Cyclops Eye (any rarity)1Leathersmith (x1)
Troll's Club (any rarity)1Leathersmith (x1)
Cracked Tusk (any rarity)3Miner (x3)
Billet (any rarity)3Navigator (x3)
Bavin (any rarity)6Navigator (x3), Woodsman (x3)
Pincushion (any rarity)1Navigator (x1)
Old Rope (any rarity)3Navigator (x3)
Sturdy Rope (any rarity)1Navigator (x1)
Old Nautical Chart Fragment (any rarity)4Navigator (x4)
Sailor's Journal (any rarity)1Navigator (x1)
Coral Fragment (any rarity)3Navigator (x3)
Crocodilian Eyeball (any rarity)1Navigator (x1)
Epic Scroll of Forgotten Knowledge1Nightmare Mummy (x1)
Intact Skull (any rarity)11Skeleton (x10), Tavern Master (x1)
Common Armor1Squire (x1)
Common Weapon1Squire (x1)
Uncommon Weapon4Squire (x1), Weaponsmith (x3)
Rare Armor2Squire (x2)
Rare Weapon17Squire (x2), Weaponsmith (x10), Weaponsmith (x5)
Uncommon Accessory2Squire (x2)
Bandage (any rarity)1Surgeon (x1)
Surgical Kit (any rarity)1Surgeon (x1)
Giant Toe (any rarity)1Surgeon (x1)
Moldy Bread (any rarity)7Surgeon (x5), The Collector (x2)
Old Cloth (any rarity)10Surgeon (x10)
Enchanted Dark Fabric (any rarity)10Surgeon (x7), Tailor (x3)
Spectral Fabric (any rarity)1Surgeon (x1)
Rotten Fluids (any rarity)11Tailor (x1), Weaponsmith (x10)
Torn Sail (any rarity)3Tailor (x3)
Tar (any rarity)3Tailor (x3)
Cuttlefish Ink Sac (any rarity)1Tailor (x1)
Jellyfish Glow Essence (any rarity)1Tailor (x1)
Wendigo's Sharp Claws (any rarity)2Tailor (x1), Tailor (x1)
Bowstring (any rarity)1Tailor (x1)
Wendigo's Entrails (any rarity)2Tailor (x1), Woodsman (x1)
Frozen Heart (any rarity)1Tailor (x1)
Wendigo's Antler Fragment (any rarity)1Tailor (x1)
Ale (any rarity)4Tavern Master (x1), The Collector (x3)
Rusty Broken Sword (any rarity)1Tavern Master (x1)
Bone Powder (any rarity)1Tavern Master (x1)
Flame Gas Bag (any rarity)1Tavern Master (x1)
Ectoplasm (any rarity)3Tavern Master (x3)
Frozen Claw (any rarity)3Tavern Master (x3)
Ancient Scroll (any rarity)1The Collector (x1)
Gold Waterpot (any rarity)1The Collector (x1)
Wooden Mask (any rarity)2The Collector (x2)
Shackles (any rarity)1The Collector (x1)
Wolf Fang (any rarity)2The Collector (x2)
Wolf Claw (any rarity)1The Collector (x1)
Mermaid Scale (any rarity)3The Collector (x3)
Mermaid's Tear (any rarity)1The Collector (x1)
Yeti's Teeth (any rarity)2The Collector (x1), Woodsman (x1)
Rare Gold Waterpot2The Collector (x2)
Rare Gold Candle Holder2The Collector (x2)
Rare Gold Candelabra2The Collector (x2)
Epic Gold Bowl1The Collector (x1)
Tear of the Volcano (any rarity)10The Collector (x10)
Gem Ring (any rarity)1Treasurer (x1)
Gem Necklace (any rarity)1Treasurer (x1)
Silver Coin (any rarity)50Treasurer (x50)
Silver Chalice (any rarity)1Treasurer (x1)
Gold Goblet (any rarity)1Treasurer (x1)
Epic Ceremonial Dagger1Treasurer (x1)
Epic Simple Gold Bangle1Treasurer (x1)
Epic Patterned Gold Bangle1Treasurer (x1)
Epic Dotted Gold Bangle1Treasurer (x1)
Epic Turquoise Gem Bangle1Treasurer (x1)
Black Rose (any rarity)14Valentine (x1), Valentine (x3), Valentine (x10)
Obsidian Ore (any rarity)3Weaponsmith (x3)
Melted Pickaxe Head (any rarity)7Weaponsmith (x7)
Armor Scrap (any rarity)10Weaponsmith (x10)
Broken Bone Spike (any rarity)1Weaponsmith (x1)
Spectral Hilt (any rarity)1Weaponsmith (x1)
Warlord's Broken Sword Blade (any rarity)1Weaponsmith (x1)
Epic Weapon10Weaponsmith (x5), Weaponsmith (x5)
Smoky Poison Powder (any rarity)1Weaponsmith (x1)
Legend Weapon5Weaponsmith (x5)
Campfire Kit (any rarity)3Woodsman (x2), Woodsman (x1)
Cracked Log (any rarity)1Woodsman (x1)
Diary of the Toz (any rarity)1Woodsman (x1)
Chronicles of the Cursed Crown (any rarity)1Woodsman (x1)
Manuscripts of the Warlord (any rarity)1Woodsman (x1)