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

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2002, 08:50 PM
Trig
Fire Beetle
 
Join Date: May 2002
Posts: 13
Default SQL query type stuff

Ok any of you clever guys and girls out there know what sql command would bring back the following with this scenario.

eq.npc_types (ID, name) [Where ID =eq.spawnentry(NPCID)
eq.spawnentry (spawngroupID, NPCID)
eq.spawn2 (spawngroupID, Zone)

now with that information in mind (yes i realise they have other fields as well but from what i can tell those are the pertinent ones) what would the SQL command be (if possible) to return:

eq.spawn2's zone=>spawngroupid associated and displayed directly alongside the appropriate information in eq.npc_types?

Any ideas?

Trig
Reply With Quote
  #2  
Old 05-23-2002, 12:50 AM
strychn
Hill Giant
 
Join Date: Feb 2002
Posts: 129
Default

you mean like npc info per zone? i'm not sure what you are saying. if you can clarify a little, i can tell you what you want.
Reply With Quote
  #3  
Old 05-23-2002, 01:20 AM
strychn
Hill Giant
 
Join Date: Feb 2002
Posts: 129
Default

do you mean something like....

select npc_types.name, npc_types.level, spawn2.spawngroupid, spawn2.zone, spawn2.x, spawn2.y, spawn2.z
from npc_types, spawn2, spawnentry where spawn2.spawngroupid=spawnentry.spawngroupid and npc_types.id=spawngroup.npcid and spawn2.zone='qeynos'

that would return all the spawn entries for all the spawns in qeynos. you can add/remove what fields from npc_types to display.
??
Reply With Quote
  #4  
Old 05-23-2002, 08:53 AM
Trig
Fire Beetle
 
Join Date: May 2002
Posts: 13
Default

Cheers Strychn that's pretty much what I was looking for.... I'll try it tonite when i get home from work and will let you know
Reply With Quote
  #5  
Old 05-23-2002, 11:57 AM
strychn
Hill Giant
 
Join Date: Feb 2002
Posts: 129
Default

kewl. glad to be of help. need anything else let me know
Reply With Quote
Reply


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:41 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3