EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=596)
-   -   How do you edit factions so that Npcs will attack each other. I want to create a war. (https://www.eqemulator.org/forums/showthread.php?t=23348)

endra 07-31-2007 09:54 AM

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.

John Adams 07-31-2007 10:55 AM

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.

endra 07-31-2007 11:32 AM

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.

moydock 07-31-2007 12:19 PM

Quote:

Originally Posted by endra (Post 136166)
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.

John Adams 07-31-2007 02:51 PM

Quote:

Originally Posted by endra (Post 136166)
Why didn't you just answer? Or don't you know yourself?

Nope, I don't know myself.

endra 07-31-2007 03:07 PM

Lolz
 
Well now you do =). All you would have to do is look at the columns in navicat

John Adams 07-31-2007 03:09 PM

Really? Wow it's that easy? Thanks!

gernblan 08-11-2007 01:42 AM

LOL. Love it.


All times are GMT -4. The time now is 08:42 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.