Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2011, 09:51 PM
Shamanistik08
Sarnak
 
Join Date: Apr 2011
Posts: 47
Default NPC faction half working.

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
Reply With Quote
  #2  
Old 04-21-2011, 10:19 PM
Jaekob
Sarnak
 
Join Date: May 2010
Posts: 39
Default

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...emafactionlist

I assume since you are seeing faction hits you have already adjusted the npc_faction_entires table.
Reply With Quote
  #3  
Old 04-21-2011, 10:21 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,743
Default

Make sure #gm isn't on.
Reply With Quote
  #4  
Old 04-21-2011, 11:46 PM
Shamanistik08
Sarnak
 
Join Date: Apr 2011
Posts: 47
Default

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??
Reply With Quote
  #5  
Old 04-22-2011, 02:19 AM
Bamzal
Sarnak
 
Join Date: Nov 2002
Posts: 31
Default

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.
Reply With Quote
  #6  
Old 04-22-2011, 03:33 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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...DatabaseSchema

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...emafactionlist

NPC Faction
http://www.eqemulator.net/wiki/wikka...hemanpcfaction

NPC Faction Entries
http://www.eqemulator.net/wiki/wikka...factionentries
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #7  
Old 04-22-2011, 03:40 AM
Shamanistik08
Sarnak
 
Join Date: Apr 2011
Posts: 47
Default

Quote:
Originally Posted by Bamzal View Post
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.

Quote:
Originally Posted by trevius View Post
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...DatabaseSchema

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...emafactionlist

NPC Faction
http://www.eqemulator.net/wiki/wikka...hemanpcfaction

NPC Faction Entries
http://www.eqemulator.net/wiki/wikka...factionentries
Done that 3 times already. Still don't work. like I said. npc_faction is not explained.. name of the mob? don't work.
Reply With Quote
  #8  
Old 04-22-2011, 03:49 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Name in that table is just there as a note, it isn't actually used.

Code:
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.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #9  
Old 04-22-2011, 05:44 AM
Shamanistik08
Sarnak
 
Join Date: Apr 2011
Posts: 47
Default

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
Reply With Quote
Reply


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 04:47 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3