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: | <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: | --><th style="width:40%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Item name</th><!-- | ||
--><th style="width: | --><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 name | Quantity | Traders |
|---|---|---|
| Potion of Healing (any rarity) | 1 | Alchemist |
| Potion of Protection (any rarity) | 1 | Alchemist |
| Potion of Invisibility (any rarity) | 1 | Alchemist |
| Phantom Flower (any rarity) | 1 | Alchemist |
| Wardweed (any rarity) | 1 | Alchemist |
| Lifeleaf (any rarity) | 4 | Alchemist,The Collector |
| Broken Skull (any rarity) | 2 | Alchemist |
| Grave Essence (any rarity) | 4 | Alchemist,Tavern Master |
| Maggots (any rarity) | 7 | Alchemist,Surgeon |
| Cobalt Ore (any rarity) | 2 | Armourer |
| Uncommon Armor | 3 | Armourer,Squire |
| Tidestone Ore (any rarity) | 3 | Armourer |
| Hard Crab Shell (any rarity) | 3 | Armourer |
| Sharp Sea Urchin Spine (any rarity) | 3 | Armourer |
| Rubysilver Ore (any rarity) | 3 | Armourer |
| Blue Eyeballs (any rarity) | 3 | Armourer,Fortune Teller |
| Wolf Pelt (any rarity) | 5 | Armourer,The Collector |
| Infected Flesh (any rarity) | 10 | Armourer |
| Old Bloody Bandage (any rarity) | 18 | Armourer,Surgeon,Tailor |
| Uncommon Ceremonial Dagger | 2 | Cockatrice |
| Uncommon Gem Necklace | 2 | Cockatrice |
| Extra Thick Pelt (any rarity) | 4 | Cockatrice,The Collector,The Collector |
| Uncommon Gem Ring | 2 | Cockatrice |
| Uncommon Gold Band | 2 | Cockatrice |
| Cockatrice's Lucky Feather (any rarity) | 2 | Cockatrice,Goblin Merchant |
| Uncommon Simple Gold Bangle | 2 | Cockatrice |
| Uncommon Patterned Gold Bangle | 2 | Cockatrice |
| Cockatrice's Egg (any rarity) | 1 | Cockatrice |
| Rare Dotted Gold Bangle | 3 | Cockatrice |
| Rare Glimmer Bangle | 3 | Cockatrice |
| Rare Turquoise Gem Bangle | 3 | Cockatrice |
| Rare Shine Bangle | 3 | Cockatrice |
| Rare Pearl Necklace | 3 | Cockatrice |
| Rare Gold Bowl | 3 | Cockatrice |
| Epic Triple Gem Bangle | 3 | Cockatrice |
| Epic Gold Candelabra | 3 | Cockatrice |
| Epic Silver Chalice | 3 | Cockatrice |
| Epic Gold Candle Holder | 3 | Cockatrice |
| Epic Slim Bangle | 3 | Cockatrice |
| Epic Gold Candle Platter | 3 | Cockatrice |
| Legend Gold Goblet | 5 | Cockatrice |
| Legend Gold Waterpot | 5 | Cockatrice |
| Legend Gold Chalice | 5 | Cockatrice |
| Legend Ancient Scroll | 5 | Cockatrice |
| Legend Gold Crown | 6 | Cockatrice,Treasurer |
| Legend Goblet | 5 | Cockatrice |
| Mimic Tongue (any rarity) | 1 | Fortune Teller |
| Giant Bat Ear (any rarity) | 1 | Fortune Teller |
| Uncommon Crystal Ball | 1 | Fortune Teller |
| Glowing Blue Ice Eyes (any rarity) | 3 | Fortune Teller,Fortune Teller |
| Primitive Bracelet (any rarity) | 14 | Fortune Teller,Tavern Master |
| Torn Bat Wing (any rarity) | 1 | Fortune Teller |
| Frosted Feather (any rarity) | 1 | Fortune Teller |
| Wendigo's Hoof (any rarity) | 2 | Fortune Teller,Tailor |
| Saltvine (any rarity) | 6 | Fortune Teller |
| Seaweed Necklace (any rarity) | 3 | Fortune Teller |
| Etched Wand Fragment (any rarity) | 1 | Fortune Teller |
| White Shark Fin (any rarity) | 1 | Fortune Teller |
| White Shark Hide (any rarity) | 1 | Fortune Teller |
| White Shark Tooth (any rarity) | 1 | Fortune Teller |
| Thick Forefoot (any rarity) | 1 | Fortune Teller |
| Giant Horn (any rarity) | 1 | Fortune Teller |
| Goblin Ear (any rarity) | 4 | Goblin Merchant |
| Bug Shell (any rarity) | 1 | Goblin Merchant |
| Cave Trolls Precious Rock (any rarity) | 1 | Goblin Merchant |
| Cyclops Precious Mirror (any rarity) | 1 | Goblin Merchant |
| Common Diamond | 1 | Goldsmith |
| Common Ruby | 1 | Goldsmith |
| Common Emerald | 1 | Goldsmith |
| Common Blue Sapphire | 1 | Goldsmith |
| Uncommon Diamond | 1 | Goldsmith |
| Uncommon Ruby | 1 | Goldsmith |
| Uncommon Emerald | 1 | Goldsmith |
| Uncommon Blue Sapphire | 1 | Goldsmith |
| Rare Diamond | 4 | Goldsmith,Nightmare Mummy |
| Rare Ruby | 4 | Goldsmith,Nightmare Mummy |
| Rare Emerald | 4 | Goldsmith,Nightmare Mummy |
| Rare Blue Sapphire | 4 | Goldsmith,Nightmare Mummy |
| Epic Accessory | 5 | Huntress |
| Huntress' Gold Emblem (any rarity) | 30 | Huntress |
| Huntress' Silver Emblem (any rarity) | 7 | Huntress |
| Krampus' Silver Bell (any rarity) | 10 | Krampus |
| Krampus' Golden Bell (any rarity) | 21 | Krampus,Krampus,Krampus |
| Leather Cap (any rarity) | 1 | Leathersmith |
| Kobold's Ear (any rarity) | 31 | Leathersmith,Tailor,The Collector |
| Bone (any rarity) | 32 | Leathersmith,Skeleton |
| Enchanted Dark Fabric (any rarity) | 14 | Leathersmith,Surgeon,Tailor,Tailor |
| Spider Silk (any rarity) | 4 | Leathersmith,Tailor |
| Rare Warden Outfit | 1 | Leathersmith |
| Rare Troubadour Outfit | 1 | Leathersmith |
| Rare Marauder Outfit | 1 | Leathersmith |
| Human Remains (any rarity) | 1 | Leathersmith |
| Cyclops Eye (any rarity) | 1 | Leathersmith |
| Troll's Club (any rarity) | 1 | Leathersmith |
| Billet (any rarity) | 3 | Navigator |
| Bavin (any rarity) | 3 | Navigator |
| Sturdy Cloth (any rarity) | 3 | Navigator |
| Pincushion (any rarity) | 1 | Navigator |
| Old Rope (any rarity) | 3 | Navigator |
| Sturdy Rope (any rarity) | 1 | Navigator |
| Old Nautical Chart Fragment (any rarity) | 4 | Navigator |
| Sailor's Journal (any rarity) | 1 | Navigator |
| Coral Fragment (any rarity) | 3 | Navigator |
| Shining Pearl (any rarity) | 1 | Navigator |
| Crocodilian Eyeball (any rarity) | 1 | Navigator |
| Epic Scroll of Forgotten Knowledge | 1 | Nightmare Mummy |
| Intact Skull (any rarity) | 11 | Skeleton,Tavern Master |
| Common Armor | 1 | Squire |
| Common Weapon | 1 | Squire |
| Uncommon Accessory | 2 | Squire,Squire |
| Uncommon Weapon | 2 | Squire,Weaponsmith |
| Rare Armor | 2 | Squire |
| Rare Weapon | 17 | Squire,Weaponsmith,Weaponsmith |
| Rare Accessory | 2 | Squire |
| Bandage (any rarity) | 1 | Surgeon |
| Surgical Kit (any rarity) | 1 | Surgeon |
| Giant Toe (any rarity) | 1 | Surgeon |
| Moldy Bread (any rarity) | 7 | Surgeon,The Collector |
| Old Cloth (any rarity) | 12 | Surgeon,Woodsman |
| Spectral Fabric (any rarity) | 1 | Surgeon |
| Torn Sail (any rarity) | 3 | Tailor |
| Tar (any rarity) | 3 | Tailor |
| Cuttlefish Ink Sac (any rarity) | 1 | Tailor |
| Jellyfish Glow Essence (any rarity) | 1 | Tailor |
| Rotten Fluids (any rarity) | 11 | Tailor,Weaponsmith |
| Wendigo's Sharp Claws (any rarity) | 2 | Tailor,Tailor |
| Bowstring (any rarity) | 4 | Tailor,Tavern Master,Woodsman |
| Wendigo's Entrails (any rarity) | 2 | Tailor,Woodsman |
| Frozen Heart (any rarity) | 1 | Tailor |
| Wendigo's Antler Fragment (any rarity) | 1 | Tailor |
| Ale (any rarity) | 4 | Tavern Master,The Collector |
| Explosive Bottle (any rarity) | 3 | Tavern Master,Woodsman |
| Rusty Broken Sword (any rarity) | 1 | Tavern Master |
| Bone Powder (any rarity) | 1 | Tavern Master |
| Flame Gas Bag (any rarity) | 1 | Tavern Master |
| Ancient Scroll (any rarity) | 1 | The Collector |
| Gold Waterpot (any rarity) | 1 | The Collector |
| Shackles (any rarity) | 1 | The Collector |
| Wolf Fang (any rarity) | 1 | The Collector |
| Mermaid Scale (any rarity) | 3 | The Collector |
| Mermaid's Tear (any rarity) | 1 | The Collector |
| Wolf Claw (any rarity) | 1 | The Collector |
| Yeti's Teeth (any rarity) | 2 | The Collector,Woodsman |
| Rare Gold Waterpot | 2 | The Collector |
| Rare Gold Candle Holder | 2 | The Collector |
| Rare Gold Candelabra | 2 | The Collector |
| Epic Gold Bowl | 1 | The Collector |
| Ancient Stingray Egg (any rarity) | 1 | The Collector |
| Gem Ring (any rarity) | 1 | Treasurer |
| Gem Necklace (any rarity) | 1 | Treasurer |
| Silver Coin (any rarity) | 50 | Treasurer |
| Uncommon Silver Chalice | 1 | Treasurer |
| Uncommon Gold Goblet | 1 | Treasurer |
| Epic Ceremonial Dagger | 1 | Treasurer |
| Epic Simple Gold Bangle | 1 | Treasurer |
| Epic Patterned Gold Bangle | 1 | Treasurer |
| Epic Dotted Gold Bangle | 1 | Treasurer |
| Epic Turquoise Gem Bangle | 1 | Treasurer |
| Gold Ingot (any rarity) | 2 | Weaponsmith |
| Armor Scrap (any rarity) | 10 | Weaponsmith |
| Broken Bone Spike (any rarity) | 1 | Weaponsmith |
| Spectral Hilt (any rarity) | 1 | Weaponsmith |
| Warlord's Broken Sword Blade (any rarity) | 1 | Weaponsmith |
| Epic Weapon | 10 | Weaponsmith,Weaponsmith |
| Smoky Poison Powder (any rarity) | 1 | Weaponsmith |
| Legend Weapon | 5 | Weaponsmith |
| Campfire Kit (any rarity) | 2 | Woodsman |
| Diary of the Toz (any rarity) | 1 | Woodsman |
| Chronicles of the Cursed Crown (any rarity) | 1 | Woodsman |
| Manuscripts of the Warlord (any rarity) | 1 | Woodsman |