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 |
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. |
Make sure #gm isn't on.
|
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?? |
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. |
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 |
Quote:
Quote:
|
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. 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. |
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 |
All times are GMT -4. The time now is 01:49 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.