From Dark and Darker Wiki

(Added Loot state to quest items)
 
(5 intermediate revisions by 3 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_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|1|lootstate}}<!--
}}
-->}}<!--
{{#vardefine:isItemInArray|{{#arraysearch: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|1|quantity}}<!--
{{#if:{{#var:isItemInArray}}
-->}}<!--
|<!--True-->
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->{{#if:{{#var:isItemInArray}}<!--
|<!--False-->
-->|<!--True--><!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->{{#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}}}}<!--
}}<!--end is eq: fetch type -->
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
|}}<!-- end if: is Task N -->
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
 
-->}}<!--
<!-- Check if Its fetch 2-->
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!--
{{#vardefine:cond2|{{#arraysearch:tasks_array|2}}}}
--><!--
{{#if:cond2
-->}}<!--end is eq: fetch type --><!--
|<!-- True: Task array has task: 2 -->
-->|}}<!-- 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|2|type}}
--><!--
|Fetch|
--><!-- Check if Its fetch 2--><!--
 
-->{{#vardefine:cond2|{{#arraysearch:tasks_array|2}}}}<!--
<!-- FETCH TASK Checking -->
-->{{#if:cond2<!--
{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|fetch}}
-->|<!-- 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}}<!--
{{#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|<!--
}}
--><!--
{{#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|2|fetch}}}}<!--
|<!--True-->
-->{{#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:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->}}<!--
|<!--False-->
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|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}}}}}}<!--
}}
-->{{#if:{{#var:isItemInArray}}<!--
 
-->|<!--True--><!--
}}<!--end is eq: fetch type -->
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!--
|}}<!-- end if: is Task N -->
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
 
-->|<!--False--><!--
<!-- Check if Its fetch 3-->
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
{{#vardefine:cond3|{{#arraysearch:tasks_array|3}}}}
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
{{#if:cond3
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!-- 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:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!--
|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|3|fetch}}
--><!--
}}
--><!-- Check if Its fetch 3--><!--
{{#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:cond3|{{#arraysearch:tasks_array|3}}}}<!--
}}
-->{{#if:cond3<!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->|<!-- True: Task array has task: 3 --><!--
{{#if:{{#var:isItemInArray}}
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|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|3|fetch}}}}<!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->{{#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}}<!--
}}<!--end is eq: fetch type -->
-->}}<!--
|}}<!-- end if: is Task N -->
-->{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}<!--
 
-->{{#if:{{#var:isItemInArray}}<!--
<!-- Check if Its fetch 4-->
-->|<!--True--><!--
{{#vardefine:cond4|{{#arraysearch:tasks_array|4}}}}
-->{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}<!--
{{#if:cond4
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
|<!-- True: Task array has task: 4 -->
-->|<!--False--><!--
{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|type}}
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
|Fetch|
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
 
-->{{#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|4|fetch}}
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!--
}}
--><!--
{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|quantity}}
-->}}<!--end is eq: fetch type --><!--
}}
-->|}}<!-- end if: is Task N --><!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
--><!--
{{#if:{{#var:isItemInArray}}
--><!-- Check if Its fetch 4--><!--
|<!--True-->
-->{{#vardefine:cond4|{{#arraysearch:tasks_array|4}}}}<!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->{{#if:cond4<!--
|<!--False-->
-->|<!-- True: Task array has task: 4 --><!--
{{#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|4|type}}<!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->|Fetch|<!--
}}
--><!--
 
--><!-- FETCH TASK Checking --><!--
}}<!--end is eq: fetch type -->
-->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|fetch}}}}<!--
|}}<!-- end if: is Task N -->
-->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|lootstate}}<!--
 
-->}}<!--
<!-- 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|4|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}}}}}}}}<!--
 
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
<!-- FETCH TASK Checking -->
-->|<!--False--><!--
{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|fetch}}
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
}}
-->{{#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}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->}}<!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!--
{{#if:{{#var:isItemInArray}}
--><!--
|<!--True-->
-->}}<!--end is eq: fetch type --><!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->|}}<!-- end if: is Task N --><!--
|<!--False-->
--><!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
--><!-- Check if Its fetch 5--><!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->{{#vardefine:cond5|{{#arraysearch:tasks_array|5}}}}<!--
}}
-->{{#if:cond5<!--
 
-->|<!-- True: Task array has task: 5 --><!--
}}<!--end is eq: fetch type -->
-->{{#ifeq: {{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|type}}<!--
|}}<!-- end if: is Task N -->
-->|Fetch|<!--
 
