Difference between revisions of "Template:Acquired from"

From Stoneshard wiki
Jump to navigation Jump to search
(fix Skinflint's itemlvl check)
(when no merchant sells the item, display that information)
Line 24: Line 24:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Hold]] at <!--
-->* [[Hold]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 36: Line 37:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Keremit Lawe]] at <!--
-->* [[Keremit Lawe]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 50: Line 52:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Jebar]] at <!--
-->* [[Jebar]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 62: Line 65:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Dietrich]] at <!--
-->* [[Dietrich]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (12 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (12 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 74: Line 78:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Giles vir Ivet]] at <!--
-->* [[Giles vir Ivet]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 88: Line 93:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Jurg]] at <!--
-->* [[Jurg]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 100: Line 106:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Dirk]] at <!--
-->* [[Dirk]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (12 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (12 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 112: Line 119:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Noel vir Roan]] at <!--
-->* [[Noel vir Roan]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 126: Line 134:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Bern]] at <!--
-->* [[Bern]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 138: Line 147:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Renod Kann]] at <!--
-->* [[Renod Kann]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 150: Line 160:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Armuz]] at <!--
-->* [[Armuz]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 163: Line 174:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Ormi]] at <!--
-->* [[Ormi]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 176: Line 188:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Rigo Nevic]] at <!--
-->* [[Rigo Nevic]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 189: Line 202:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Zdenebrad]] at <!--
-->* [[Zdenebrad]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 202: Line 216:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (10 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (10 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Gerlot]] at <!--
-->* [[Gerlot]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (10 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (10 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 215: Line 230:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Jervey vir Noms]] at <!--
-->* [[Jervey vir Noms]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 228: Line 244:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Letar]] at <!--
-->* [[Letar]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 241: Line 258:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[General Merchant (Brynn Mint Square)]] at <!--
-->* [[General Merchant (Brynn Mint Square)]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 254: Line 272:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[General Merchant (Brynn Docks)]] at <!--
-->* [[General Merchant (Brynn Docks)]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 266: Line 285:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (16 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (16 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Skinflint Homs]] at <!--
-->* [[Skinflint Homs]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (16 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Hatred}}) and {{#var:LVL}} <= (16 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 278: Line 298:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (18 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (18 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Esfah]] at <!--
-->* [[Esfah]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (18 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Hatred}}) and {{#var:LVL}} <= (18 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 291: Line 312:
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
--><!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Ol' Tott]] at <!--
-->* [[Ol' Tott]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (14 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 303: Line 325:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (8 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (8 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[Bert]] at <!--
-->* [[Bert]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (8 + {{#var:Hatred}})|Hatred&nbsp;|}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Hatred}}) and {{#var:LVL}} <= (8 + {{#var:Hatred}})|Hatred&nbsp;|}}<!--
Line 315: Line 338:
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
|<!-- First check item's LVL is between merchant's minimum LVL at Hatred and maximum LVL at Respect. --><!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (20 + {{#var:Respect}})
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (20 + {{#var:Respect}})
|<!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
|{{#vardefine:NobodySells|1}}<!--
--><!-- If true, merchant can sell the item, list the merchant. Now check each reputation individually. --><!--
-->* [[One-Eyed Wigmar]] at <!--
-->* [[One-Eyed Wigmar]] at <!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (20 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Hatred}}) and {{#var:LVL}} <= (20 + {{#var:Hatred}})|Hatred&nbsp;}}<!--
Line 324: Line 348:
-->}}<!--
-->}}<!--
-->}}}}<!--
-->}}}}<!--
-->{{#if: {{#var:NobodySells}}||Currently no merchant sells this item.}}<!--
--><!-- OLD CODE for Containers, still works but the lists will be outdated for sure --><!--
--><!-- OLD CODE for Containers, still works but the lists will be outdated for sure --><!--
-->{{#if: {{#pos:{{:Barrels|Loot}}|{{ROOTPAGENAME}}}} | * [[Barrels]] | }}<!--
-->{{#if: {{#pos:{{:Barrels|Loot}}|{{ROOTPAGENAME}}}} | * [[Barrels]] | }}<!--

Revision as of 13:11, 23 December 2022

Template-info.png Documentation

This template automatically provides a list of loot sources (where an item can spawn/who drops an item). It is incomplete, a work in progress.


Usage

Call this template from any item page, place it where you want to have a list of sources. No parameter is required, ie. simply copy this text:

{{Acquired from}}


How does it work? (OLD WAY)

  • The template automatically uses the page name as the string to look for.
  • We check if the string we're looking for is part of a data string from a given container page.
  • If a match is found, we display the source's page name. If not, we display nothing.
  • Template assumes that all pages we check have their loot data available in our Data Structure format.
  • Due to the #pos Parser Function limitation, the loot data strings must have less than 1000 characters.


Live Examples

Example of loot data from Hero Sarcophagus:

<includeonly>{{#switch: {{{1}}}
|Loot = Pig-Faced Bascinet, Ceremonial Cuirass, Bollock Dagger, Footman Sword, Rondel, Bastard Sword, Battle Axe, War Pick, Knight Warhammer, Fancy Sword, Decorated Dagger, Orient Staff, Golden Ring, Pearl Necklace, Golden Fancy Ring, Golden Patterned Ring, Sapphire Pendant, Emerald, Sapphire, Sea Pearls, Ruby Beads, Exquisite Casket, Golden Earrings, Amethyst, Aquamarine, Topaz, Golden Brooch, Old Agraffe, Silver Buckle, Golden Cup, Diamond, Ruby
|#default = 
}}</includeonly>

If a container's loot data has more than 1000 characters, the data structure can be organized into multiple entries, for example based on item types.

Example of loot data from Bookshelves:

<includeonly>{{#switch: {{{1}}}
|Loot = Plague Doctor Mask, Brynn Vermouth, Mannshire Fortified, Brandy, Lockpicks, Repair Kit, Crowbar, Surgeon's Kit, Horsetail, Peppermint, Mindwort, Burdock, Bogbean, Agrimony, Vivifying Essence, Gwynnel's Elixir, Healing Salve, Splint, Bandage, Ether Inhaler, Antitoxin, Identification Scroll, Enchantment Scroll, Disenchantment Scroll, Bolt of Cloth, Silver Cup, Hourglass, Jade Figurine, Spool of Thread, Silver Buckle, Silver Plate, Decorated Inkpot, Golden Candelabrum, Silver Cutlery, Bottle of Oil, Iron Ingot, Gold Nugget, Silver Nugget, Copper Candlestick, Bottle, Candle-end, Straw, Coal Chunk, Nails, Ladle, Mug, Bowl, Pot, Plate, Rag, Rope
|Treatise = Sword Treatise I, Sword Treatise II, Sword Treatise III, Axe Treatise I, Axe Treatise II, Axe Treatise III, Mace Treatise I, Mace Treatise II, Mace Treatise III, Dagger Treatise I, Dagger Treatise II, Dagger Treatise III, Greatswords Treatise I, Greatswords Treatise II, Greatswords Treatise III, Ranged Weapons Treatise I, Ranged Weapons Treatise II, Ranged Weapons Treatise III, Shields Treatise I, Shields Treatise II, Shields Treatise III, Staffs Treatise I, Staffs Treatise II, Staffs Treatise III, Combat Mastery Treatise I, Combat Mastery Treatise II, Combat Mastery Treatise III, Combat Mastery Treatise IV, Athletics Treatise I, Athletics Treatise II, Athletics Treatise III, Athletics Treatise IV, Pyromantic Treatise I, Pyromantic Treatise II, Pyromantic Treatise III, Pyromantic Treatise IV, Geomantic Treatise I, Geomantic Treatise II, Geomantic Treatise III, Geomantic Treatise IV
|#default = 
}}</includeonly>

For each parameter you have to add a new line to the template to check for. Example:

-->{{#if: {{#pos:{{:Bookshelves|Loot}}|{{ROOTPAGENAME}}}} | * [[Bookshelves]] | }}<!--
-->{{#if: {{#pos:{{:Bookshelves|Treatise}}|{{ROOTPAGENAME}}}} | * [[Bookshelves]] | }}<!--