Template:GetMobDrops: Difference between revisions

From Horizon Wiki Mirror
Content deleted Content added
imported>Starfox9507
No edit summary
imported>.mythicangel
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="horizon-table droppedby table-sm center-col-3"
-->{| 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
}}
}}
{{#get_db_data:db = droprates
|}</onlyinclude></includeonly>
| 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}}


Error: Incomplete information for this database ID spawncount (type).
Error: Incomplete information for this database ID spawncount (user/user file).
Error: Incomplete information for this database ID spawncount (name).
Error: Incomplete information for this database ID spawncount (server).
Error: No "from / join on" parameter specified.
{| class="wikitable" ! zonename !! mobcount |}
Error: Incomplete information for this database ID droprates (type).
Error: Incomplete information for this database ID droprates (user/user file).
Error: Incomplete information for this database ID droprates (name).
Error: Incomplete information for this database ID droprates (server).
Error: No "from / join on" parameter specified.
{| class="wikitable" ! zone !! item !! rate |} Error: Incomplete information for this database ID spawncount (type).
Error: Incomplete information for this database ID spawncount (user/user file).
Error: Incomplete information for this database ID spawncount (name).
Error: Incomplete information for this database ID spawncount (server).
Error: No "from / join on" parameter specified.
Error: Incomplete information for this database ID droprates (type).
Error: Incomplete information for this database ID droprates (user/user file).
Error: Incomplete information for this database ID droprates (name).
Error: Incomplete information for this database ID droprates (server).
Error: No "from / join on" parameter specified.
{| class="mobs horizon-table table-xl" ! Zone !! Drops !! Spawns |}