From Dark and Darker Wiki

(Created script that extracts and adds quest items values.)
 
(Some visual touchups)
 
(5 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}}|<!--
-->
--><!--
{{#arraydefine:chapters_array|
-->{{#vardefine:cur_trader|[[{{#arrayindex:traders_arr|{{#var:loopTr}}}}]]}}<!--
{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|All}}
-->{{#arraydefine:chapters_array|<!--
}}
-->{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|All}}<!--
<!--Loop Over Chapters-->
-->}}<!--
{{#loop: loopC|0|{{#arraysize:chapters_array}}|
--><!--Loop Over Chapters--><!--
{{#arraydefine:quest_array|
-->{{#loop: loopC|0|{{#arraysize:chapters_array}}|<!--
{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|All}}
-->{{#arraydefine:quest_array|<!--
}}
-->{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|All}}<!--
<!--Loop Over Quests-->
-->}}<!--
{{#loop: loopQ|0|{{#arraysize:quest_array}}|
--><!--Loop Over Quests--><!--
{{#arraydefine:tasks_array|
-->{{#loop: loopQ|0|{{#arraysize:quest_array}}|<!--
{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|all}}
-->{{#arraydefine:tasks_array|<!--
}}
-->{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|all}}<!--
 
-->}}<!--
<!--Loop Over Tasks-->
--><!--
<!-- TOO MANY LOOOOOPS, COPY PASTE CODE FOR TASKS -->
--><!--Loop Over Tasks--><!--
<!-- Check if Its fetch 1-->
--><!-- TOO MANY LOOOOOPS, COPY PASTE CODE FOR TASKS --><!--
{{#vardefine:cond1|{{#arraysearch:tasks_array|1}}}}
--><!-- Check if Its fetch 1--><!--
{{#if:cond1
-->{{#vardefine:cond1|{{#arraysearch:tasks_array|1}}}}<!--
|<!-- True: Task array has task: 1 -->
-->{{#if:cond1<!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|type}}
-->|<!-- True: Task array has task: 1 --><!--
|Fetch|
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|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|1|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|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}}}}}}
-->}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
|<!--True-->
-->{{#if:{{#var:isItemInArray}}<!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->|<!--True--><!--
|<!--False-->
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->|<!--False--><!--
}}
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
 
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
}}<!--end is eq: fetch type -->
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|}}<!-- end if: is Task N -->
-->}}<!--
 
--><!--
<!-- Check if Its fetch 2-->
-->}}<!--end is eq: fetch type --><!--
{{#vardefine:cond2|{{#arraysearch:tasks_array|2}}}}
-->|}}<!-- end if: is Task N --><!--
{{#if:cond2
--><!--
|<!-- True: Task array has task: 2 -->
--><!-- Check if Its fetch 2--><!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|type}}
-->{{#vardefine:cond2|{{#arraysearch:tasks_array|2}}}}<!--
|Fetch|
-->{{#if:cond2<!--
 
-->|<!-- True: Task array has task: 2 --><!--
<!-- FETCH TASK Checking -->
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|type}}<!--
{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|fetch}}
-->|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}}
--><!-- 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:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|quantity}}<!--
|<!--True-->
-->}}<!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
|<!--False-->
-->{{#if:{{#var:isItemInArray}}<!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
-->|<!--True--><!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->{{#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--><!--
}}<!--end is eq: fetch type -->
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
|}}<!-- end if: is Task N -->
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
 
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
<!-- Check if Its fetch 3-->
-->}}<!--
{{#vardefine:cond3|{{#arraysearch:tasks_array|3}}}}
--><!--
{{#if:cond3
-->}}<!--end is eq: fetch type --><!--
|<!-- True: Task array has task: 3 -->
-->|}}<!-- end if: is Task N --><!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|type}}
--><!--
|Fetch|
--><!-- Check if Its fetch 3--><!--
 
