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 03-18-2006, 10:26 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

First, let me nitpick a little and tell you to call your last entry "scowling" as it should be. Threatening is also KOS, and you imply that it isn't when you do it the way you did.

The "npc_value" field now determines how an npc will act when near another npc of a certain faction. "value" only indicates the amount of faction the player will gain or lose after killing the npc. value used to dictate npc-to-npc behavior as well, but there are too many situations where npc reactions to certain factions differ from faction hits, so we add the npc_value field.

If the npc_value field is:
positive (>0): the npc will assist other npc's of this faction when they are attacked
0: Neutral
negative (<0): The npc will attack other npc's of this faction

Note that the npc_aggro should also be set to non-zero in the npc's entry in the npc_types table for npc-to-npc aggro to work. (NPC assisting will still work even if npc_aggro = 0) However, I don't recommend blindly turning on npc_aggro across the board -- do it only on npc's you really want to aggro other npc's, else you will experience big-time performance issues.
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
Reply With Quote
  #2  
Old 03-18-2006, 11:24 AM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

Thanks for the info.

I understand what you illustrated about how the "value" column is how much faction is gained/lost by a player for killing a mob and how if "npc_value" column is greater than 0, the NPC will assist and if it is less than zero, then the NPC will attack.

But how does that relate to the faction category table I listed above? On that table, values greater than zero would be "Indifferent" thru "Ally", while negative values would be "Apprehensive" thru "Scowling". As you stated, only "Threatenly" and "Scowling" are K.O.S.

Does the value of npc_value relate to the faction categories table in any way? If so, that is what I don't understand at the moment.
Reply With Quote
  #3  
Old 03-18-2006, 11:09 PM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

The npc_value field handles only npc-to-npc interaction. For player interaction, the npc's primary faction should correspond to an ID from the faction_list table, and it's in that faction_list record that the npc's behavior toward players is dictated. It's a combination of the "base" value, then the class, race, and deity-specific modifier fields. The effective faction can be modified by faction hits players have incurred as well, which is stored in the faction_values table.
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
Reply With Quote
  #4  
Old 03-19-2006, 03:19 AM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

Got it. Thanks for clearing that up for me.
Reply With Quote
Reply

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 12:15 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