Template:GetMobDrops: Difference between revisions
From HorizonXI Wiki
Starfox9507 (talk | contribs) No edit summary |
.mythicangel (talk | contribs) No edit summary |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#get_db_data:db = droprates | <includeonly><onlyinclude> | ||
{{#get_db_data:db = spawncount | |||
| parameters={{{mob name|{{PAGENAMEE}}}}} | |||
| data= mobcount=mobcount, zonename=zonename | |||
}}<!-- | |||
-->{| class="wikitable" | |||
! zonename !! mobcount{{#for_external_table:|<nowiki/> | |||
{{!}}- | |||
{{!}} {{{zonename}}} {{!}}{{!}} {{{mobcount}}} | |||
}} | |||
|} | |||
<!-- | |||
--><br> | |||
{{#get_db_data:db = droprates | |||
| parameters={{{mob name|{{PAGENAMEE}}}}} | | parameters={{{mob name|{{PAGENAMEE}}}}} | ||
| data=zone=zoneName,item=itemName,rate=itemRate | | data=zone=zoneName,item=itemName,rate=itemRate | ||
}}<!-- | }}<!-- | ||
-->{| class=" | -->{| class="wikitable" | ||
! zone !! item !! rate{{#for_external_table:|<nowiki/> | ! zone !! item !! rate{{#for_external_table:|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}} [[{{{zone}}}]] {{!}}{{!}} {{{item}}} {{!}}{{!}} {{#expr:{{{rate}}} / 10}}% | {{!}} [[{{{zone}}}]] {{!}}{{!}} {{{item}}} {{!}}{{!}} {{#expr:{{{rate}}} / 10}}% | ||
}} |}</onlyinclude></includeonly> | |||
<!--This would need a while loop on the item from droprates to combine them into the zone name from spawncount. --> | |||
<onlyinclude><includeonly> | |||
{{#get_db_data:db = spawncount | |||
| parameters={{{mob name|{{PAGENAMEE}}}}} | |||
| data= count=mobcount, zoneSpawn=zonename | |||
}} | }} | ||
|}</onlyinclude></includeonly> | {{#get_db_data:db = droprates | ||
| parameters={{{mob name|{{PAGENAMEE}}}}} | |||
| data=zoneDrop=zoneName,item=itemName,rate=itemRate | |||
}}<!-- | |||
-->{| class="mobs horizon-table table-xl" | |||
! Zone !! Drops !! Spawns{{#for_external_table:|<nowiki/> | |||
{{!}}- | |||
{{!}} [[{{{zoneSpawn}}}]] {{!}}{{!}} [[{{{item}}}]] {{#expr:{{{rate}}} / 10}}% {{!}}{{!}} {{{count}}} | |||
}} |}</onlyinclude></includeonly> | |||
==Usage== | ==Usage== | ||
Latest revision as of 07:50, 21 September 2024
Usage
Work in progress...
Examples
{{GetMobDrops|mob name=Seeker_Bats}}
| zonename | mobcount |
|---|---|
| Qufim_Island | 13
|
| Ranguemont_Pass | 25
|
| Korroloka_Tunnel | 60
|
| Lower_Delkfutts_Tower | 27
|
| Ordelles_Caves | 19
|
| Maze_of_Shakhrami | 9 |
| zone | item | rate |
|---|---|---|
| [[{{{zone}}}]] | {{{item}}} | Expression error: Unrecognized punctuation character "{".%
|
| [[{{{zone}}}]] | {{{item}}} | Expression error: Unrecognized punctuation character "{".%
|
| [[{{{zone}}}]] | {{{item}}} | Expression error: Unrecognized punctuation character "{".%
|
| [[{{{zone}}}]] | {{{item}}} | Expression error: Unrecognized punctuation character "{".%
|
| [[{{{zone}}}]] | {{{item}}} | Expression error: Unrecognized punctuation character "{".%
|
| [[{{{zone}}}]] | {{{item}}} | Expression error: Unrecognized punctuation character "{".% |
| Zone | Drops | Spawns |
|---|---|---|
| Qufim_Island | [[{{{item}}}]] Expression error: Unrecognized punctuation character "{".% | 13
|
| Ranguemont_Pass | [[{{{item}}}]] Expression error: Unrecognized punctuation character "{".% | 25
|
| Korroloka_Tunnel | [[{{{item}}}]] Expression error: Unrecognized punctuation character "{".% | 60
|
| Lower_Delkfutts_Tower | [[{{{item}}}]] Expression error: Unrecognized punctuation character "{".% | 27
|
| Ordelles_Caves | [[{{{item}}}]] Expression error: Unrecognized punctuation character "{".% | 19
|
| Maze_of_Shakhrami | [[{{{item}}}]] Expression error: Unrecognized punctuation character "{".% | 9 |
