Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-02-2017, 06:14 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default Global Item Drop Queries

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
__________________
Uleat of Bertoxxulous

Compilin' Dirty

Last edited by Uleat; 03-02-2017 at 11:36 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:32 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3