From Dark and Darker Wiki

mNo edit summary
(Moved code from Template:Quest Items)
Line 8: Line 8:
{{#loop: loopTr|0|{{#arraysize:traders_arr}}|<!--
{{#loop: loopTr|0|{{#arraysize:traders_arr}}|<!--
-->
-->
{{#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 40: 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}}}}
|<!--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}}}}
}}
}}


Line 64: 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}}}}
|<!--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}}}}
}}
}}


Line 88: 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}}}}
|<!--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}}}}
}}
}}


Line 112: 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}}}}
|<!--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}}}}
}}
}}


Line 136: 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}}}}
|<!--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}}}}
}}
}}


Line 160: 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}}}}
|<!--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}}}}
}}
}}


Line 177: Line 190:


<!-- Result Table -->
<!-- Result Table -->
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:50%; color:#eee; background:transparent; text-align:center; vertical-align:middle;"><!--
<table id="SumQuestItemsTable" cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:70%; color:#eee; background:transparent; text-align:center; vertical-align:middle;"><!--
--><tr><!--
--><tr><!--
--><th style="width:50%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Item name</th><!--
--><th style="width:40%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Item name</th><!--
--><th style="width:20%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Quantity</th></tr><!--
--><th style="width:15%" class="headerSort" tabindex="1" role="columnheader button" title="Quantity">Quantity</th><!--
--><th style="width:50%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Traders</th></tr><!--
         -->{{#loop:LoopTest|0|{{#arraysize:array_item_names}}
         -->{{#loop:LoopTest|0|{{#arraysize:array_item_names}}
|<!-- 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></tr>
<tr><td>{{#var:name}}</td><td>{{#var:{{#var:name}}}}</td><td>{{#arrayprint:quests{{#var:name}}|, }}</td></tr>
}}<!--
}}<!--
--></table><!--
--></table><!--
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{SumQuestItems}}
{{Template:SumQuestItems}}

Revision as of 16:06, 15 September 2024





Item nameQuantityTraders
Potion of Healing (any rarity)1Alchemist
Potion of Protection (any rarity)1Alchemist
Potion of Invisibility (any rarity)1Alchemist
Phantom Flower (any rarity)1Alchemist
Wardweed (any rarity)1Alchemist
Lifeleaf (any rarity)4Alchemist,The Collector
Broken Skull (any rarity)4Alchemist
Mimic Tooth (any rarity)2Alchemist,Treasurer
Grave Essence (any rarity)8Alchemist,Tavern Master,The Collector
Maggots (any rarity)3Alchemist
Cobalt Ore (any rarity)6Armourer
Rubysilver Ore (any rarity)6Armourer
Epic Armor5Armourer
Blue Eyeballs (any rarity)3Armourer,Weaponsmith
Wolf Pelt (any rarity)11Armourer,The Collector,The Collector
Old Cloth (any rarity)8Fortune Teller,Tailor,Woodsman
Bowstring (any rarity)6Fortune Teller,Tavern Master,Woodsman
Rare Crystal Ball3Fortune Teller
Rotten Fluids (any rarity)3Fortune Teller,Tailor,Weaponsmith
Demon Dog Thorn (any rarity)1Fortune Teller
Bat Claw (any rarity)2Fortune Teller
Torn Bat Wing (any rarity)1Fortune Teller
Goblin Ear (any rarity)10Goblin Merchant
Bug Shell (any rarity)1Goblin Merchant
Beetle Wings (any rarity)4Goblin Merchant,Goblin Merchant
Cockatrice's Lucky Feather (any rarity)1Goblin Merchant
Spider Silk (any rarity)1Goblin Merchant
Armor Scrap (any rarity)10Leathersmith,Weaponsmith
Leather Cap (any rarity)3Leathersmith
Bandage (any rarity)5Surgeon
Enchanted Dark Fabric (any rarity)1Tailor
Old Bloody Bandage (any rarity)6Tailor,Tavern Master
Wendigo's Sharp Claws (any rarity)3Tailor,The Collector
Glowing Blue Ice Eyes (any rarity)3Tailor,Tavern Master
Ale (any rarity)6Tavern Master,The Collector
Explosive Bottle (any rarity)4Tavern Master,Woodsman
Golden Teeth (any rarity)6Tavern Master,Tavern Master
Rusty Broken Sword (any rarity)1Tavern Master
Centaur Hoof (any rarity)1Tavern Master
Primitive Bracelet (any rarity)12Tavern Master
Wolf Fang (any rarity)7Tavern Master,The Collector
Ancient Scroll (any rarity)2The Collector
Gold Waterpot (any rarity)2The Collector
Kobold's Ear (any rarity)13The Collector,Woodsman
Oil Lantern (any rarity)7The Collector
Moldy Bread (any rarity)4The Collector
Wendigo's Hoof (any rarity)1The Collector
Epic Gold Waterpot2The Collector
Epic Gold Candle Holder2The Collector
Epic Gold Candelabra2The Collector
Epic Gold Bowl1The Collector
Yeti's Teeth (any rarity)1The Collector
Extra Thick Pelt (any rarity)2The Collector
Frosted Feather (any rarity)1The Collector
Gem Ring (any rarity)2Treasurer
Gem Necklace (any rarity)2Treasurer
Silver Coin (any rarity)100Treasurer
Gold Coin (any rarity)50Treasurer
Rare Silver Chalice1Treasurer
Rare Gold Goblet1Treasurer
Legend Diamond1Treasurer
Legend Ruby1Treasurer
Legend Emerald1Treasurer
Legend Blue Sapphire1Treasurer
Legend Ceremonial Dagger1Treasurer
Rare Weapon5Weaponsmith
Gold Ingot (any rarity)3Weaponsmith
Firefly's Abdomen (any rarity)1Weaponsmith
Campfire Kit (any rarity)5Woodsman
Wendigo's Entrails (any rarity)1Woodsman
Giant Toe (any rarity)1Woodsman