-->{{#vardefine:cond3|{{#arraysearch:tasks_array|3}}}}<!--
<!-- FETCH TASK Checking -->
-->{{#if:cond3<!--
{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|fetch}}
-->|<!-- 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}}<!--
{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|quantity}}
-->|Fetch|<!--
}}
--><!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
--><!-- FETCH TASK Checking --><!--
{{#if:{{#var:isItemInArray}}
-->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|fetch}}<!--
|<!--True-->
-->}}<!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|quantity}}<!--
|<!--False-->
-->}}<!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->{{#if:{{#var:isItemInArray}}<!--
}}
-->|<!--True--><!--
 
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!--
}}<!--end is eq: fetch type -->
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|}}<!-- end if: is Task N -->
-->|<!--False--><!--
 
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
<!-- Check if Its fetch 4-->
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
{{#vardefine:cond4|{{#arraysearch:tasks_array|4}}}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
{{#if:cond4
-->}}<!--
|<!-- 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}}
-->}}<!--end is eq: fetch type --><!--
|Fetch|
-->|}}<!-- end if: is Task N --><!--
 
--><!--
<!-- FETCH TASK Checking -->
--><!-- Check if Its fetch 4--><!--
{{#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:cond4|{{#arraysearch:tasks_array|4}}}}<!--
}}
-->{{#if:cond4<!--
{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|quantity}}
-->|<!-- 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}}<!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->|Fetch|<!--
{{#if:{{#var:isItemInArray}}
--><!--
|<!--True-->
--><!-- FETCH TASK Checking --><!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|fetch}}<!--
|<!--False-->
-->}}<!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
-->{{#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:{{#var:current_item}}|{{#var:current_quantity}}}}
-->}}<!--
}}
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
 
-->{{#if:{{#var:isItemInArray}}<!--
}}<!--end is eq: fetch type -->
-->|<!--True--><!--
|}}<!-- end if: is Task N -->
-->{{#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}})}}<!--
<!-- Check if Its fetch 5-->
-->|<!--False--><!--
{{#vardefine:cond5|{{#arraysearch:tasks_array|5}}}}
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
{{#if:cond5
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
|<!-- True: Task array has task: 5 -->
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|type}}
-->}}<!--
|Fetch|
--><!--
 
-->}}<!--end is eq: fetch type --><!--
<!-- FETCH TASK Checking -->
-->|}}<!-- end if: is Task N --><!--
{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|fetch}}
--><!--
}}
--><!-- Check if Its fetch 5--><!--
{{#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:cond5|{{#arraysearch:tasks_array|5}}}}<!--
}}
-->{{#if:cond5<!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->|<!-- True: Task array has task: 5 --><!--
{{#if:{{#var:isItemInArray}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|type}}<!--
|<!--True-->
-->|Fetch|<!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
--><!--
|<!--False-->
--><!-- FETCH TASK Checking --><!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
-->{{#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:{{#var:current_item}}|{{#var:current_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}}<!--
 
-->}}<!--
}}<!--end is eq: fetch type -->
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
|}}<!-- end if: is Task N -->
-->{{#if:{{#var:isItemInArray}}<!--
 
-->|<!--True--><!--
<!-- Check if Its fetch 6-->
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!--
{{#vardefine:cond6|{{#arraysearch:tasks_array|6}}}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
{{#if:cond6
-->|<!--False--><!--
|<!-- True: Task array has task: 6 -->
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|type}}
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
|Fetch|
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
 
-->}}<!--
<!-- 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}}
-->}}<!--end is eq: fetch type --><!--
}}
-->|}}<!-- end if: is Task N --><!--
{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|quantity}}
--><!--
}}
--><!-- Check if Its fetch 6--><!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->{{#vardefine:cond6|{{#arraysearch:tasks_array|6}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#if:cond6<!--
|<!--True-->
-->|<!-- True: Task array has task: 6 --><!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|type}}<!--
|<!--False-->
-->|Fetch|<!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
--><!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
--><!-- 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}}<!--
 
