Template:GetMobDrops: Difference between revisions
imported>Starfox9507 No edit summary |
imported>.mythicangel No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude> |
<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}}} |
|||
| ⚫ | |||
| ⚫ | |||
<!-- |
|||
| ⚫ | |||
{{#get_db_data:db = droprates |
{{#get_db_data:db = droprates |
||
| parameters={{{mob name|{{PAGENAMEE}}}}} |
| parameters={{{mob name|{{PAGENAMEE}}}}} |
||
| Line 8: | Line 20: | ||
{{!}}- |
{{!}}- |
||
{{!}} [[{{{zone}}}]] {{!}}{{!}} {{{item}}} {{!}}{{!}} {{#expr:{{{rate}}} / 10}}% |
{{!}} [[{{{zone}}}]] {{!}}{{!}} {{{item}}} {{!}}{{!}} {{#expr:{{{rate}}} / 10}}% |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
<!--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 |
{{#get_db_data:db = spawncount |
||
| parameters={{{mob name|{{PAGENAMEE}}}}} |
| parameters={{{mob name|{{PAGENAMEE}}}}} |
||
| data= |
| data= count=mobcount, zoneSpawn=zonename |
||
}} |
|||
{{#get_db_data:db = droprates |
|||
| parameters={{{mob name|{{PAGENAMEE}}}}} |
|||
| data=zoneDrop=zoneName,item=itemName,rate=itemRate |
|||
}}<!-- |
}}<!-- |
||
-->{| class=" |
-->{| 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 |}