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) | 4 | Alchemist,Huntress |
| Grave Essence (any rarity) | 6 | Alchemist,Tavern Master |
| Maggots (any rarity) | 8 | Alchemist,Surgeon |
| Cobalt Ore (any rarity) | 3 | Armourer |
| Uncommon Armor | 9 | Armourer,Huntress,Huntress,Squire |
| Rubysilver Ore (any rarity) | 6 | Armourer |
| Blue Eyeballs (any rarity) | 3 | Armourer,Fortune Teller |
| Wolf Pelt (any rarity) | 6 | Armourer,The Collector |
| Infected Flesh (any rarity) | 10 | Armourer |
| Old Bloody Bandage (any rarity) | 19 | Armourer,Surgeon,Tailor |
| Uncommon Ceremonial Dagger | 3 | Cockatrice |
| Uncommon Gem Necklace | 3 | Cockatrice |
| Extra Thick Pelt (any rarity) | 6 | Cockatrice,Huntress,The Collector,The Collector |
| Uncommon Gem Ring | 3 | Cockatrice |
| Uncommon Gold Band | 3 | Cockatrice |
| Cockatrice's Lucky Feather (any rarity) | 2 | Cockatrice,Goblin Merchant |
| Uncommon Simple Gold Bangle | 3 | Cockatrice |
| Uncommon Patterned Gold Bangle | 3 | Cockatrice |
| Cockatrice's Egg (any rarity) | 1 | Cockatrice |
| Rare Dotted Gold Bangle | 5 | Cockatrice |
| Rare Glimmer Bangle | 5 | Cockatrice |
| Rare Turquoise Gem Bangle | 5 | Cockatrice |
| Rare Shine Bangle | 5 | Cockatrice |
| Rare Pearl Necklace | 5 | Cockatrice |
| Rare Gold Bowl | 5 | Cockatrice |
| Epic Triple Gem Bangle | 5 | Cockatrice |
| Epic Gold Candelabra | 5 | Cockatrice |
| Epic Silver Chalice | 5 | Cockatrice |
| Epic Gold Candle Holder | 5 | Cockatrice |
| Epic Slim Bangle | 5 | Cockatrice |
| Epic Gold Candle Platter | 5 | 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) | 2 | Fortune Teller,Huntress |
| Uncommon Crystal Ball | 1 | Fortune Teller |
| Glowing Blue Ice Eyes (any rarity) | 3 | Fortune Teller,Fortune Teller |
| Primitive Bracelet (any rarity) | 15 | Fortune Teller,Tavern Master |
| Torn Bat Wing (any rarity) | 3 | Fortune Teller,Huntress |
| Frosted Feather (any rarity) | 4 | Fortune Teller,Huntress |
| Wendigo's Hoof (any rarity) | 3 | Fortune Teller,Huntress,Tailor |
| Dog Collar (any rarity) | 2 | Fortune Teller,Huntress |
| Demon Blood (any rarity) | 1 | Fortune Teller |
| Goblin Ear (any rarity) | 11 | Goblin Merchant,Huntress |
| Bug Shell (any rarity) | 3 | Goblin Merchant,Huntress |
| 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 | 2 | Goldsmith |
| Uncommon Ruby | 2 | Goldsmith |
| Uncommon Emerald | 2 | Goldsmith |
| Uncommon Blue Sapphire | 2 | Goldsmith |
| Rare Diamond | 6 | Goldsmith,Nightmare Mummy |
| Rare Ruby | 6 | Goldsmith,Nightmare Mummy |
| Rare Emerald | 6 | Goldsmith,Nightmare Mummy |
| Rare Blue Sapphire | 6 | Goldsmith,Nightmare Mummy |
| Kobold's Ear (any rarity) | 49 | Huntress,Huntress,Leathersmith,Tailor,The Collector,The Collector |
| Bowstring (any rarity) | 8 | Huntress,Tailor,Tavern Master,Woodsman |
| Intact Skull (any rarity) | 4 | Huntress,Tavern Master |
| Bone (any rarity) | 7 | Huntress,Leathersmith |
| Bat Wing (any rarity) | 1 | Huntress |
| Beetle Wings (any rarity) | 1 | Huntress |
| Rare Accessory | 6 | Huntress,Squire |
| Captured Mana Flakes (any rarity) | 1 | Huntress |
| Wolf Claw (any rarity) | 3 | Huntress,The Collector |
| Armor Scrap (any rarity) | 12 | Huntress,Weaponsmith |
| Longsword (any rarity) | 2 | Huntress |
| Yeti's Teeth (any rarity) | 3 | Huntress,The Collector,Woodsman |
| Giant Toe (any rarity) | 3 | Huntress,Surgeon |
| Spider Silk (any rarity) | 5 | Huntress,Leathersmith,Tailor |
| Wendigo's Antler Fragment (any rarity) | 2 | Huntress,Tailor |
| Wendigo's Entrails (any rarity) | 3 | Huntress,Tailor,Woodsman |
| Centaur Horn (any rarity) | 1 | Huntress |
| Centaur Tail (any rarity) | 1 | Huntress |
| Cyclops Eye (any rarity) | 2 | Huntress,Leathersmith |
| Epic Light Gold Bangle | 1 | Huntress |
| Epic Leaf Gold Bangle | 1 | Huntress |
| Epic Pearl Necklace | 1 | Huntress |
| Epic Gold Band | 1 | Huntress |
| Banshee Sonnet (any rarity) | 1 | Huntress |
| Dark Matter (any rarity) | 1 | Huntress |
| Cursed Crown (any rarity) | 1 | Huntress |
| Leather Cap (any rarity) | 2 | Leathersmith |
| Enchanted Dark Fabric (any rarity) | 14 | Leathersmith,Surgeon,Tailor,Tailor |
| Rare Warden Outfit | 1 | Leathersmith |
| Rare Troubadour Outfit | 1 | Leathersmith |
| Rare Marauder Outfit | 1 | Leathersmith |
| Human Remains (any rarity) | 1 | Leathersmith |
| Troll's Club (any rarity) | 1 | Leathersmith |
| Common Armor | 1 | Squire |
| Common Weapon | 1 | Squire |
| Uncommon Accessory | 3 | Squire,Squire |
| Uncommon Weapon | 4 | Squire,Weaponsmith |
| Rare Armor | 3 | Squire |
| Rare Weapon | 13 | Squire,Weaponsmith |
| Bandage (any rarity) | 2 | Surgeon |
| Moldy Bread (any rarity) | 9 | Surgeon,The Collector |
| Old Cloth (any rarity) | 13 | Surgeon,Woodsman |
| Spectral Fabric (any rarity) | 1 | Surgeon |
| Rotten Fluids (any rarity) | 11 | Tailor,Weaponsmith |
| Wendigo's Sharp Claws (any rarity) | 2 | Tailor,Tailor |
| Frozen Heart (any rarity) | 1 | Tailor |
| Ale (any rarity) | 4 | Tavern Master,The Collector |
| Explosive Bottle (any rarity) | 4 | Tavern Master,Woodsman |
| Rusty Broken Sword (any rarity) | 1 | Tavern Master |
| Centaur Hoof (any rarity) | 1 | Tavern Master |
| Token of Honor (any rarity) | 1 | Tavern Master |
| Ancient Scroll (any rarity) | 1 | The Collector |
| Gold Waterpot (any rarity) | 1 | The Collector |
| Oil Lantern (any rarity) | 3 | The Collector |
| Wolf Fang (any rarity) | 2 | The Collector |
| 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 |
| Gem Ring (any rarity) | 1 | Treasurer |
| Gem Necklace (any rarity) | 1 | Treasurer |
| Silver Coin (any rarity) | 100 | 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) | 3 | Weaponsmith |
| Volcanic Ash (any rarity) | 1 | Weaponsmith |
| Spectral Hilt (any rarity) | 1 | Weaponsmith |
| Warlord's Broken Sword Blade (any rarity) | 1 | Weaponsmith |
| Epic Weapon | 5 | Weaponsmith |
| Campfire Kit (any rarity) | 3 | 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 |