View Single Post
  #2  
Old 09-08-2007, 06:02 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

Here we go...

Code:
	if(tmp->GetOwnerID() != GetID()) {
		SetPetID(0);
		// WE NEED TO KILL THE PET HERE!!!!!
		return(NULL);
	}
I'm assuming adding a kill code here in pets.cpp will get the job done?

Would this work for instance?

Code:
	if(tmp->GetOwnerID() != GetID()) {
		SetPetID(0);
        // Attempting to remove shadow pet.
		depop();
		return(NULL);
	}
Not sure that depop() is registered in any global functions or not =S

Last edited by Breea; 09-09-2007 at 02:07 AM..
Reply With Quote