EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Fix to pet owner faction (https://www.eqemulator.org/forums/showthread.php?t=29174)

demonstar55 08-08-2009 03:23 PM

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

cavedude 08-08-2009 10:07 PM

Committed in Rev 903.


All times are GMT -4. The time now is 08:12 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.