The current faction code given does not take into account the character's choice of deity. I'm not sure why but in embparser.cpp its just using agnostic.
Code:
fac = client->GetFactionLevel(client->CharacterID(), npcmob->GetID(), client->GetRace(), client->GetClass(), DEITY_AGNOSTIC, npc->GetPrimaryFaction(), npcmob);
could be
Code:
fac = client->GetFactionLevel(client->CharacterID(), npcmob->GetID(), client->GetRace(), client->GetClass(), client->GetDeity(), npc->GetPrimaryFaction(), npcmob);
I ran into this issue when trying to write a quest where the NPC's primary faction is base -600 with +1000 for a certain deity. In the game the NPC cons correctly but the perl script always gives dubious.
-Nachyoz