PDA

View Full Version : Fix to pet owner faction


demonstar55
08-08-2009, 03:23 PM
Pets are suppose to con amiable to their owners and indifferent to others

Index: EQEmuServer/zone/faction.cpp
================================================== =================
--- EQEmuServer/zone/faction.cpp (revision 899)
+++ EQEmuServer/zone/faction.cpp (working copy)
@@ -445,8 +445,11 @@
return FACTION_INDIFFERENT;
if (IsInvisible(tnpc))
return FACTION_INDIFFERENT;
- if (tnpc && tnpc->GetOwnerID() != 0) // neotokyo: pets always con indiff
- return FACTION_INDIFFERENT;
+ if (tnpc && tnpc->GetOwnerID() != 0) // pets con amiably to owner and indiff to rest
+ if (char_id == tnpc->GetOwner()->CastToClient()->CharacterID())
+ return FACTION_AMIABLE;
+ else
+ return FACTION_INDIFFERENT;

//First get the NPC's Primary faction
if(pFaction > 0)

Info on the Worker Sledgemallet provides enough evidence this is true

cavedude
08-08-2009, 10:07 PM
Committed in Rev 903.