View Single Post
  #1  
Old 02-21-2011, 02:26 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default COMMITTED: Swam pet in "Cycle NPC" tab order

Can some one else give this a try? I've tested it and it seems to work fine with both the Mage AA pet and the bard sword (#cast 3639) from PoWater.

Code:
+++ F:/EQ SVN Folders/EQEmuServer/EQEmuServer/zone/AA.cpp	Mon Feb 21 11:43:13 2011
@@ -628,7 +628,10 @@
 			npca->GetSwarmInfo()->duration->Start(pet_duration*1000);
 		}
 
+		//removing this prevents the pet from attacking
 		npca->GetSwarmInfo()->owner_id = GetID();
+		//this sets the owner ID correctly which has the effect of removing the pets from the cycle NPC tab order
+		npca->SetOwnerID(GetID());
 
 		//give the pets somebody to "love"
 		if(targ != NULL){

Last edited by sorvani; 02-21-2011 at 02:46 PM.. Reason: wrong diff!
Reply With Quote