Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2011, 06:45 PM
Kingmen30264
Hill Giant
 
Join Date: Sep 2006
Posts: 112
Default Removing NPCs From a Zone

Is there an easier way of removing ALL NPCS from a single zone instead of /target #npcspawn remove on each individual one?

For example, to remove ALL NPCs from Draniksscar, what command could I use in MySQL to do this? I have looked around in my DB and I don't recall seeing anything that mentions these NPCs aside from in the npc_type table, but I don't want to delete them from the DB, I just want to remove them from the zone, making it a clean "slate" and allowing me to add my own custom NPCs.

Thanks to all that answer
Reply With Quote
  #2  
Old 08-11-2011, 07:26 PM
devn00b's Avatar
devn00b
Demi-God
 
Join Date: Jan 2002
Posts: 15,658
Default

delete from spawn2 where zone='whateverzone';

not the cleanest way but its one way.
__________________
(Former)Senior EQEMu Developer
GuildWars Co-Founder / World Builder.
World Builder and Co-Founder Zek [PVP/Guild Wars/City Takeovers]
Member of the "I hate devn00b" Club
Most Senior EQEMu Member.

Current Work: EverQuest 2 Emulator. Zeklabs Server
Reply With Quote
  #3  
Old 08-11-2011, 07:37 PM
Kingmen30264
Hill Giant
 
Join Date: Sep 2006
Posts: 112
Default

heeh kk thanks
Reply With Quote
  #4  
Old 08-11-2011, 10:04 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 109
Default

or you can make chance to spawn to 0. like

Update spawnentry SET chance = 0 Where npcID >= 302000 and npcID <= 302999;

zone for dranikscar is 302 and npcid usually starts with the zoneID + (000 to 999)

That way nothing is removed from the database. just zero chance to spawn.
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 04:16 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