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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 02:47 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3