Anonymous

Template:ThievingDrops: Difference between revisions

From Melvor Idle
swapped to new format
m (Grammar)
(swapped to new format)
 
Line 1: Line 1:
__NOTOC__
This template is for the Loot section for Thieving NPCs. Usage: {{T|ThievingDrops|<NPC_Name>}}. If NPC name is omitted, the page name is used instead.
This template is for the Loot section for Thieving NPCs. Usage: {{T|ThievingDrops|<NPC_Name>}}. If NPC name is omitted, the page name is used instead.


Line 6: Line 7:


<onlyinclude><includeonly>{{#vardefine:npc|{{{1|{{PAGENAME}}}}}}}<!--
<onlyinclude><includeonly>{{#vardefine:npc|{{{1|{{PAGENAME}}}}}}}<!--
--><!-- Manual override for Golbin -->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!--
-->{{#invoke:Skills/Gathering|getThievingNPCLootTables|{{#var:npc}}}}
-->{{#vardefine:itemDrops|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootTable}}}}<!--
-->{{#vardefine:staticText|Including GP and assuming {{ItemIcon|Bobby's Pocket}}s are sold, the average successful pickpocket is worth {{GP|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|pickpocketValue}}}}.}}<!--
-->{{#vardefine:itemDropsText|{{#ifeq:{{#var:itemDrops}}||{{#var:staticText}}|In addition, there is a 75% chance that one of the following items will be obtained:
 
{{#var:itemDrops}}
 
The items obtained from the average successful pickpocket attempt are worth {{GP|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootValue}}}} if sold.
 
{{#var:staticText}}}}}}
For each successful pickpocket from this NPC, {{GP|1|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxCoins}}}} will be looted.
 
{{#var:itemDropsText}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>