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.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2010, 08:53 PM
tricyclethief2
Fire Beetle
 
Join Date: Nov 2008
Location: .
Posts: 21
Default zone npcids

Is there any program or anyway to dump the npcids of all mobs in 1 specific zone? Im working on a task that requires killing 150 creatures and theres about 300ish total in zone. trying to find a fast way to add every npcid into the task goals list. Thanks
Reply With Quote
  #2  
Old 01-24-2010, 12:45 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,450
Default

Quote:
Originally Posted by tricyclethief2 View Post
Is there any program or anyway to dump the npcids of all mobs in 1 specific zone? Im working on a task that requires killing 150 creatures and theres about 300ish total in zone. trying to find a fast way to add every npcid into the task goals list. Thanks
Code:
SELECT DISTINCT `npc_types`.`id` FROM `npc_types` INNER JOIN `spawnentry` ON `npc_types`.`id` = `spawnentry`.`npcID` INNER JOIN `spawn2` ON `spawnentry`.`spawngroupID` = `spawn2`.`spawngroupID` INNER JOIN `zone` ON `spawn2`.`zone` = `zone`.`short_name` WHERE `zone`.`zoneidnumber` = 1;
This will dump all NPCs for South Qeynos.

You could also do it with short_name instead of ID, but be careful when you do to not use like, use equals. (In the case of qeynos, there is qeynos and qeynos2, just using like 'qeynos' will result in both zones.)
Reply With Quote
  #3  
Old 01-24-2010, 02:49 PM
tricyclethief2
Fire Beetle
 
Join Date: Nov 2008
Location: .
Posts: 21
Default

Thanks secrets thats awesome
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 09:56 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