Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 08-08-2009, 10:07 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Committed in Rev 903.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:18 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3