From Dark and Darker Wiki
(Moved code from Template:Quest Items) |
(Added Loot state to quest items) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#arraydefine:array_item_names}} | {{#arraydefine:array_item_names}}<!-- | ||
<!--{{#arraydefine:extracted_quantity_array}}--> | --><!--{{#arraydefine:extracted_quantity_array}}--><!-- | ||
--><!-- | |||
<!-- Loop order -> Trader -> Chapter -> Quests -> Task: Checking params --> | --><!-- Loop order -> Trader -> Chapter -> Quests -> Task: Checking params --><!-- | ||
{{#arraydefine:traders_arr|{{Merchant Data|All}}}} | -->{{#arraydefine:traders_arr|{{Merchant Data|All}}}}<!-- | ||
<!--Loop Over Traders--> | --><!--Loop Over Traders--><!-- | ||
{{#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}}<!-- | ||
}} | -->}}<!-- | ||
<!--Loop Over Chapters--> | --><!--Loop Over Chapters--><!-- | ||
{{#loop: loopC|0|{{#arraysize:chapters_array}}| | -->{{#loop: loopC|0|{{#arraysize:chapters_array}}|<!-- | ||
{{#arraydefine:quest_array| | -->{{#arraydefine:quest_array|<!-- | ||
{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|All}} | -->{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|All}}<!-- | ||
}} | -->}}<!-- | ||
<!--Loop Over Quests--> | --><!--Loop Over Quests--><!-- | ||
{{#loop: loopQ|0|{{#arraysize:quest_array}}| | -->{{#loop: loopQ|0|{{#arraysize:quest_array}}|<!-- | ||
{{#arraydefine:tasks_array| | -->{{#arraydefine:tasks_array|<!-- | ||
{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|all}} | -->{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|all}}<!-- | ||
-->}}<!-- | |||
--><!-- | |||
<!--Loop Over Tasks--> | --><!--Loop Over Tasks--><!-- | ||
<!-- TOO MANY LOOOOOPS, COPY PASTE CODE FOR TASKS --> | --><!-- TOO MANY LOOOOOPS, COPY PASTE CODE FOR TASKS --><!-- | ||
<!-- Check if Its fetch 1--> | --><!-- Check if Its fetch 1--><!-- | ||
-->{{#vardefine:cond1|{{#arraysearch:tasks_array|1}}}}<!-- | |||
{{#if:cond1 | -->{{#if:cond1<!-- | ||
|<!-- True: Task array has task: 1 --> | -->|<!-- True: Task array has task: 1 --><!-- | ||
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|type}} | -->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|type}}<!-- | ||
|Fetch| | -->|Fetch|<!-- | ||
--><!-- | |||
<!-- FETCH TASK Checking --> | --><!-- FETCH TASK Checking --><!-- | ||
{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|fetch}} | -->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|fetch}}}}<!-- | ||
}} | -->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|lootstate}}<!-- | ||
{{#vardefine: | -->}}<!-- | ||
}} | -->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|quantity}}<!-- | ||
{{#vardefine: | -->}}<!-- | ||
{{# | -->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!-- | ||
| | -->{{#if:{{#var:isItemInArray}}<!-- | ||
{{# | -->|<!--True--><!-- | ||
{{# | -->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!-- | ||
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | |||
{{#arraydefine: | -->|<!--False--><!-- | ||
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!-- | |||
{{#arraydefine: | -->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!-- | ||
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | |||
-->}}<!-- | |||
}}<!-- | -->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | ||
--><!-- | |||
-->}}<!--end is eq: fetch type --><!-- | |||
-->|}}<!-- end if: is Task N --><!-- | |||
{{#vardefine: | --><!-- | ||
{{# | --><!-- Check if Its fetch 2--><!-- | ||
-->{{#vardefine:cond2|{{#arraysearch:tasks_array|2}}}}<!-- | |||
{{# | -->{{#if:cond2<!-- | ||
-->|<!-- True: Task array has task: 2 --><!-- | |||
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|type}}<!-- | |||
<!-- | -->|Fetch|<!-- | ||
--><!-- | |||
--><!-- FETCH TASK Checking --><!-- | |||
{{# | -->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|fetch}}}}<!-- | ||
-->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|lootstate}}<!-- | |||
-->}}<!-- | |||
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|quantity}}<!-- | |||
| | -->}}<!-- | ||
{{# | -->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!-- | ||
{{# | -->{{#if:{{#var:isItemInArray}}<!-- | ||
-->|<!--True--><!-- | |||
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!-- | |||
{{#vardefine:{{# | -->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | ||
{{# | -->|<!--False--><!-- | ||
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!-- | |||
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!-- | |||
}}<!-- | -->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | ||
-->}}<!-- | |||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | |||
{{# | -->}}<!--end is eq: fetch type --><!-- | ||
{{#if: | -->|}}<!-- end if: is Task N --><!-- | ||
--><!-- | |||
{{# | --><!-- Check if Its fetch 3--><!-- | ||
-->{{#vardefine:cond3|{{#arraysearch:tasks_array|3}}}}<!-- | |||
-->{{#if:cond3<!-- | |||
<!-- | -->|<!-- True: Task array has task: 3 --><!-- | ||
{{# | -->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|type}}<!-- | ||
-->|Fetch|<!-- | |||
{{# | --><!-- | ||
}} | --><!-- FETCH TASK Checking --><!-- | ||
{{#vardefine: | -->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|fetch}}}}<!-- | ||
-->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|lootstate}}<!-- | |||
-->}}<!-- | |||
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|quantity}}<!-- | |||
{{# | -->}}<!-- | ||
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!-- | |||
-->{{#if:{{#var:isItemInArray}}<!-- | |||
{{# | -->|<!--True--><!-- | ||
{{# | -->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!-- | ||
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | |||
-->|<!--False--><!-- | |||
}}<!-- | -->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!-- | ||
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!-- | |||
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | |||
<!-- | -->}}<!-- | ||
{{#vardefine: | -->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | ||
--><!-- | |||
-->}}<!--end is eq: fetch type --><!-- | |||
-->|}}<!-- end if: is Task N --><!-- | |||
--><!-- | |||
--><!-- Check if Its fetch 4--><!-- | |||
<!-- | -->{{#vardefine:cond4|{{#arraysearch:tasks_array|4}}}}<!-- | ||
{{#vardefine: | -->{{#if:cond4<!-- | ||
}} | -->|<!-- True: Task array has task: 4 --><!-- | ||
{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives| | -->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|type}}<!-- | ||
}} | -->|Fetch|<!-- | ||
--><!-- | |||
{{#if:{{#var:isItemInArray}} | --><!-- FETCH TASK Checking --><!-- | ||
|<!--True--> | -->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|fetch}}}}<!-- | ||
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}} | -->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|lootstate}}<!-- | ||
{{#arraydefine: | -->}}<!-- | ||
|<!--False--> | -->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|quantity}}<!-- | ||
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}} | -->}}<!-- | ||
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}} | -->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!-- | ||
{{#arraydefine: | -->{{#if:{{#var:isItemInArray}}<!-- | ||
-->|<!--True--><!-- | |||
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!-- | |||
}}<!-- | -->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | ||
-->|<!--False--><!-- | |||
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!-- | |||
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!-- | |||
{{#vardefine: | -->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | ||
{{# | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | |||
-->}}<!--end is eq: fetch type --><!-- | |||
-->|}}<!-- end if: is Task N --><!-- | |||
--><!-- | |||
{{# | --><!-- Check if Its fetch 5--><!-- | ||
}} | -->{{#vardefine:cond5|{{#arraysearch:tasks_array|5}}}}<!-- | ||
{{#vardefine: | -->{{#if:cond5<!-- | ||
}} | -->|<!-- True: Task array has task: 5 --><!-- | ||
{{#vardefine: | -->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|type}}<!-- | ||
{{# | -->|Fetch|<!-- | ||
| | --><!-- | ||
{{# | --><!-- FETCH TASK Checking --><!-- | ||
{{# | -->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|fetch}}}}<!-- | ||
| | -->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|lootstate}}<!-- | ||
{{# | -->}}<!-- | ||
{{# | -->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|quantity}}<!-- | ||
{{# | -->}}<!-- | ||
}} | -->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!-- | ||
-->{{#if:{{#var:isItemInArray}}<!-- | |||
}}<!-- | -->|<!--True--><!-- | ||
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!-- | |||
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | |||
-->|<!--False--><!-- | |||
{{# | -->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!-- | ||
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!-- | |||
| | -->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | ||
{{# | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | |||
<!-- | -->}}<!--end is eq: fetch type --><!-- | ||
{{#vardefine: | -->|}}<!-- end if: is Task N --><!-- | ||
}} | --><!-- | ||
{{#vardefine: | --><!-- Check if Its fetch 6--><!-- | ||
}} | -->{{#vardefine:cond6|{{#arraysearch:tasks_array|6}}}}<!-- | ||
{{#vardefine: | -->{{#if:cond6<!-- | ||
{{#if: | -->|<!-- True: Task array has task: 6 --><!-- | ||
|<!--True--> | -->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|type}}<!-- | ||
{{# | -->|Fetch|<!-- | ||
{{# | --><!-- | ||
|<!-- | --><!-- FETCH TASK Checking --><!-- | ||
{ | -->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|fetch}}}}<!-- | ||
{{# | -->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|lootstate}}<!-- | ||
{{# | -->}}<!-- | ||
}} | -->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|quantity}}<!-- | ||
-->}}<!-- | |||
}}<!-- | -->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!-- | ||
-->{{#if:{{#var:isItemInArray}}<!-- | |||
-->|<!--True--><!-- | |||
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!-- | |||
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | |||
}} | -->|<!--False--><!-- | ||
}} | -->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!-- | ||
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!-- | |||
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!-- | |||
{{# | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | |||
-->}}<!--end is eq: fetch type --><!-- | |||
-->|}}<!-- end if: is Task N --><!-- | |||
--><!-- | |||
--><!--}}--><!-- | |||
--><!--End loop over tasks--><!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
--><!-- Remove first empty element --><!-- | |||
-->{{#arrayslice:array_item_names|array_item_names|1|9999}}<!-- | |||
<!-- Result Table --><!-- | |||
--><table id="SumQuestItemsTable" cellspacing="0" class="wikitable sortable stripedtable jquery-tablesorter" style="width:70%; border-collapse:collapse; background:transparent; text-align:center"><!-- | |||
--><tr><!-- | --><tr><!-- | ||
--><th style="width: | --><th style="width:35%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Item name</th><!-- | ||
--><th style="width: | --><th style="width:10%" class="headerSort" tabindex="1" role="columnheader button" title="Quantity">Quantity</th><!-- | ||
--><th style="width: | --><th style="width:40%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Traders</th><!-- | ||
-->{{#loop:LoopTest|0|{{#arraysize:array_item_names}} | --><th style="width:20%" class="headerSort" tabindex="3" role="columnheader button" title="Traders">Loot state</th></tr><!-- | ||
|<!-- Loop --> | -->{{#loop:LoopTest|0|{{#arraysize:array_item_names}}<!-- | ||
{{#vardefine:name|{{#arrayindex:array_item_names|{{#var:LoopTest}}}}}} | -->|<!-- Loop --><!-- | ||
<tr><td>{{#var:name}}</td><td>{{#var:{{#var:name}}}}</td><td>{{#arrayprint: | -->{{#vardefine:name|{{#arrayindex:array_item_names|{{#var:LoopTest}}}}}}<!-- | ||
}}<!-- | --><tr><td>{{#var:name}}</td><td>{{#var:{{#var:name}}}}</td><td>{{#arrayprint:quest_giver{{#var:name}}|, }}</td><!-- | ||
--><td>{{#if:{{#var:quest_lootstate{{#var:name}}}}|{{#var:quest_lootstate{{#var:name}}}}|Looted}}</td></tr><!-- | |||
-->}}<!-- | |||
--></table><!-- | --></table><!-- | ||
</includeonly> | --></includeonly><!-- | ||
<noinclude> | --><noinclude><!-- | ||
{{Template:SumQuestItems}} | -->{{Template:SumQuestItems}} | ||
Latest revision as of 11:20, 20 September 2024
| Item name | Quantity | Traders | Loot state |
|---|---|---|---|
| Phantom Flower (any rarity) | 1 | Alchemist (x1) | (Looted/Handled) |
| Wardweed (any rarity) | 1 | Alchemist (x1) | (Looted/Handled) |
| Lifeleaf (any rarity) | 4 | Alchemist (x1), The Collector (x3) | (Looted/Handled) |
| Broken Skull (any rarity) | 2 | Alchemist (x2) | (Looted/Handled) |
| Grave Essence (any rarity) | 3 | Alchemist (x1), Tavern Master (x2) | (Looted/Handled) |
| Maggots (any rarity) | 7 | Alchemist (x2), Surgeon (x5) | (Looted/Handled) |
| Potion of Healing (any rarity) | 2 | Alchemist (x2) | Looted |
| Potion of Protection (any rarity) | 2 | Alchemist (x2) | Looted |
| Potion of Invisibility (any rarity) | 2 | Alchemist (x2) | Looted |
| Hardened Shell Fragment (any rarity) | 4 | Alchemist (x4) | (Looted/Handled) |
| Magma Essence (any rarity) | 3 | Alchemist (x3) | (Looted/Handled) |
| Flickering Ember (any rarity) | 2 | Alchemist (x2) | (Looted/Handled) |
| Cobalt Ore (any rarity) | 2 | Armourer (x2) | (Looted/Handled) |
| Uncommon Armor | 3 | Armourer (x2), Squire (x1) | Looted |
| Rubysilver Ore (any rarity) | 2 | Armourer (x2) | (Looted/Handled) |
| Tidestone Ore (any rarity) | 3 | Armourer (x3) | (Looted/Handled) |
| Hard Crab Shell (any rarity) | 3 | Armourer (x3) | (Looted/Handled) |
| Sharp Sea Urchin Spine (any rarity) | 3 | Armourer (x3) | (Looted/Handled) |
| Hourglass (any rarity) | 2 | Armourer (x2) | (Looted/Handled) |
| Walking Cane (any rarity) | 2 | Armourer (x2) | (Looted/Handled) |
| Infected Flesh (any rarity) | 10 | Armourer (x10) | (Looted/Handled) |
| Old Bloody Bandage (any rarity) | 18 | Armourer (x10), Surgeon (x7), Tailor (x1) | (Looted/Handled) |
| Ceremonial Dagger (any rarity) | 2 | Cockatrice (x2) | (Looted/Handled) |
| Uncommon Gem Necklace | 2 | Cockatrice (x2) | (Looted/Handled) |
| Extra Thick Pelt (any rarity) | 3 | Cockatrice (x2), The Collector (x1) | (Looted/Handled) |
| Uncommon Gem Ring | 2 | Cockatrice (x2) | (Looted/Handled) |
| Uncommon Gold Band | 2 | Cockatrice (x2) | (Looted/Handled) |
| Cockatrice's Lucky Feather (any rarity) | 2 | Cockatrice (x1), Goblin Merchant (x1) | Looted |
| Uncommon Simple Gold Bangle | 2 | Cockatrice (x2) | (Looted/Handled) |
| Uncommon Patterned Gold Bangle | 2 | Cockatrice (x2) | (Looted/Handled) |
| Cockatrice's Egg (any rarity) | 1 | Cockatrice (x1) | (Looted/Handled) |
| Rare Dotted Gold Bangle | 3 | Cockatrice (x3) | (Looted/Handled) |
| Rare Glimmer Bangle | 3 | Cockatrice (x3) | (Looted/Handled) |
| Rare Turquoise Gem Bangle | 3 | Cockatrice (x3) | (Looted/Handled) |
| Rare Shine Bangle | 3 | Cockatrice (x3) | (Looted/Handled) |
| Rare Pearl Necklace | 3 | Cockatrice (x3) | (Looted/Handled) |
| Rare Gold Bowl | 3 | Cockatrice (x3) | (Looted/Handled) |
| Epic Triple Gem Bangle | 3 | Cockatrice (x3) | (Looted/Handled) |
| Epic Gold Candelabra | 3 | Cockatrice (x3) | (Looted/Handled) |
| Epic Silver Chalice | 3 | Cockatrice (x3) | (Looted/Handled) |
| Epic Gold Candle Holder | 3 | Cockatrice (x3) | (Looted/Handled) |
| Epic Slim Bangle | 3 | Cockatrice (x3) | (Looted/Handled) |
| Epic Gold Candle Platter | 3 | Cockatrice (x3) | (Looted/Handled) |
| Legend Gold Goblet | 5 | Cockatrice (x5) | (Looted/Handled) |
| Legend Gold Waterpot | 5 | Cockatrice (x5) | (Looted/Handled) |
| Legend Gold Chalice | 5 | Cockatrice (x5) | (Looted/Handled) |
| Legend Ancient Scroll | 5 | Cockatrice (x5) | (Looted/Handled) |
| Legend Gold Crown | 6 | Cockatrice (x5), Treasurer (x1) | (Looted/Handled) |
| Legend Goblet | 5 | Cockatrice (x5) | (Looted/Handled) |
| Mimic Tongue (any rarity) | 1 | Fortune Teller (x1) | (Looted/Handled) |
| Blue Eyeballs (any rarity) | 1 | Fortune Teller (x1) | (Looted/Handled) |
| Giant Bat Ear (any rarity) | 1 | Fortune Teller (x1) | (Looted/Handled) |
| Torn Bat Wing (any rarity) | 1 | Fortune Teller (x1) | (Looted/Handled) |
| Crystal Ball (any rarity) | 1 | Fortune Teller (x1) | (Looted/Handled) |
| Armillary Sphere (any rarity) | 2 | Fortune Teller (x2) | (Looted/Handled) |
| Primitive Bracelet (any rarity) | 4 | Fortune Teller (x4) | (Looted/Handled) |
| Glowing Blue Ice Eyes (any rarity) | 2 | Fortune Teller (x2) | (Looted/Handled) |
| Frosted Feather (any rarity) | 2 | Fortune Teller (x1), The Collector (x1) | (Looted/Handled) |
| Wendigo's Hoof (any rarity) | 2 | Fortune Teller (x1), Tailor (x1) | (Looted/Handled) |
| Saltvine (any rarity) | 6 | Fortune Teller (x6) | Looted |
| Seaweed Necklace (any rarity) | 3 | Fortune Teller (x3) | Looted |
| Etched Wand Fragment (any rarity) | 1 | Fortune Teller (x1) | Looted |
| White Shark Fin (any rarity) | 1 | Fortune Teller (x1) | Looted |
| White Shark Hide (any rarity) | 1 | Fortune Teller (x1) | Looted |
| White Shark Tooth (any rarity) | 1 | Fortune Teller (x1) | Looted |
| Thick Forefoot (any rarity) | 1 | Fortune Teller (x1) | (Looted/Handled) |
| Giant Horn (any rarity) | 1 | Fortune Teller (x1) | (Looted/Handled) |
| Goblin Ear (any rarity) | 4 | Goblin Merchant (x4) | (Looted/Handled) |
| Bug Shell (any rarity) | 1 | Goblin Merchant (x1) | (Looted/Handled) |
| Blazing Tail (any rarity) | 1 | Goblin Merchant (x1) | (Looted/Handled) |
| Lava Mushroom (any rarity) | 5 | Goblin Merchant (x5) | (Looted/Handled) |
| Cave Trolls Precious Rock (any rarity) | 1 | Goblin Merchant (x1) | (Looted/Handled) |
| Cyclops Precious Mirror (any rarity) | 1 | Goblin Merchant (x1) | (Looted/Handled) |
| Common Diamond | 1 | Goldsmith (x1) | (Looted/Handled) |
| Common Ruby | 1 | Goldsmith (x1) | (Looted/Handled) |
| Common Emerald | 1 | Goldsmith (x1) | (Looted/Handled) |
| Common Blue Sapphire | 1 | Goldsmith (x1) | (Looted/Handled) |
| Uncommon Diamond | 1 | Goldsmith (x1) | (Looted/Handled) |
| Uncommon Ruby | 1 | Goldsmith (x1) | (Looted/Handled) |
| Uncommon Emerald | 1 | Goldsmith (x1) | (Looted/Handled) |
| Uncommon Blue Sapphire | 1 | Goldsmith (x1) | (Looted/Handled) |
| Rare Diamond | 4 | Goldsmith (x2), Nightmare Mummy (x2) | (Looted/Handled) |
| Rare Ruby | 4 | Goldsmith (x2), Nightmare Mummy (x2) | (Looted/Handled) |
| Rare Emerald | 4 | Goldsmith (x2), Nightmare Mummy (x2) | (Looted/Handled) |
| Rare Blue Sapphire | 4 | Goldsmith (x2), Nightmare Mummy (x2) | (Looted/Handled) |
| Cobalt Ingot (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Lukewarm Stew (any rarity) | 2 | Goldsmith (x1), Tavern Master (x1) | (Looted/Handled) |
| Red Apple (any rarity) | 2 | Goldsmith (x1), Tavern Master (x1) | (Looted/Handled) |
| Silver Ingot (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Stone Mortar (any rarity) | 1 | Goldsmith (x1) | (Looted/Handled) |
| Bronze Scale (any rarity) | 1 | Goldsmith (x1) | (Looted/Handled) |
| Rubysilver Ingot (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Awl (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Bellows (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Epic Ruby | 3 | Goldsmith (x3) | (Looted/Handled) |
| Epic Diamond | 3 | Goldsmith (x3) | (Looted/Handled) |
| Epic Blue Sapphire | 3 | Goldsmith (x3) | (Looted/Handled) |
| Epic Emerald | 3 | Goldsmith (x3) | (Looted/Handled) |
| Tidestone Ingot (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Broken Glasses (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Blemished Pearl (any rarity) | 3 | Goldsmith (x3) | (Looted/Handled) |
| Legend Ruby | 5 | Goldsmith (x5) | (Looted/Handled) |
| Legend Blue Sapphire | 5 | Goldsmith (x5) | (Looted/Handled) |
| Gold Ingot (any rarity) | 6 | Goldsmith (x5), Weaponsmith (x1) | (Looted/Handled) |
| Shining Pearl (any rarity) | 6 | Goldsmith (x5), Navigator (x1) | Looted |
| Legend Diamond | 5 | Goldsmith (x5) | (Looted/Handled) |
| Legend Emerald | 5 | Goldsmith (x5) | (Looted/Handled) |
| Mysterious Potion (any rarity) | 5 | Goldsmith (x5) | (Looted/Handled) |
| Pocket Watch (any rarity) | 5 | Goldsmith (x5) | (Looted/Handled) |
| Obsidian Ingot (any rarity) | 5 | Goldsmith (x5) | (Looted/Handled) |
| Epic Accessory | 5 | Huntress (x5) | Looted |
| Huntress' Gold Emblem (any rarity) | 30 | Huntress (x30) | (Looted/Handled) |
| Huntress' Silver Emblem (any rarity) | 7 | Huntress (x7) | (Looted/Handled) |
| Krampus' Silver Bell (any rarity) | 10 | Krampus (x10) | (Looted/Handled) |
| Krampus' Golden Bell (any rarity) | 21 | Krampus (x1), Krampus (x5), Krampus (x15) | (Looted/Handled) |
| Leather Cap (any rarity) | 1 | Leathersmith (x1) | (Looted/Handled) |
| Kobold's Ear (any rarity) | 27 | Leathersmith (x2), Tailor (x25) | (Looted/Handled) |
| Bone (any rarity) | 34 | Leathersmith (x2), Skeleton (x30), The Collector (x2) | (Looted/Handled) |
| Sturdy Cloth (any rarity) | 8 | Leathersmith (x3), Navigator (x3), Tailor (x2) | (Looted/Handled) |
| Spider Silk (any rarity) | 4 | Leathersmith (x3), Tailor (x1) | (Looted/Handled) |
| Rare Warden Outfit | 1 | Leathersmith (x1) | (Looted/Handled) |
| Rare Troubadour Outfit | 1 | Leathersmith (x1) | (Looted/Handled) |
| Rare Marauder Outfit | 1 | Leathersmith (x1) | (Looted/Handled) |
| Human Remains (any rarity) | 1 | Leathersmith (x1) | (Looted/Handled) |
| Cyclops Eye (any rarity) | 1 | Leathersmith (x1) | (Looted/Handled) |
| Troll's Club (any rarity) | 1 | Leathersmith (x1) | (Looted/Handled) |
| Cracked Tusk (any rarity) | 3 | Miner (x3) | (Looted/Handled) |
| Billet (any rarity) | 3 | Navigator (x3) | Looted |
| Bavin (any rarity) | 6 | Navigator (x3), Woodsman (x3) | (Looted/Handled) |
| Pincushion (any rarity) | 1 | Navigator (x1) | (Looted/Handled) |
| Old Rope (any rarity) | 3 | Navigator (x3) | (Looted/Handled) |
| Sturdy Rope (any rarity) | 1 | Navigator (x1) | (Looted/Handled) |
| Old Nautical Chart Fragment (any rarity) | 4 | Navigator (x4) | Looted |
| Sailor's Journal (any rarity) | 1 | Navigator (x1) | Looted |
| Coral Fragment (any rarity) | 3 | Navigator (x3) | Looted |
| Crocodilian Eyeball (any rarity) | 1 | Navigator (x1) | Looted |
| Epic Scroll of Forgotten Knowledge | 1 | Nightmare Mummy (x1) | (Looted/Handled) |
| Intact Skull (any rarity) | 11 | Skeleton (x10), Tavern Master (x1) | (Looted/Handled) |
| Common Armor | 1 | Squire (x1) | Looted |
| Common Weapon | 1 | Squire (x1) | Looted |
| Uncommon Weapon | 4 | Squire (x1), Weaponsmith (x3) | Looted |
| Rare Armor | 2 | Squire (x2) | Looted |
| Rare Weapon | 17 | Squire (x2), Weaponsmith (x10), Weaponsmith (x5) | Looted |
| Uncommon Accessory | 2 | Squire (x2) | Looted |
| Bandage (any rarity) | 1 | Surgeon (x1) | Looted |
| Surgical Kit (any rarity) | 1 | Surgeon (x1) | Looted |
| Giant Toe (any rarity) | 1 | Surgeon (x1) | (Looted/Handled) |
| Moldy Bread (any rarity) | 7 | Surgeon (x5), The Collector (x2) | (Looted/Handled) |
| Old Cloth (any rarity) | 10 | Surgeon (x10) | (Looted/Handled) |
| Enchanted Dark Fabric (any rarity) | 10 | Surgeon (x7), Tailor (x3) | (Looted/Handled) |
| Spectral Fabric (any rarity) | 1 | Surgeon (x1) | (Looted/Handled) |
| Rotten Fluids (any rarity) | 11 | Tailor (x1), Weaponsmith (x10) | (Looted/Handled) |
| Torn Sail (any rarity) | 3 | Tailor (x3) | (Looted/Handled) |
| Tar (any rarity) | 3 | Tailor (x3) | (Looted/Handled) |
| Cuttlefish Ink Sac (any rarity) | 1 | Tailor (x1) | (Looted/Handled) |
| Jellyfish Glow Essence (any rarity) | 1 | Tailor (x1) | (Looted/Handled) |
| Wendigo's Sharp Claws (any rarity) | 2 | Tailor (x1), Tailor (x1) | (Looted/Handled) |
| Bowstring (any rarity) | 1 | Tailor (x1) | (Looted/Handled) |
| Wendigo's Entrails (any rarity) | 2 | Tailor (x1), Woodsman (x1) | (Looted/Handled) |
| Frozen Heart (any rarity) | 1 | Tailor (x1) | (Looted/Handled) |
| Wendigo's Antler Fragment (any rarity) | 1 | Tailor (x1) | (Looted/Handled) |
| Ale (any rarity) | 4 | Tavern Master (x1), The Collector (x3) | Looted |
| Rusty Broken Sword (any rarity) | 1 | Tavern Master (x1) | (Looted/Handled) |
| Bone Powder (any rarity) | 1 | Tavern Master (x1) | (Looted/Handled) |
| Flame Gas Bag (any rarity) | 1 | Tavern Master (x1) | (Looted/Handled) |
| Ectoplasm (any rarity) | 3 | Tavern Master (x3) | (Looted/Handled) |
| Frozen Claw (any rarity) | 3 | Tavern Master (x3) | (Looted/Handled) |
| Ancient Scroll (any rarity) | 1 | The Collector (x1) | (Looted/Handled) |
| Gold Waterpot (any rarity) | 1 | The Collector (x1) | (Looted/Handled) |
| Wooden Mask (any rarity) | 2 | The Collector (x2) | (Looted/Handled) |
| Shackles (any rarity) | 1 | The Collector (x1) | (Looted/Handled) |
| Wolf Fang (any rarity) | 2 | The Collector (x2) | (Looted/Handled) |
| Wolf Claw (any rarity) | 1 | The Collector (x1) | (Looted/Handled) |
| Mermaid Scale (any rarity) | 3 | The Collector (x3) | (Looted/Handled) |
| Mermaid's Tear (any rarity) | 1 | The Collector (x1) | (Looted/Handled) |
| Yeti's Teeth (any rarity) | 2 | The Collector (x1), Woodsman (x1) | (Looted/Handled) |
| Rare Gold Waterpot | 2 | The Collector (x2) | (Looted/Handled) |
| Rare Gold Candle Holder | 2 | The Collector (x2) | (Looted/Handled) |
| Rare Gold Candelabra | 2 | The Collector (x2) | (Looted/Handled) |
| Epic Gold Bowl | 1 | The Collector (x1) | Looted |
| Tear of the Volcano (any rarity) | 10 | The Collector (x10) | (Looted/Handled) |
| Gem Ring (any rarity) | 1 | Treasurer (x1) | (Looted/Handled) |
| Gem Necklace (any rarity) | 1 | Treasurer (x1) | (Looted/Handled) |
| Silver Coin (any rarity) | 50 | Treasurer (x50) | (Looted/Handled) |
| Silver Chalice (any rarity) | 1 | Treasurer (x1) | (Looted/Handled) |
| Gold Goblet (any rarity) | 1 | Treasurer (x1) | (Looted/Handled) |
| Epic Ceremonial Dagger | 1 | Treasurer (x1) | (Looted/Handled) |
| Epic Simple Gold Bangle | 1 | Treasurer (x1) | Looted |
| Epic Patterned Gold Bangle | 1 | Treasurer (x1) | Looted |
| Epic Dotted Gold Bangle | 1 | Treasurer (x1) | Looted |
| Epic Turquoise Gem Bangle | 1 | Treasurer (x1) | Looted |
| Black Rose (any rarity) | 14 | Valentine (x1), Valentine (x3), Valentine (x10) | (Looted/Handled) |
| Obsidian Ore (any rarity) | 3 | Weaponsmith (x3) | (Looted/Handled) |
| Melted Pickaxe Head (any rarity) | 7 | Weaponsmith (x7) | (Looted/Handled) |
| Armor Scrap (any rarity) | 10 | Weaponsmith (x10) | (Looted/Handled) |
| Broken Bone Spike (any rarity) | 1 | Weaponsmith (x1) | (Looted/Handled) |
| Spectral Hilt (any rarity) | 1 | Weaponsmith (x1) | (Looted/Handled) |
| Warlord's Broken Sword Blade (any rarity) | 1 | Weaponsmith (x1) | (Looted/Handled) |
| Epic Weapon | 10 | Weaponsmith (x5), Weaponsmith (x5) | Looted |
| Smoky Poison Powder (any rarity) | 1 | Weaponsmith (x1) | (Looted/Handled) |
| Legend Weapon | 5 | Weaponsmith (x5) | Looted |
| Campfire Kit (any rarity) | 3 | Woodsman (x2), Woodsman (x1) | Looted |
| Cracked Log (any rarity) | 1 | Woodsman (x1) | (Looted/Handled) |
| Diary of the Toz (any rarity) | 1 | Woodsman (x1) | (Looted/Handled) |
| Chronicles of the Cursed Crown (any rarity) | 1 | Woodsman (x1) | (Looted/Handled) |
| Manuscripts of the Warlord (any rarity) | 1 | Woodsman (x1) | (Looted/Handled) |