From Dark and Darker Wiki

(Added quantity per trader. Adjusted merchant column for better readability with space. Renamed variable to be more explicit.)
(Fixed gap between table and top of page.)
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}}}}
-->{{#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_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|quantity}}
-->{{#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:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#if:{{#var:isItemInArray}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->}}<!--
 
--><!--
}}<!--end is eq: fetch type -->
-->}}<!--end is eq: fetch type --><!--
|}}<!-- end if: is Task N -->
-->|}}<!-- end if: is Task N --><!--
 
--><!--
<!-- Check if Its fetch 2-->
--><!-- Check if Its fetch 2--><!--
{{#vardefine:cond2|{{#arraysearch:tasks_array|2}}}}
-->{{#vardefine:cond2|{{#arraysearch:tasks_array|2}}}}<!--
{{#if:cond2
-->{{#if:cond2<!--
|<!-- True: Task array has task: 2 -->
-->|<!-- 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}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|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|2|fetch}}
-->{{#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_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|quantity}}
-->{{#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}}}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#if:{{#var:isItemInArray}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->}}<!--
 
--><!--
}}<!--end is eq: fetch type -->
-->}}<!--end is eq: fetch type --><!--
|}}<!-- end if: is Task N -->
-->|}}<!-- end if: is Task N --><!--
 
--><!--
<!-- Check if Its fetch 3-->
--><!-- Check if Its fetch 3--><!--
{{#vardefine:cond3|{{#arraysearch:tasks_array|3}}}}
-->{{#vardefine:cond3|{{#arraysearch:tasks_array|3}}}}<!--
{{#if:cond3
-->{{#if:cond3<!--
|<!-- True: Task array has task: 3 -->
-->|<!-- 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}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|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|3|fetch}}
-->{{#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_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|quantity}}
-->{{#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}}}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#if:{{#var:isItemInArray}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->}}<!--
 
--><!--
}}<!--end is eq: fetch type -->
-->}}<!--end is eq: fetch type --><!--
|}}<!-- end if: is Task N -->
-->|}}<!-- end if: is Task N --><!--
 
--><!--
<!-- Check if Its fetch 4-->
--><!-- Check if Its fetch 4--><!--
{{#vardefine:cond4|{{#arraysearch:tasks_array|4}}}}
-->{{#vardefine:cond4|{{#arraysearch:tasks_array|4}}}}<!--
{{#if:cond4
-->{{#if:cond4<!--
|<!-- True: Task array has task: 4 -->
-->|<!-- True: Task array has task: 4 --><!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|type}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|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|4|fetch}}
-->{{#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:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|quantity}}
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|quantity}}<!--
}}
-->}}<!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#if:{{#var:isItemInArray}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->}}<!--
 
--><!--
}}<!--end is eq: fetch type -->
-->}}<!--end is eq: fetch type --><!--
|}}<!-- end if: is Task N -->
-->|}}<!-- end if: is Task N --><!--
 
