Thread: Faction levels
View Single Post
  #5  
Old 04-17-2004, 05:23 PM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

RangerDown answered this question for me in irc chat. For anyone else who is wondering, like me, this is how you give "invisible" faction to mobs that don't return faction hits, like lions, spiders, hill giants etc...

1. Create a record in faction_list and note the "id" field.

2. Note the npc_faction_id field from the npc_types table.

3. Create a record in the npc_faction table. Set the "id" field in this table = npc_types.npc_faction_id and "primaryfaction" = faction_list.id. Set "name" to whatever you'd like to name this faction. Name only matters for admin purposes, but best to enter in something that will still make sense to you months later.

4. Set the base faction for your mob in the faction_list table under the "base" field.

Later on, I might document the relationships between the 4 tables in the DB that affect faction and post it so we all have something for easy future reference.
Reply With Quote