Template:ThievingTarget: Difference between revisions

From Melvor Idle
(Change to Lua powered template)
m (Format max hit number)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Usage: {{T|ThievingTarget|name=<NPC_Name>}}. If the '''name''' parameter is omitted, the page name is used instead.
Usage: {{T|ThievingTarget|<NPC_Name>}}. If the '''name''' parameter is omitted, the page name is used instead.


For example, {{T|ThievingTarget|Chef}} returns:
For example, {{T|ThievingTarget|Chef}} returns:
{{ThievingTarget|name=Chef}}
{{ThievingTarget|Chef}}


<onlyinclude><includeonly>
<onlyinclude><includeonly>{{#vardefine:npc|{{{1|{{PAGENAME}}}}}}}<!--
{{#vardefine:npc|{{{name|{{PAGENAME}}}}}}}
--><!-- Manual override below for Golbin --><!--
<!-- Manual override below for Goblin -->
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!--
{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}
--><!-- Generate the box -->
 
{| class="wikitable infobox"
{{#vardefine:itemDrops|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootTable}}}}
{{#vardefine:itemDropsText|{{#ifeq:{{#var:itemDrops}}|||75% chance for:<br/>{{#var:itemDrops}}<br/>}}}}
 
<!-- Generate the box -->
{| class="wikitable" style="float:right; clear:right; max-width:250px; margin-left:10px"
|-  
|-  
! {{#var:npc}}
! {{#var:npc}}
|-
|-
| {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}}
| style="text-align:center;" | {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}}
|-
| '''Area:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|area}}
|-
|-
| '''Requirement:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|requirements}}
| '''Requirements:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|level}}
|-
|-
| '''Max Hit:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxHit}}
| '''Perception:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|perception}}}}
|-
|-
| '''Experience:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|xp}} XP
| '''Max Hit:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxHit}}}}
|-
|-
| '''Drops:'''
| '''Experience:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|baseExperience}} XP
* {{GP|1|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxCoins}}}}
{{#var:itemDropsText}}
0.83% chance for:
* {{ItemIcon|Bobby's Pocket}}
 
0.01% chance for:
* {{ItemIcon|Chapeau Noir}}
|}</includeonly></onlyinclude>
|}</includeonly></onlyinclude>

Latest revision as of 14:42, 20 June 2024

Usage: {{ThievingTarget|<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
Area: Banquet
Requirements:
Error creating thumbnail: File missing
Level 34
Perception: 350
Max Hit: 108
Experience: 31 XP