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}}|||75% chance for:<br/>{{#var:itemDrops}}<br/>}}}}
{{#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% chance for:
Rare Drops:
* {{ItemIcon|Bobby's Pocket}}
* &nbsp;&nbsp;0.83% {{ItemIcon|Bobby's Pocket}}
 
* &nbsp;&nbsp;0.01% {{ItemIcon|Chapeau Noir}}
0.01% chance for:
* {{ItemIcon|Chapeau Noir}}
|}</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:
  • 1GP

Normal Drops:
table
Rare Drops: