Log in

View Full Version : Faction Question


PrinceVegeta
03-10-2007, 05:32 PM
Ok, on my server I have played with the different factions, but I haven't found a way to make them aggro and fight each other. I've spawned both Innoruuk and Tunare and make them (via PEQ's Web tool) hate each other faction (aggressive and -1500). But they just seem to stand there.

Is there an easy way to edit the faction and make them attack each other and have similar to an open war? I want to turn zones like the Nexus and Shadowhaven into a major warzone with NPC vs. NPC battles going left and right.

PrinceVegeta
03-10-2007, 10:11 PM
If no one can help with that I have another question. I see how the Freeport Militia faction and the Deathfist Orc factions are setup (copying the faction into the hits table doesn't seem to work). Can anyone point out in the database tables where (if it exists) a faction can be made auto kos to another.

I have spent a few hours looking over the database and I don't see anything were it could be set. If anyone could give an example (I have searched and looked through the 10+ pages and the only example I found, I really didn't understand) or maybe point me in the way of a tool that might make this easier, I would be very thankful.

Kayot
03-11-2007, 06:03 AM
This may help --

faction_id

1 = Faction Loss
0 = Faction Gain
-1 = Attacks Faction on sight

I'm still adding this to my program, but the general idea is to set it to -1 in the npc_value column for the monster to attack monsters of the listed faction. 0 to gain faction for killing this mob, and 1 to lose faction in the listed faction for killing this mob. So killing Guard Brookrock in Kelething is like so:

63 - Crushbone Orcs -1 < Attacks Orcs on sight
92 - Emerald Warriors 1 < Lose facting with Emerald Warriors for this guards death
155 - Indigo Brotherhood 0 < Gain faction with Indigo Brotherhood for this guards death.

Hope that helps ^-^

cavedude
03-11-2007, 06:26 AM
Under npc_types npc_aggro has to be set to 1 for a mob to aggro other mobs.

WARNING: DO NOT set npc_aggro for all mobs, it is heavily CPU intensive. Currently, only guard and special quest mobs use this on PEQ for that reason.

And actually, it is the value column of npc_faction_entries that specifies the faction hit or gain. The npc_value specifies whether a mob will ignore (0), assist (1), or be agressive towards (-1) a mob on that opposing faction. This column works separately of value in that you could set value to 0 (no faction loss) and npc_value to -1 to force the mob to be aggressive anyway. This is how guards work. All noob critters have a faction, but since the hit is 0 the player never knows about it. Likewise, npc_value could be used to make a hostile or ally mob (based on faction loss/gain) act neutral.

Kayot
03-11-2007, 07:33 AM
It'd be fun role play wise to make a faction hit for the critters,

wolf #8867545 "You killed bear #118765, he was my friend... Prepair to die!"

Player "Holy $hit a talking wolf!!!"

Anyway, I was atleast on the dart board ^-^

cavedude
03-11-2007, 07:42 AM
LOL. Way back when before this system was put into place critters did have visible faction to get guards working. It was certainly funny. I could imagine the beetles in Misty posting a wanted sign of your toon back at the animal guild so all critters everywhere would know you are KOS.

Faction is probably the most complicated part of the database, There are also a few bugs with it which just adds some more confusion. If you have any questions about it for your editor, just let me know and I'll help if I can.

PrinceVegeta
03-11-2007, 11:13 AM
Ok, let me ask this. If I took existing factions who hate each other (Like the Wood Elf Guards) and the Crushbone Orcs and put my new NPCs on that faction, they would technially attack each other correct?

Cavedude, is it CPU heavy if you change it in the database? What if I was to do like the faction idea above, would that work without heavy CPU loading?

What I am trying to do basically is to make 3 factions. 2 factions work together, the 3rd is against the other two. I guess for now I can use the FPM and the DFO factions to do things. Does anyone know a 3rd faction that would work? Or would doing something like the Velious type factions work? Cause CoV and Coldian share hate for the Giants, but from what I can tell they don't assist each other.

cavedude
03-11-2007, 11:31 AM
If only the mobs that you want to attack each other have npc_aggro set to 1, then you will be fine. It's when you set all or most of the zone's mobs when you get heavy cpu usage.

Why not create your own factions? The wiki will help you out:
http://www.eqemulator.net/wiki/wikka.php?wakka=FactionTables

PrinceVegeta
03-11-2007, 01:39 PM
Thank you Cavedude, that helped alot. Now I hate to keep asking stupid questions, but let me ask you this.

This is the faction listing for one of my NPCs

NPC Faction ID: 19821
"Fanti Soldiers"

Primary Faction:
Fanti Soldiers

Faction Hits:
Phoenix Soldiers -1 Aggressive
Norrath Soldiers 1 Assist

With that, that should mean any NPC with this type of Faction should attack Phoenix faction and assist Norrath Faction correct? I added the information by hand into the DB, but then used PEQ to add the NPC along with putting them on the faction, that shouldn't break anything correct?

I understand the -1/1 is how much faction is lost/gained. If a NPC kills another NPC does the faction effect all the NPCs on that faction or just the NPC that made the kill. Again thanks for the link, I am studying it and the database, so I can understand them better.