Template:NPCLootTable: Difference between revisions

From HighSpell Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#vardefine:npckey|{{lc:{{#replace:{{#replace:{{#replace:{{PAGENAMEE}}|%27|}}|_|}}}}}}
{| class="wikitable"
{| class="wikitable"
! colspan="2" | '''Item'''
! colspan="2" | '''Item'''
Line 5: Line 7:
! '''Buy Price'''
! '''Buy Price'''
! '''Sell Price'''
! '''Sell Price'''
|-
{{#cargo_query:
{{#cargo_query:
   tables=NpcDrops
   tables=NpcDrops
   |fields=Item,Quantity,Rarity,BuyPrice,SellPrice
   |fields=Item,Quantity,Rarity,BuyPrice,SellPrice
   |where=NPCKey="{{PAGENAME}}"
   |where=NPCKey="{{#var:npckey}}"
   |format=template
   |format=template
   |template=NPCLootItem
   |template=NPCLootItem

Revision as of 09:22, 15 May 2025

{{#vardefine:npckey|npcloottable

Item Quantity Rarity Buy Price Sell Price
Error in "where" parameter: the string "#" cannot be used within #cargo_query.