Ever wonder where to hunt for particular pieces of gear?
These two queries help sort locations and mob types for drop locations of global loot:
Query 1
Code:
select zone from spawn2 where spawngroupID
in (select spawngroupID from spawnentry where npcID
in (select id from npc_types where loottable_id
in (select loottable_id from loottable_entries where lootdrop_id
in (select lootdrop_id from lootdrop_entries where item_id
in (select id from items where id = '50095'
)))))
group by zone
order by zone;
Query 2
Code:
select name from npc_types where loottable_id
in (select loottable_id from loottable_entries where lootdrop_id
in (select lootdrop_id from lootdrop_entries where item_id
in (select id from items where id = '50095'
)))
and id
in (select npcID from spawnentry where spawngroupID
in (select spawngroupID from spawn2 where zone = 'citymist'
))
group by name
order by name;
To use, run
Query 1 to find a list of zone 'short' names. Then, enter the desired name into the search criteria of
Query 2.
The queries can be tailored to look for any item..you just need to adjust the 'items' sub-query to do so.
The 'items' search criteria for both queries need to match or you will not receive accurate results.
Query 2 groups like-named mobs together..so, you may need to remove that clause and add 'id' to the select criteria if
you believe that not all mobs with that name have this item in their global loot drop table.
These queries can probably be handled a lot better..but, they worked for what I needed at the time.
Note: The more complex the item query is, the longer it will take to finish - especially the zone search one.
Example results:
Code:
broodlands
burningwood
charasis
citymist
cobaltscar
corathus
crystal
dawnshroud
dreadlands
dulak
eastwastes
echo
emeraldjungle
Everfrost
firiona
frontiermtns
frozenshadow
fungusgrove
greatdivide
grimling
gukbottom
gunthak
hole
iceclad
jaggedpine
kael
karnor
katta
kedge
kithicor
lakeofillomen
letalis
lfaydark
mesa
mistmoore
moors
nadox
northkarana
northro
nurga
oceanoftears
overthere
permafrost
pojustice
rathemtn
scarlet
sebilis
shadeweaver
skyfire
skyshrine
soldunga
soldungb
southro
stonehive
tenebrous
thulehouse2
timorous
torgiran
trakanon
twilight
wakening
Code:
an_aberrant
an_apparition
a_berserk_fiend
a_fog_golem
a_haze_golem
a_lost_one
a_rambling_fanatic
a_raving_lunatic
a_savage_mutant
a_shadow
a_vapor_golem
greater_spurbone
gyrating_goo
plaguebone_skeleton