Log in

View Full Version : Help with Faction


jdam7459
04-12-2008, 08:56 PM
I have been having a faction problem with my tutorial guards.

Here's the database values...

peq.faction_list


Name: Guards / Base: 250
Name: Mobs / Base: -1000


peq.npc_faction


Name: Guards / Primaryfaction: 483 / Ignore: 0
Name: Mobs / Primaryfaction: 484 / Ignore: 0


peq.npc_faction_entries


Npc_faction_id: 20000 / Faction_id: 483 / Value: -1000 / Npc_Value: 1
Npc_faction_id: 20000 / Faction_id: 483 / Value: 100 / Npc_Value: -1
Npc_faction_id: 20001 / Faction_id: 484 / Value: 10 / Npc_Value: -1
Npc_faction_id: 20001 / Faction_id: 484 / Value: -10 / Npc_Value: 1


Any information would be better than what I have and greatly appreciated!

ChaosSlayer
04-12-2008, 09:51 PM
this:
Npc_faction_id: 20000 / Faction_id: 483 / Value: -1000 / Npc_Value: 1
Npc_faction_id: 20000 / Faction_id: 483 / Value: 100 / Npc_Value: -1

and this

Npc_faction_id: 20001 / Faction_id: 484 / Value: 10 / Npc_Value: -1
Npc_faction_id: 20001 / Faction_id: 484 / Value: -10 / Npc_Value: 1

dose not make any sence.

first you telling the server to:
faction 20000(primary 483) to assist each other and you loose 1k points to killing them
then you telling the server that faction 20000 kos to itself and you get 100 points for killing them.


same for 200001


what you should have is this:

Npc_faction_id: 20000 / Faction_id: 483 / Value: -1000 / Npc_Value: 1
Npc_faction_id: 20000 / Faction_id: 484 / Value: 100 / Npc_Value: -1

Npc_faction_id: 20001 / Faction_id: 484 / Value: -10 / Npc_Value: 1
Npc_faction_id: 20001 / Faction_id: 483 / Value: 10 / Npc_Value: -1

jdam7459
04-13-2008, 03:16 PM
No dice...

Guards still not attacking the mobs when they get close...

Using information from your last post...

Anything else it could possibly be?

ChaosSlayer
04-13-2008, 03:27 PM
do guards npc have npc_aggro value set to 1 in npc_types table?

ChaosSlayer
04-13-2008, 03:33 PM
and I assume that here

Name: Guards / Primaryfaction: 483 / Ignore: 0
Name: Mobs / Primaryfaction: 484 / Ignore: 0


20000 corespands to Guards
and 20001 to Mobs

jdam7459
04-13-2008, 03:36 PM
lemme check chaos...

will get back to ya...

jdam7459
04-13-2008, 03:38 PM
Guards are set to 1
Mobs to 0 for some reason, both aggro radii are 20

ChaosSlayer
04-13-2008, 04:01 PM
hmm 20 could be a bit low, but puting guard and mob face to face should work.

do any of the old opposing factions guard to mob attack work?
given you downloaded default PEQ db

jdam7459
04-13-2008, 04:03 PM
Found reason...faction is loaded with buy server reset (/bonks self)

Thanks Chaos

And btw if you know how to make weapons show on npcs (Guard's weapons, shields, etc...)

I could use that info too

Thanks again!

ChaosSlayer
04-13-2008, 04:15 PM
weapon show- assuming you running build 1090+, then

a) specific guard needs to have that weapon as part of his loot
b) in a collumn when it asked if item should be equiped, you must put 1/yes