Template:ThievingTarget: Difference between revisions

From Melvor Idle
m (Prevent excessive whitespace (hopefully))
(Updated to use new code for thieving (in Skills/Gathering))
Line 16: Line 16:
| {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}}
| {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}}
|-
|-
| '''Requirement:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|requirements}}
| '''Area:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|area}}
|-
|-
| '''Max Hit:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxHit}}
| '''Requirements:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|level}}
|-
|-
| '''Experience:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|xp}} XP
| '''Perception:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|perception}}
|-
|-
| '''Drops:'''
| '''Max Hit:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|maxHit}}
* {{GP|1|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxCoins}}}}
|-
{{#var:itemDropsText}}
| '''Experience:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|xp}} XP
Rare Drops:
*   0.83% {{ItemIcon|Bobby's Pocket}}
*   0.01% {{ItemIcon|Chapeau Noir}}
|}</includeonly></onlyinclude>
|}</includeonly></onlyinclude>

Revision as of 20:31, 30 September 2021

Usage: {{ThievingTarget|name=<NPC_Name>}}. If the name parameter is omitted, the page name is used instead.

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

Chef
Error creating thumbnail: File missing
Area: Script error: The function "getThievingNPCStat" does not exist.
Requirements: Script error: The function "getThievingNPCStat" does not exist.
Perception: Script error: The function "getThievingNPCStat" does not exist.
Max Hit: Script error: The function "getThievingNPCStat" does not exist.
Experience: Script error: The function "getThievingNPCStat" does not exist. XP