Log in

View Full Version : NPC faction half working.


Shamanistik08
04-21-2011, 09:51 PM
Hi there,

Ok I checked wiki and all. and I decided to create a new faction.
It works when I kill monsters, the faction grow up.
It works when I kill allies, the faction go down.
But when I consider the NPC, it's always indifferent. I restart server after each tries, do nothing.
I suppose it's in NPC_faction table. so I created an entry
1088 | NPCname | 0

Anyone can enlight me please?

Thanks in advance

Jaekob
04-21-2011, 10:19 PM
You will also need to add the faction to the faction_list table.

Check out this wiki link for details.
http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemafactionlist

I assume since you are seeing faction hits you have already adjusted the npc_faction_entires table.

lerxst2112
04-21-2011, 10:21 PM
Make sure #gm isn't on.

Shamanistik08
04-21-2011, 11:46 PM
The KOS factions scowl even with GM on, they just don't attack. but for this damn 494 faction it don't work : /

Anyone could post how to create an entire faction that works from A to Z? to check what I did wrong?

I still don't get what is the npc_faction table.. only show name of a mob and a faction with a value.. 3 fields.. shouldn't it get at least the mob ID reference??

Bamzal
04-22-2011, 02:19 AM
The npc_faction table consists of:

•id: A unique number for each entry in this table
•name: The name of the mob probably
•primaryfaction: The primary faction for the mob (id of the faction from the faction_list table)

I am pretty sure that you need to set the mob's primary faction to your newly created faction, using this table.

trevius
04-22-2011, 03:33 AM
You can find pretty much all you need in the wiki here:

DB Schema List - Has links to pages for many of the tables
http://www.eqemulator.net/wiki/wikka.php?wakka=CategoryDatabaseSchema

Below are the 3 tables you need to add entries to for making factions. The info in them should be enough to explain how it works. If you still don't understand, you can look at existing examples that are in these tables and how they were setup.

Faction Lists
http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemafactionlist

NPC Faction
http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemanpcfaction

NPC Faction Entries
http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemanpcfactionentries

Shamanistik08
04-22-2011, 03:40 AM
The npc_faction table consists of:

•id: A unique number for each entry in this table
•name: The name of the mob probably
•primaryfaction: The primary faction for the mob (id of the faction from the faction_list table)

I am pretty sure that you need to set the mob's primary faction to your newly created faction, using this table.

Aye, name of the mob probably.. only show 1 mob per faction, why.. is it a reference, any can do it? I done this already, unique number, name of the mob, faction from faction list. didn't work.

You can find pretty much all you need in the wiki here:

DB Schema List - Has links to pages for many of the tables
http://www.eqemulator.net/wiki/wikka.php?wakka=CategoryDatabaseSchema

Below are the 3 tables you need to add entries to for making factions. The info in them should be enough to explain how it works. If you still don't understand, you can look at existing examples that are in these tables and how they were setup.

Faction Lists
http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemafactionlist

NPC Faction
http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemanpcfaction

NPC Faction Entries
http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemanpcfactionentries

Done that 3 times already. Still don't work. like I said. npc_faction is not explained.. name of the mob? don't work.

trevius
04-22-2011, 03:49 AM
Name in that table is just there as a note, it isn't actually used.

primaryfaction: id into the faction_list table specifing the primary faction this creature react to.

That is the important note. You use the ID you created in the faction_list table.

Maybe if you post examples of what you are entering in each field of these 3 tables, we could correct you easier. Also, for faction changes to take affect, you have to reboot the server.

BTW, seeing indiff con is normal unless you make enough kills to change from indiff. It depends on what you set base to in the faction_list table:

base: The base starting point for this faction entry.

If you left that at default, you will con indiff until you make enough hits to change the faction con.

Shamanistik08
04-22-2011, 05:44 AM
Ok, just tried with a brand new one.

I open faction_list, add an entry :

ID: 494
Name: aaa
Base : -701 (should be dubious)
All the rest is set to 0

I open npc_faction and add :
ID: 1088
name: aaa
Primaryfaction : 494
Ignore_primary assist: 0

I open npc_faction_entries and add:
npc_faction_id: 1088


.. ok I stop the post.. on this one it worked.. guess I am stupid or my faction_values was messed up..

Really sorry for the time you lost ;( well at least I know what name is in the table.. thanks a lot for your time