View Single Post
  #3  
Old 09-19-2009, 02:40 AM
Nachyoz
Fire Beetle
 
Join Date: May 2009
Location: Earth
Posts: 1
Default

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