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
  #2  
Old 12-30-2010, 01:45 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 198
Default

It's more complicated than just the one table.

`faction_list` is the general faction table, in which faction interactions are referenced.

examples:
AgentsofMistmoore
Agnarr
..etc

Each of the factions listed in `faction_list` also have modifiers for each class/race/diety. This isn't easily readable unless you use an editor.



So what that indicates is -1500 base to all. If 0 is indifferent, 1100 is ally, and -1100 is scowls, this is very kos.

Now, AgentsofMistmoore can be considered primary faction #1. It is in my faction_list table, at least.

Next is the `npc_faction` table.

This table contains entries from `npc_faction_entries`. It has fields id, name, primaryfaction, ignore_primary_assist

From the example earlier, I'll use 19471 (general kos).



Sooo... this lists 366 as primaryfaction. primaryfaction is from the faction_list table. 366, for me, is :



So, for your purposes, 19471 at this point would suit your needs. 19471 should be entered in the npc_faction_id field of your `npc_types` table. This is for npcs that will be spawning in whatever zone you're wishing to be KOS. Additionally, the ignore_primary_assist field in `npc_faction` table can be set to 0 or 1. 1 meaning it will not assist npcs that share the same primary faction.

I was going to do more of a tutorial, but I ran out of time. Hope that helps you.
__________________
https://www.project1999.com
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 12:01 AM.


 

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