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
  #3  
Old 10-06-2008, 05:55 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Here's a quick way (for PEQ database);
KOS no assist
Code:
UPDATE npc_types SET npc_faction_id=19471 WHERE (ID>=215000 AND ID<=215999);
or KOS with assist;
Code:
UPDATE npc_types SET npc_faction_id=19472 WHERE (ID>=215000 AND ID<=215999);
This will set KOS to every NPC in Plane of Air.
Here's how I did that;

the faction IDs are both KOS factions, one the mobs will assist on a long pull the other no. Since 215 is the zone number for PoAir , 215000-215999 are reserved for PoAir NPCs only. Look up the zone numbers for the other zones you want to set, and use the above as a template (replace the '215').

This is the quickest way, but it has draw backs- there are in invisible NPCs in PoAir that do not require KOS. Also , there could be other NPCs that may need to be indiff.
I look for bodytype or race AFTER I run the above querys;

Code:
UPDATE npc_types SET npc_faction_id=0 WHERE (ID>=215000 AND ID<=215999) AND race=127;
127 is invisible NPCs in the zone, not intended to be beating on you out of nowhere

Lets say you had merchants in the zone, so merchant class id number is 41;
Code:
UPDATE npc_types SET npc_faction_id=0 WHERE (ID>=215000 AND ID<=215999) AND class=41;
Eventually, after you've run these querys (make sure you restart the server for changes to take effect), You will have to go into the zone and make sure you didn't leave any stray unwanted KOS-converted mobs.

With this same example, you can quickly set up regular factions to whole zones. after you've made one for one NPC, you get the number and apply it with the querys above.

Last edited by Angelox; 10-07-2008 at 03:25 AM..
Reply With Quote
 

Thread Tools
Display Modes

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 07:42 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