--><!--
<!-- Check if Its fetch 6-->
--><!-- FETCH TASK Checking --><!--
{{#vardefine:cond6|{{#arraysearch:tasks_array|6}}}}
-->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|fetch}}}}<!--
{{#if:cond6
-->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|lootstate}}<!--
|<!-- 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}}
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|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|6|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|6|quantity}}
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#arrayprint:quest_giver{{#var:current_item}}|,}},{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
}}
-->|<!--False--><!--
{{#vardefine:isItemInArray|{{#arraysearch:array_item_names|{{#var:current_item}}}}}}
-->{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}<!--
{{#if:{{#var:isItemInArray}}
-->{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}<!--
|<!--True-->
-->{{#arraydefine:quest_giver{{#var:current_item}}|{{#var:cur_trader}} (x{{#var:current_quantity}})}}<!--
{{#vardefine:{{#var:current_item}}|{{#expr:{{#var:current_quantity}}+{{#var:{{#var:current_item}}}}}}}}
-->}}<!--
|<!--False-->
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!--
{{#arraydefine:array_item_names|{{#arrayprint:array_item_names|,}},{{#var:current_item}}}}
--><!--
{{#vardefine:{{#var:current_item}}|{{#var:current_quantity}}}}
-->}}<!--end is eq: fetch type --><!--
}}
-->|}}<!-- end if: is Task N --><!--
 
--><!--
}}<!--end is eq: fetch type -->
--><!-- Check if Its fetch 6--><!--
|}}<!-- end if: is Task N -->
-->{{#vardefine:cond6|{{#arraysearch:tasks_array|6}}}}<!--
 
-->{{#if:cond6<!--
<!--}}-->
-->|<!-- True: Task array has task: 6 --><!--
<!--End loop over tasks-->
-->{{#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 --><!--
<!-- Remove first empty element -->
-->{{#vardefine:current_item|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|fetch}}}}<!--
{{#arrayslice:array_item_names|array_item_names|1|9999}}
-->{{#vardefine:current_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|lootstate}}<!--
 
-->}}<!--
<!-- Result Table -->
-->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|quantity}}<!--
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:50%; color:#eee; background:transparent; text-align:center; vertical-align:middle;"><!--
-->}}<!--
-->{{#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:50%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Item name</th><!--
--><th style="width:35%" 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:10%" class="headerSort" tabindex="1" role="columnheader button" title="Quantity">Quantity</th><!--
         -->{{#loop:LoopTest|0|{{#arraysize:array_item_names}}
--><th style="width:40%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Traders</th><!--
|<!-- Loop -->
        --><th style="width:20%" class="headerSort" tabindex="3" role="columnheader button" title="Traders">Loot state</th></tr><!--
{{#vardefine:name|{{#arrayindex:array_item_names|{{#var:LoopTest}}}}}}
         -->{{#loop:LoopTest|0|{{#arraysize:array_item_names}}<!--
<tr><td>{{#var:name}}</td><td>{{#var:{{#var:name}}}}</td></tr>
-->|<!-- Loop --><!--
}}<!--
-->{{#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><!--
--><td>{{#if:{{#var:quest_lootstate{{#var:name}}}}|{{#var:quest_lootstate{{#var:name}}}}|Looted}}</td></tr><!--
-->}}<!--
--></table><!--
--></table><!--
 
--></includeonly><!--
</includeonly>
--><noinclude><!--
<noinclude>
-->{{Template:SumQuestItems}}
{{Example}}

Latest revision as of 11:20, 20 September 2024

Item nameQuantityTradersLoot state
Potion of Healing (any rarity)1Alchemist (x1)Looted
Potion of Protection (any rarity)1Alchemist (x1)Looted
Potion of Invisibility (any rarity)1Alchemist (x1)Looted
Phantom Flower (any rarity)1Alchemist (x1)Looted
Wardweed (any rarity)1Alchemist (x1)Looted
Lifeleaf (any rarity)4Alchemist (x1), The Collector (x3)Looted
Broken Skull (any rarity)4Alchemist (x4)Looted
Mimic Tooth (any rarity)2Alchemist (x1), Treasurer (x1)Looted
Grave Essence (any rarity)8Alchemist (x1), Tavern Master (x3), The Collector (x4)Looted
Maggots (any rarity)3Alchemist (x3)Looted
Cobalt Ore (any rarity)6Armourer (x6)Looted
Rubysilver Ore (any rarity)6Armourer (x6)Looted
Epic Armor5Armourer (x5)Looted
Blue Eyeballs (any rarity)3Armourer (x2), Weaponsmith (x1)Looted
Wolf Pelt (any rarity)11Armourer (x5), The Collector (x2), The Collector (x4)Looted
Old Cloth (any rarity)8Fortune Teller (x1), Tailor (x4), Woodsman (x3)Looted
Bowstring (any rarity)6Fortune Teller (x2), Tavern Master (x1), Woodsman (x3)Looted
Rare Crystal Ball3Fortune Teller (x3)Looted
Rotten Fluids (any rarity)3Fortune Teller (x1), Tailor (x1), Weaponsmith (x1)Looted
Demon Dog Thorn (any rarity)1Fortune Teller (x1)Looted
Bat Claw (any rarity)2Fortune Teller (x2)Looted
Torn Bat Wing (any rarity)1Fortune Teller (x1)Looted
Goblin Ear (any rarity)10Goblin Merchant (x10)Looted
Bug Shell (any rarity)1Goblin Merchant (x1)Looted
Beetle Wings (any rarity)4Goblin Merchant (x2), Goblin Merchant (x2)Looted
Cockatrice's Lucky Feather (any rarity)1Goblin Merchant (x1)Looted
Spider Silk (any rarity)1Goblin Merchant (x1)Looted
Armor Scrap (any rarity)10Leathersmith (x5), Weaponsmith (x5)Looted
Leather Cap (any rarity)3Leathersmith (x3)Looted
Bandage (any rarity)5Surgeon (x5)Looted
Enchanted Dark Fabric (any rarity)1Tailor (x1)Looted
Old Bloody Bandage (any rarity)6Tailor (x1), Tavern Master (x5)Looted
Wendigo's Sharp Claws (any rarity)3Tailor (x2), The Collector (x1)Looted
Glowing Blue Ice Eyes (any rarity)3Tailor (x2), Tavern Master (x1)Looted
Ale (any rarity)6Tavern Master (x3), The Collector (x3)Looted
Explosive Bottle (any rarity)4Tavern Master (x1), Woodsman (x3)Looted
Golden Teeth (any rarity)6Tavern Master (x1), Tavern Master (x5)Looted
Rusty Broken Sword (any rarity)1Tavern Master (x1)Looted
Centaur Hoof (any rarity)1Tavern Master (x1)Looted
Primitive Bracelet (any rarity)12Tavern Master (x12)Looted
Wolf Fang (any rarity)7Tavern Master (x5), The Collector (x2)Looted
Ancient Scroll (any rarity)2The Collector (x2)Looted
Gold Waterpot (any rarity)2The Collector (x2)Looted
Kobold's Ear (any rarity)13The Collector (x8), Woodsman (x5)Looted
Oil Lantern (any rarity)7The Collector (x7)Looted
Moldy Bread (any rarity)4The Collector (x4)Looted
Wendigo's Hoof (any rarity)1The Collector (x1)Looted
Epic Gold Waterpot2The Collector (x2)Looted
Epic Gold Candle Holder2The Collector (x2)Looted
Epic Gold Candelabra2The Collector (x2)Looted
Epic Gold Bowl1The Collector (x1)Looted
Yeti's Teeth (any rarity)1The Collector (x1)Looted
Extra Thick Pelt (any rarity)2The Collector (x2)Looted
Frosted Feather (any rarity)1The Collector (x1)Looted
Gem Ring (any rarity)2Treasurer (x2)Looted
Gem Necklace (any rarity)2Treasurer (x2)Looted
Silver Coin (any rarity)100Treasurer (x100)Looted
Gold Coin (any rarity)50Treasurer (x50)Looted
Rare Silver Chalice1Treasurer (x1)Looted
Rare Gold Goblet1Treasurer (x1)Looted
Legend Diamond1Treasurer (x1)Looted
Legend Ruby1Treasurer (x1)Looted
Legend Emerald1Treasurer (x1)Looted
Legend Blue Sapphire1Treasurer (x1)Looted
Legend Ceremonial Dagger1Treasurer (x1)Looted
Rare Weapon5Weaponsmith (x5)Looted
Gold Ingot (any rarity)3Weaponsmith (x3)(Looted/Handled)
Firefly's Abdomen (any rarity)1Weaponsmith (x1)(Looted/Handled)
Campfire Kit (any rarity)5Woodsman (x5)Looted
Wendigo's Entrails (any rarity)1Woodsman (x1)Looted
Giant Toe (any rarity)1Woodsman (x1)Looted