-->}}<!--
}}<!--end is eq: fetch type -->
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|quantity}}<!--
|}}<!-- end if: is Task N -->
-->}}<!--
 
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
<!--}}-->
-->{{#if:{{#var:isItemInArray}}<!--
<!--End loop over tasks-->
-->|<!--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--><!--
<!-- Remove first empty element -->
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
{{#arrayslice:array_item_names|array_item_names|1|9999}}
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
 
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
<!-- Result Table -->
-->}}<!--
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:50%; color:#eee; background:transparent; text-align:center; vertical-align:middle;"><!--
--><!--
-->}}<!--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:50%" 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:20%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Quantity</th></tr><!--
--><th style="width:15%" class="headerSort" tabindex="1" role="columnheader button" title="Quantity">Quantity</th><!--
         -->{{#loop:LoopTest|0|{{#arraysize:array_item_names}}
--><th style="width:50%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Traders</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></tr>
-->{{#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><!--
-->}}<!--
--></table><!--
--></table><!--
 
--></includeonly><!--
</includeonly>
--><noinclude><!--
<noinclude>
-->{{Template:SumQuestItems}}
{{Example}}

Latest revision as of 12:06, 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 (x4)
Mimic Tooth (any rarity)2Alchemist (x1), Treasurer (x1)
Grave Essence (any rarity)8Alchemist (x1), Tavern Master (x3), The Collector (x4)
Maggots (any rarity)3Alchemist (x3)
Cobalt Ore (any rarity)6Armourer (x6)
Rubysilver Ore (any rarity)6Armourer (x6)
Epic Armor5Armourer (x5)
Old Cloth (any rarity)8Fortune Teller (x1), Tailor (x4), Woodsman (x3)
Bowstring (any rarity)6Fortune Teller (x2), Tavern Master (x1), Woodsman (x3)
Rare Crystal Ball3Fortune Teller (x3)
Rotten Fluids (any rarity)2Fortune Teller (x1), Tailor (x1)
Demon Dog Thorn (any rarity)1Fortune Teller (x1)
Bat Claw (any rarity)2Fortune Teller (x2)
Torn Bat Wing (any rarity)1Fortune Teller (x1)
Goblin Ear (any rarity)10Goblin Merchant (x10)
Bug Shell (any rarity)1Goblin Merchant (x1)
Beetle Wings (any rarity)4Goblin Merchant (x2), Goblin Merchant (x2)
Spider Silk (any rarity)1Goblin Merchant (x1)
Armor Scrap (any rarity)5Leathersmith (x5)
Leather Cap (any rarity)3Leathersmith (x3)
Bone (any rarity)6Skeleton (x6)
Intact Skull (any rarity)3Skeleton (x3)
Silver Skull Token (any rarity)100Skeleton (x100)
Bandage (any rarity)5Surgeon (x5)
Enchanted Dark Fabric (any rarity)1Tailor (x1)
Old Bloody Bandage (any rarity)2Tailor (x1), Tavern Master (x1)
Wendigo's Sharp Claws (any rarity)3Tailor (x2), The Collector (x1)
Glowing Blue Ice Eyes (any rarity)3Tailor (x2), Tavern Master (x1)
Ale (any rarity)6Tavern Master (x3), The Collector (x3)
Explosive Bottle (any rarity)4Tavern Master (x1), Woodsman (x3)
Golden Teeth (any rarity)3Tavern Master (x1), Tavern Master (x2)
Rusty Broken Sword (any rarity)1Tavern Master (x1)
Centaur Hoof (any rarity)1Tavern Master (x1)
Primitive Bracelet (any rarity)12Tavern Master (x12)
Wolf Fang (any rarity)4Tavern Master (x2), The Collector (x2)
Ancient Scroll (any rarity)2The Collector (x2)
Gold Waterpot (any rarity)2The Collector (x2)
Kobold's Ear (any rarity)8The Collector (x8)
Oil Lantern (any rarity)7The Collector (x7)
Moldy Bread (any rarity)4The Collector (x4)
Wolf Pelt (any rarity)6The Collector (x2), The Collector (x4)
Wendigo's Hoof (any rarity)1The Collector (x1)
Epic Gold Waterpot2The Collector (x2)
Epic Gold Candle Holder2The Collector (x2)
Epic Gold Candelabra2The Collector (x2)
Epic Gold Bowl1The Collector (x1)
Yeti's Teeth (any rarity)1The Collector (x1)
Extra Thick Pelt (any rarity)2The Collector (x2)
Frosted Feather (any rarity)1The Collector (x1)
Gem Ring (any rarity)2Treasurer (x2)
Gem Necklace (any rarity)2Treasurer (x2)
Silver Coin (any rarity)100Treasurer (x100)
Gold Coin (any rarity)50Treasurer (x50)
Rare Silver Chalice1Treasurer (x1)
Rare Gold Goblet1Treasurer (x1)
Rare Gold Crown2Treasurer (x2)
Rare Ancient Scroll2Treasurer (x2)
Legend Ceremonial Dagger1Treasurer (x1)
Rare Weapon5Weaponsmith (x5)
Gold Ingot (any rarity)3Weaponsmith (x3)
Firefly's Abdomen (any rarity)1Weaponsmith (x1)
Campfire Kit (any rarity)5Woodsman (x5)