Template:NPCLoot: Difference between revisions
No edit summary |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table=NpcDrops | _table=NpcDrops | ||
|NPCKey= | |NPCKey=Page | ||
|Item=Page | |Item=Page | ||
|Quantity=Integer | |Quantity=Integer | ||
|Rarity=String | |Rarity=String | ||
|BuyPrice=String | |BuyPrice=String | ||
|SellPrice=String | |SellPrice=String | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{#vardefine:npckey|{{FULLPAGENAME}}}} | |||
{{#vardefine:npckey|{{#replace:{{#var:npckey}}|'|}}}} | |||
{{#vardefine:npckey|{{#replace:{{#var:npckey}}|,|}}}} | |||
{{#vardefine:npckey|{{#replace:{{#var:npckey}}| |}}}} | |||
{{#vardefine:npckey|{{lc:{{#var:npckey}}}}}} | |||
{{#cargo_store: | {{#cargo_store: | ||
_table=NpcDrops | _table=NpcDrops | ||
|NPCKey= | |NPCKey={{#var:npckey}} | ||
|Item={{{item}}} | |Item={{{item}}} | ||
|Quantity={{{quantity|1}}} | |Quantity={{{quantity|1}}} | ||
|Rarity={{{rarity|Unknown}}} | |Rarity={{{rarity|Unknown}}} | ||
|BuyPrice={{{buyprice|?}}} | |BuyPrice={{{buyprice|?}}} | ||
|SellPrice={{{sellprice|?}}} | |SellPrice={{{sellprice|?}}} | ||
}} | }} | ||
</includeonly> | </includeonly> |