From Dark and Darker Wiki
(Fixed gap between table and top of page.) |
(Added Loot state to quest items) |
||
(One intermediate revision by one other user not shown) | |||
Line 33: | Line 33: | ||
--><!-- | --><!-- | ||
--><!-- 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: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}}<!-- | ||
Line 47: | Line 48: | ||
-->{{#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}})}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | --><!-- | ||
-->}}<!--end is eq: fetch type --><!-- | -->}}<!--end is eq: fetch type --><!-- | ||
Line 59: | Line 61: | ||
--><!-- | --><!-- | ||
--><!-- 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_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:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|2|quantity}}<!-- | ||
Line 73: | Line 76: | ||
-->{{#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}})}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | --><!-- | ||
-->}}<!--end is eq: fetch type --><!-- | -->}}<!--end is eq: fetch type --><!-- | ||
Line 85: | Line 89: | ||
--><!-- | --><!-- | ||
--><!-- 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_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:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|3|quantity}}<!-- | ||
Line 99: | Line 104: | ||
-->{{#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}})}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | --><!-- | ||
-->}}<!--end is eq: fetch type --><!-- | -->}}<!--end is eq: fetch type --><!-- | ||
Line 111: | Line 117: | ||
--><!-- | --><!-- | ||
--><!-- 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_lootstate|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|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}}<!-- | -->{{#vardefine:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|4|quantity}}<!-- | ||
Line 125: | Line 132: | ||
-->{{#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}})}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | --><!-- | ||
-->}}<!--end is eq: fetch type --><!-- | -->}}<!--end is eq: fetch type --><!-- | ||
Line 137: | Line 145: | ||
--><!-- | --><!-- | ||
--><!-- 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_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:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|5|quantity}}<!-- | ||
Line 151: | Line 160: | ||
-->{{#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}})}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | --><!-- | ||
-->}}<!--end is eq: fetch type --><!-- | -->}}<!--end is eq: fetch type --><!-- | ||
Line 163: | Line 173: | ||
--><!-- | --><!-- | ||
--><!-- 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_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:current_quantity|{{Merchant Data|{{#arrayindex:traders_arr|{{#var:loopTr}}}}|QuestChapters|{{#arrayindex:chapters_array|{{#var:loopC}}}}|{{#arrayindex:quest_array|{{#var:loopQ}}}}|objectives|6|quantity}}<!-- | ||
Line 177: | Line 188: | ||
-->{{#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}})}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine:quest_lootstate{{#var:current_item}}|{{#var:current_lootstate}}}}<!-- | |||
--><!-- | --><!-- | ||
-->}}<!--end is eq: fetch type --><!-- | -->}}<!--end is eq: fetch type --><!-- | ||
Line 189: | Line 201: | ||
-->{{#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%; | --><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><!-- | ||
--><th style="width:20%" class="headerSort" tabindex="3" role="columnheader button" title="Traders">Loot state</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}}|, }}</td></tr><!-- | --><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><!-- |