Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Tutorials/Howto's

Archive::Tutorials/Howto's Archive area for Tutorials/Howto's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:01 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3