View Single Post
  #3  
Old 04-02-2003, 06:02 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

Hmm didnt notice this post before, but if your still looking for help:

1. Setup the faction in the npc_faction table. The name and id can be whatever you want, but keep the id under 50000 (also its autoincrement, so I suggest you start with 1). The primary faction is the primaryfaction you want to check when a player cons the npc.

2. Setup the list of factions associated with your npc_faction_id you just made. The table name is npc_faction_entries. The format is:npc_faction_id (the id from npc_faction you just created), the faction you want to change when the npc is killed (using the faction_list table), and value you want to increase or decrease when the npc is killed.

3. Set the npc_factiond_id in the npc_types table to the faction id you created in step 1.


EXAMPLE:

You want to create a faction for CB orcs:
Step 1:

Insert into npc_faction values(1,"CB ORCS",faction id for CB orcs here);

insert into npc_faction_entries values(1,faction id for CB orcs here,-1);
insert into npc_faction_entries values(1,faction id for indigo brotherhood,-1);
insert into npc_faction_entries values(1,faction id for storm guard here,1);
and the other 2, cant remember which :P

then, using the db, locate a npc you want to set on the faction and:

update npc_types set npc_faction_id=1 where id=(orc npc id here);

Disclaimer: Hope you understood my ramblings, and im at work right now so I cant get the actual faction ids and I might be off a little on the table columns as Im going from memory here... :P
__________________
Lethal Encounter
Reply With Quote