View Single Post
  #1  
Old 08-08-2009, 03:23 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default Fix to pet owner faction

Pets are suppose to con amiable to their owners and indifferent to others

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