Template:ThievingTarget: Difference between revisions
From Melvor Idle
(Change to Lua powered template) |
(Change drops section) |
||
Line 10: | Line 10: | ||
{{#vardefine:itemDrops|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootTable}}}} | {{#vardefine:itemDrops|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootTable}}}} | ||
{{#vardefine:itemDropsText|{{#ifeq:{{#var:itemDrops}}||| | {{#vardefine:itemDropsText|{{#ifeq:{{#var:itemDrops}}|||Normal Drops:<br/>{{#var:itemDrops}}<br/>}}}} | ||
<!-- Generate the box --> | <!-- Generate the box --> | ||
Line 28: | Line 28: | ||
* {{GP|1|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxCoins}}}} | * {{GP|1|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxCoins}}}} | ||
{{#var:itemDropsText}} | {{#var:itemDropsText}} | ||
0.83% | Rare Drops: | ||
* 0.83% {{ItemIcon|Bobby's Pocket}} | |||
* 0.01% {{ItemIcon|Chapeau Noir}} | |||
0.01% | |||
|}</includeonly></onlyinclude> | |}</includeonly></onlyinclude> |
Revision as of 15:22, 11 April 2021
Usage: {{ThievingTarget|name=<NPC_Name>}}
. If the name parameter is omitted, the page name is used instead.
For example, {{ThievingTarget|Chef}}
returns:
Chef |
---|
Error creating thumbnail: File missing
|
Requirement: |
Max Hit: 108 |
Experience: XP |
Drops:
Normal Drops:
|