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 07-31-2007, 09:54 AM
endra
Sarnak
 
Join Date: Jul 2007
Posts: 30
Default How do you edit factions so that Npcs will attack each other. I want to create a war.

I want to erase the overthere, and put two bases, one on each side of the map, and several camps. I know how to get the npcs to patrol and such and I know to set the npc_aggro flag to 1 but how/what entries in the faction table to I edit to get an npc to be KOS to another npc? The wikki isn't completed yet so I cant look there, but did a search for it. Any help would be appreciated.
Reply With Quote
  #2  
Old 07-31-2007, 10:55 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Click the little arrow next to "Search" in the menu above, and enter "opposing faction" and search. There's a few posts that might help.

But basically, you have to make the mobs "hate" each other. While a simple task, it can take some time to set up.
Reply With Quote
  #3  
Old 07-31-2007, 11:32 AM
endra
Sarnak
 
Join Date: Jul 2007
Posts: 30
Default Not a title

I did your search and read through the one five page result I got and nothing. Why didn't you just answer? Or don't you know yourself? I dont understand most of the fields in the faction tables, thats why i cant get npcs to hate each other. I need to know what fields I need to edit and to which values to get the npcs to hate each other.
Reply With Quote
  #4  
Old 07-31-2007, 12:19 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

Quote:
Originally Posted by endra View Post
I did your search and read through the one five page result I got and nothing. Why didn't you just answer? Or don't you know yourself? I dont understand most of the fields in the faction tables, thats why i cant get npcs to hate each other. I need to know what fields I need to edit and to which values to get the npcs to hate each other.
You need to work with 3 tables:
faction_list
npc_faction
npc_faction_entries

faction_list you should be able to figure out. You just create a faction and set a starting players initial faction with them.
npc_faction you just create a faction id, name it and point it at the faction you made in faction_list.

npc_faction_entries can get tricky. Here you enter the faction you made in npc_faction. In the next column you enter the id from faction_list you want it to attack (tricky part, this means any factions from npc_faction that is assigned to this faction from faction_list will be attacked by the first column). Then you leave value at "0". And for npc_value you put -1, which tells it that the entry is aggresive, 1 would mean they will assist that faction.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #5  
Old 07-31-2007, 02:51 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Quote:
Originally Posted by endra View Post
Why didn't you just answer? Or don't you know yourself?
Nope, I don't know myself.
Reply With Quote
  #6  
Old 07-31-2007, 03:07 PM
endra
Sarnak
 
Join Date: Jul 2007
Posts: 30
Default Lolz

Well now you do =). All you would have to do is look at the columns in navicat
Reply With Quote
  #7  
Old 07-31-2007, 03:09 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Really? Wow it's that easy? Thanks!
Reply With Quote
  #8  
Old 08-11-2007, 01:42 AM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

LOL. Love it.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
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 01:02 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