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 |
Mimic Tooth (any rarity) | 2 | Alchemist,Treasurer |
Grave Essence (any rarity) | 8 | Alchemist,Tavern Master,The Collector |
Maggots (any rarity) | 3 | Alchemist |
Cobalt Ore (any rarity) | 6 | Armourer |
Rubysilver Ore (any rarity) | 6 | Armourer |
Epic Armor | 5 | Armourer |
Blue Eyeballs (any rarity) | 3 | Armourer,Weaponsmith |
Wolf Pelt (any rarity) | 11 | Armourer,The Collector,The Collector |
Old Cloth (any rarity) | 8 | Fortune Teller,Tailor,Woodsman |
Bowstring (any rarity) | 6 | Fortune Teller,Tavern Master,Woodsman |
Rare Crystal Ball | 3 | Fortune Teller |
Rotten Fluids (any rarity) | 3 | Fortune Teller,Tailor,Weaponsmith |
Demon Dog Thorn (any rarity) | 1 | Fortune Teller |
Bat Claw (any rarity) | 2 | Fortune Teller |
Torn Bat Wing (any rarity) | 1 | Fortune Teller |
Goblin Ear (any rarity) | 10 | Goblin Merchant |
Bug Shell (any rarity) | 1 | Goblin Merchant |
Beetle Wings (any rarity) | 4 | Goblin Merchant,Goblin Merchant |
Cockatrice's Lucky Feather (any rarity) | 1 | Goblin Merchant |
Spider Silk (any rarity) | 1 | Goblin Merchant |
Armor Scrap (any rarity) | 10 | Leathersmith,Weaponsmith |
Leather Cap (any rarity) | 3 | Leathersmith |
Bandage (any rarity) | 5 | Surgeon |
Enchanted Dark Fabric (any rarity) | 1 | Tailor |
Old Bloody Bandage (any rarity) | 6 | Tailor,Tavern Master |
Wendigo's Sharp Claws (any rarity) | 3 | Tailor,The Collector |
Glowing Blue Ice Eyes (any rarity) | 3 | Tailor,Tavern Master |
Ale (any rarity) | 6 | Tavern Master,The Collector |
Explosive Bottle (any rarity) | 4 | Tavern Master,Woodsman |
Golden Teeth (any rarity) | 6 | Tavern Master,Tavern Master |
Rusty Broken Sword (any rarity) | 1 | Tavern Master |
Centaur Hoof (any rarity) | 1 | Tavern Master |
Primitive Bracelet (any rarity) | 12 | Tavern Master |
Wolf Fang (any rarity) | 7 | Tavern Master,The Collector |
Ancient Scroll (any rarity) | 2 | The Collector |
Gold Waterpot (any rarity) | 2 | The Collector |
Kobold's Ear (any rarity) | 13 | The Collector,Woodsman |
Oil Lantern (any rarity) | 7 | The Collector |
Moldy Bread (any rarity) | 4 | The Collector |
Wendigo's Hoof (any rarity) | 1 | The Collector |
Epic Gold Waterpot | 2 | The Collector |
Epic Gold Candle Holder | 2 | The Collector |
Epic Gold Candelabra | 2 | The Collector |
Epic Gold Bowl | 1 | The Collector |
Yeti's Teeth (any rarity) | 1 | The Collector |
Extra Thick Pelt (any rarity) | 2 | The Collector |
Frosted Feather (any rarity) | 1 | The Collector |
Gem Ring (any rarity) | 2 | Treasurer |
Gem Necklace (any rarity) | 2 | Treasurer |
Silver Coin (any rarity) | 100 | Treasurer |
Gold Coin (any rarity) | 50 | Treasurer |
Rare Silver Chalice | 1 | Treasurer |
Rare Gold Goblet | 1 | Treasurer |
Legend Diamond | 1 | Treasurer |
Legend Ruby | 1 | Treasurer |
Legend Emerald | 1 | Treasurer |
Legend Blue Sapphire | 1 | Treasurer |
Legend Ceremonial Dagger | 1 | Treasurer |
Rare Weapon | 5 | Weaponsmith |
Gold Ingot (any rarity) | 3 | Weaponsmith |
Firefly's Abdomen (any rarity) | 1 | Weaponsmith |
Campfire Kit (any rarity) | 5 | Woodsman |
Wendigo's Entrails (any rarity) | 1 | Woodsman |
Giant Toe (any rarity) | 1 | Woodsman |