--><!--
<!-- Check if Its fetch 5-->
--><!-- Check if Its fetch 5--><!--
{{#vardefine:cond5|{{#arraysearch:tasks_array|5}}}}
-->{{#vardefine:cond5|{{#arraysearch:tasks_array|5}}}}<!--
{{#if:cond5
-->{{#if:cond5<!--
|<!-- True: Task array has task: 5 -->
-->|<!-- True: Task array has task: 5 --><!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|type}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|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|5|fetch}}
-->{{#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_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|quantity}}
-->{{#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}}}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#if:{{#var:isItemInArray}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->}}<!--
 
--><!--
}}<!--end is eq: fetch type -->
-->}}<!--end is eq: fetch type --><!--
|}}<!-- end if: is Task N -->
-->|}}<!-- end if: is Task N --><!--
 
--><!--
<!-- Check if Its fetch 6-->
--><!-- Check if Its fetch 6--><!--
{{#vardefine:cond6|{{#arraysearch:tasks_array|6}}}}
-->{{#vardefine:cond6|{{#arraysearch:tasks_array|6}}}}<!--
{{#if:cond6
-->{{#if:cond6<!--
|<!-- True: Task array has task: 6 -->
-->|<!-- True: Task array has task: 6 --><!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|type}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|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|6|fetch}}
-->{{#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_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|quantity}}
-->{{#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}}}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#if:{{#var:isItemInArray}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!--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:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->}}<!--
 
--><!--
}}<!--end is eq: fetch type -->
-->}}<!--end is eq: fetch type --><!--
|}}<!-- end if: is Task N -->
-->|}}<!-- end if: is Task N --><!--
 
--><!--
<!--}}-->
--><!--}}--><!--
<!--End loop over tasks-->
--><!--End loop over tasks--><!--
}}
-->}}<!--
}}
-->}}<!--
}}
-->}}<!--
<!-- Remove first empty element -->
--><!-- Remove first empty element --><!--
{{#arrayslice:array_item_names|array_item_names|1|9999}}
-->{{#arrayslice:array_item_names|array_item_names|1|9999}}<!--
 
<!-- Result Table --><!--
<!-- Result Table -->
--><table id="SumQuestItemsTable" cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:70%; 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:40%" 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:15%" class="headerSort" tabindex="1" role="columnheader button" title="Quantity">Quantity</th><!--
--><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><!--
--><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><td>{{#arrayprint:quest_giver{{#var:name}}|,&#32;}}</td></tr>
--><tr><td>{{#var:name}}</td><td>{{#var:{{#var:name}}}}</td><td>{{#arrayprint:quest_giver{{#var:name}}|,&#32;}}</td></tr><!--
}}<!--
-->}}<!--
--></table><!--
--></table><!--
</includeonly>
--></includeonly><!--
<noinclude>
--><noinclude><!--
{{Template:SumQuestItems}}
-->{{Template:SumQuestItems}}

Revision as of 11:59, 18 September 2024

Item nameQuantityTraders
Potion of Healing (any rarity)1Alchemist (x1)
Potion of Protection (any rarity)1Alchemist (x1)
Potion of Invisibility (any rarity)1Alchemist (x1)
Phantom Flower (any rarity)1Alchemist (x1)
Wardweed (any rarity)1Alchemist (x1)
Lifeleaf (any rarity)4Alchemist (x1), The Collector (x3)
Broken Skull (any rarity)4Alchemist (x3), Huntress (x1)
Grave Essence (any rarity)6Alchemist (x3), Tavern Master (x3)
Maggots (any rarity)8Alchemist (x3), Surgeon (x5)
Cobalt Ore (any rarity)3Armourer (x3)
Uncommon Armor9Armourer (x3), Huntress (x3), Huntress (x1), Squire (x2)
Rubysilver Ore (any rarity)6Armourer (x6)
Blue Eyeballs (any rarity)3Armourer (x2), Fortune Teller (x1)
Wolf Pelt (any rarity)6Armourer (x4), The Collector (x2)
Infected Flesh (any rarity)10Armourer (x10)
Old Bloody Bandage (any rarity)19Armourer (x10), Surgeon (x7), Tailor (x2)
Uncommon Ceremonial Dagger3Cockatrice (x3)
Uncommon Gem Necklace3Cockatrice (x3)
Extra Thick Pelt (any rarity)6Cockatrice (x3), Huntress (x1), The Collector (x1), The Collector (x1)
Uncommon Gem Ring3Cockatrice (x3)
Uncommon Gold Band3Cockatrice (x3)
Cockatrice's Lucky Feather (any rarity)2Cockatrice (x1), Goblin Merchant (x1)
Uncommon Simple Gold Bangle3Cockatrice (x3)
Uncommon Patterned Gold Bangle3Cockatrice (x3)
Cockatrice's Egg (any rarity)1Cockatrice (x1)
Rare Dotted Gold Bangle5Cockatrice (x5)
Rare Glimmer Bangle5Cockatrice (x5)
Rare Turquoise Gem Bangle5Cockatrice (x5)
Rare Shine Bangle5Cockatrice (x5)
Rare Pearl Necklace5Cockatrice (x5)
Rare Gold Bowl5Cockatrice (x5)
Epic Triple Gem Bangle5Cockatrice (x5)
Epic Gold Candelabra5Cockatrice (x5)
Epic Silver Chalice5Cockatrice (x5)
Epic Gold Candle Holder5Cockatrice (x5)
Epic Slim Bangle5Cockatrice (x5)
Epic Gold Candle Platter5Cockatrice (x5)
Legend Gold Goblet5Cockatrice (x5)
Legend Gold Waterpot5Cockatrice (x5)
Legend Gold Chalice5Cockatrice (x5)
Legend Ancient Scroll5Cockatrice (x5)
Legend Gold Crown6Cockatrice (x5), Treasurer (x1)
Legend Goblet5Cockatrice (x5)
Mimic Tongue (any rarity)1Fortune Teller (x1)
Giant Bat Ear (any rarity)2Fortune Teller (x1), Huntress (x1)
Uncommon Crystal Ball1Fortune Teller (x1)
Glowing Blue Ice Eyes (any rarity)3Fortune Teller (x1), Fortune Teller (x2)
Primitive Bracelet (any rarity)15Fortune Teller (x3), Tavern Master (x12)
Torn Bat Wing (any rarity)3Fortune Teller (x2), Huntress (x1)
Frosted Feather (any rarity)4Fortune Teller (x1), Huntress (x3)
Wendigo's Hoof (any rarity)3Fortune Teller (x1), Huntress (x1), Tailor (x1)
Dog Collar (any rarity)2Fortune Teller (x1), Huntress (x1)
Demon Blood (any rarity)1Fortune Teller (x1)
Goblin Ear (any rarity)11Goblin Merchant (x8), Huntress (x3)
Bug Shell (any rarity)3Goblin Merchant (x1), Huntress (x2)
Cave Trolls Precious Rock (any rarity)1Goblin Merchant (x1)
Cyclops Precious Mirror (any rarity)1Goblin Merchant (x1)
Common Diamond1Goldsmith (x1)
Common Ruby1Goldsmith (x1)
Common Emerald1Goldsmith (x1)
Common Blue Sapphire1Goldsmith (x1)
Uncommon Diamond2Goldsmith (x2)
Uncommon Ruby2Goldsmith (x2)
Uncommon Emerald2Goldsmith (x2)
Uncommon Blue Sapphire2Goldsmith (x2)
Rare Diamond6Goldsmith (x3), Nightmare Mummy (x3)
Rare Ruby6Goldsmith (x3), Nightmare Mummy (x3)
Rare Emerald6Goldsmith (x3), Nightmare Mummy (x3)
Rare Blue Sapphire6Goldsmith (x3), Nightmare Mummy (x3)
Kobold's Ear (any rarity)49Huntress (x2), Huntress (x2), Leathersmith (x4), Tailor (x25), The Collector (x6), The Collector (x10)
Bowstring (any rarity)8Huntress (x3), Tailor (x1), Tavern Master (x1), Woodsman (x3)
Intact Skull (any rarity)4Huntress (x3), Tavern Master (x1)
Bone (any rarity)7Huntress (x3), Leathersmith (x4)
Bat Wing (any rarity)1Huntress (x1)
Beetle Wings (any rarity)1Huntress (x1)
Rare Accessory6Huntress (x3), Squire (x3)
Captured Mana Flakes (any rarity)1Huntress (x1)
Wolf Claw (any rarity)3Huntress (x2), The Collector (x1)
Armor Scrap (any rarity)12Huntress (x2), Weaponsmith (x10)
Longsword (any rarity)2Huntress (x2)
Yeti's Teeth (any rarity)3Huntress (x1), The Collector (x1), Woodsman (x1)
Giant Toe (any rarity)3Huntress (x1), Surgeon (x2)
Spider Silk (any rarity)5Huntress (x1), Leathersmith (x3), Tailor (x1)
Wendigo's Antler Fragment (any rarity)2Huntress (x1), Tailor (x1)
Wendigo's Entrails (any rarity)3Huntress (x1), Tailor (x1), Woodsman (x1)
Centaur Horn (any rarity)1Huntress (x1)
Centaur Tail (any rarity)1Huntress (x1)
Cyclops Eye (any rarity)2Huntress (x1), Leathersmith (x1)
Epic Light Gold Bangle1Huntress (x1)
Epic Leaf Gold Bangle1Huntress (x1)
Epic Pearl Necklace1Huntress (x1)
Epic Gold Band1Huntress (x1)
Banshee Sonnet (any rarity)1Huntress (x1)
Dark Matter (any rarity)1Huntress (x1)
Cursed Crown (any rarity)1Huntress (x1)
Leather Cap (any rarity)2Leathersmith (x2)
Enchanted Dark Fabric (any rarity)14Leathersmith (x3), Surgeon (x7), Tailor (x1), Tailor (x3)
Rare Warden Outfit1Leathersmith (x1)
Rare Troubadour Outfit1Leathersmith (x1)
Rare Marauder Outfit1Leathersmith (x1)
Human Remains (any rarity)1Leathersmith (x1)
Troll's Club (any rarity)1Leathersmith (x1)
Common Armor1Squire (x1)
Common Weapon1Squire (x1)
Uncommon Accessory3Squire (x1), Squire (x2)
Uncommon Weapon4Squire (x2), Weaponsmith (x2)
Rare Armor3Squire (x3)
Rare Weapon13Squire (x3), Weaponsmith (x10)
Bandage (any rarity)2Surgeon (x2)
Moldy Bread (any rarity)9Surgeon (x5), The Collector (x4)
Old Cloth (any rarity)13Surgeon (x10), Woodsman (x3)
Spectral Fabric (any rarity)1Surgeon (x1)
Rotten Fluids (any rarity)11Tailor (x1), Weaponsmith (x10)
Wendigo's Sharp Claws (any rarity)2Tailor (x1), Tailor (x1)
Frozen Heart (any rarity)1Tailor (x1)
Ale (any rarity)4Tavern Master (x1), The Collector (x3)
Explosive Bottle (any rarity)4Tavern Master (x1), Woodsman (x3)
Rusty Broken Sword (any rarity)1Tavern Master (x1)
Centaur Hoof (any rarity)1Tavern Master (x1)
Token of Honor (any rarity)1Tavern Master (x1)
Ancient Scroll (any rarity)1The Collector (x1)
Gold Waterpot (any rarity)1The Collector (x1)
Oil Lantern (any rarity)3The Collector (x3)
Wolf Fang (any rarity)2The Collector (x2)
Rare Gold Waterpot2The Collector (x2)
Rare Gold Candle Holder2The Collector (x2)
Rare Gold Candelabra2The Collector (x2)
Epic Gold Bowl1The Collector (x1)
Gem Ring (any rarity)1Treasurer (x1)
Gem Necklace (any rarity)1Treasurer (x1)
Silver Coin (any rarity)100Treasurer (x100)
Uncommon Silver Chalice1Treasurer (x1)
Uncommon Gold Goblet1Treasurer (x1)
Epic Ceremonial Dagger1Treasurer (x1)
Epic Simple Gold Bangle1Treasurer (x1)
Epic Patterned Gold Bangle1Treasurer (x1)
Epic Dotted Gold Bangle1Treasurer (x1)
Epic Turquoise Gem Bangle1Treasurer (x1)
Gold Ingot (any rarity)3Weaponsmith (x3)
Volcanic Ash (any rarity)1Weaponsmith (x1)
Spectral Hilt (any rarity)1Weaponsmith (x1)
Warlord's Broken Sword Blade (any rarity)1Weaponsmith (x1)
Epic Weapon5Weaponsmith (x5)
Campfire Kit (any rarity)3Woodsman (x3)
Diary of the Toz (any rarity)1Woodsman (x1)
Chronicles of the Cursed Crown (any rarity)1Woodsman (x1)
Manuscripts of the Warlord (any rarity)1Woodsman (x1)