I am only posting this because.. I went to IRC and begged for help on this.. and noone would even try to help, and I had asked many times for a tutorial but everyone was to busy.. So.. I just figured it out myself.. as I am doing with the rest of this stuff.. So I am hoping unlike so many others this will help some people who dont know how to do it...
Ok First step..
Create a good side Mob.. and Bad side mob
for this example lets create Qeynos Guards
and Blackburrow Gnolls
(keep in mind.. this is a blank faction table and npc_type table as well)
ok lets goto the faction_list table
ok mine is blank.. so lets create a new entry
BTW i use mysql front.. its just easier to do this in
so I am going to create a entry for my Qeynos Guards
that will 1 Entry
in the name entry .. i will put Qeynos Guards.. notice i did not put a "_" there..
the next field is the Base field.. lets make the guards like us a little bit but have the players earn some faction.. so lets make it 100
Well thats it for that table.. dont worry about the other entrys because they have to deal with race class and deities.. we dont wanna get sophisticated right now...
ok lets just do the same thing with the blackburrow gnolls..
but make it ENTRY 2 and Base of -1000
why -1000? well they will attack you on sight thats why.. they will hate your guts...
ok were finished with faction_list table.. lets move on
NPC_Faction Table
here we are just going to make 2 table entries
first one.. well put
1 Blackburrow_gnolls and next field put 1
2 Qeynos_guards 2
those are the two entries in this table..
lets move on
NPC_FACTION_ENTRIES
ok here we will define who it will effect if we kill gnolls or qeynos guards
so lets make an entry here
npc_faction_id = 1
Faction_id= 1
faction_value= -100 /// this value tells how much we lose if we kill a guard
ok lets make the gnolls.. this is important part of it
npc_faction_id=2 // gnolls faction id
npc_id= 1// This is the guards Faction means if we kill gnolls we get a good faction with them
npc_value= 100 /// how much faction we get with guards
ok now we still gotta add the gnolls faction when we kill them
npc_faction_id=2
npc_id=2
npc_value=-100
ok thats it..
now when you go in game..
a few things will happen
your guards will like you.. the gnolls will attack you on sight.. and if a guard sees a gnoll it will attack on sight as well..
one more important thing you must do
go into npc_types go under faction_id..
goto qeynos guards.. assign them 1
goto blackburrow gnolls or gnolls and assign them to 2
the only other table i didnt mention was faction_values table
dont mess with this.. this is players faction they already have... it calculates what faction they do have with who..
also another thing we need to mention...
remember above that i mention not to put that "_"
that is because when you kill a mob it wont say..
you gained faction with Blackburrow_gnolls .. it will say this instead
you gained faction with Blackburrow Gnolls..
ok i think i explained this correctly..
if you have any problems what so ever
please email me at
sandy@vektorlabs.com
I will be happy to answer any questions that ANYONE may have..