[Fix] Pet Crash Server

05/15/2016 19:12 ZeroTwo02#1
Mover.cpp

Function "CMover::ProcessPetEnergy"

Before
Code:
g_dpDBClient.CalluspPetLog( m_idPlayer, pItemElem->GetSerialNumber(), 0, PETLOGTYPE_DEATH, pPet );
Include
Code:
PetRelease();
World.cpp

Function "CWorld::AddObj"

Change
Code:
if( pMover->IsNPC() )
To
Code:
if( pMover->IsNPC() && pMover->GetProp()->dwAI != AII_PET )
Function "CWorld::Process"

Change
Code:
		RemoveObjLink( pObj );
		RemoveObjArray( pObj );
		SAFE_DELETE( pObj );
To
Code:
		if( pObj )
		{
			RemoveObjLink( pObj );
			RemoveObjArray( pObj );
			if( pObj->GetIndex() != NULL )
				delete pObj; 
		}
05/17/2016 12:25 FlyCraft.TobiLap#2
Can you please to spamming fixes? Please post the all in 1 thread.
Most of your fixes are useless.
You call this one "[Fix] Pet Crash Server" but all it does is hiding the pet when you are invisible and thats not even the complete code for that.
I think most of the people will agree and want you from stop posting fixex you don't understand yourself.
09/03/2016 15:48 LRAC72031#3
#closerequest , the code means : if user is invisible the pet is not on the map anymore , there is not any fix there and flyff is 70% clientsided

RemoveObjLink( pObj );
RemoveObjArray( pObj );
SAFE_DELETE( pObj );

and the code is not finished tss ..
09/03/2016 16:55 ZeroTwo02#4
Quote:
Originally Posted by LRAC72031 View Post
#closerequest , the code means : if user is invisible the pet is not on the map anymore , there is not any fix there and flyff is 70% clientsided

RemoveObjLink( pObj );
RemoveObjArray( pObj );
SAFE_DELETE( pObj );

and the code is not finished tss ..
Why do you talk about what you do not know?
Why are you talking about invisibility? You know nothing...

the only forgotten in this topic is that's ->

Change

Code:
			if( pObj->GetIndex() != NULL )
				delete pObj;
to

Code:
	#ifdef __CLIENT
			if( pObj->GetIndex() != NULL )
				delete pObj; 
	#else // __CLIENT
			SAFE_DELETE( pObj );
	#endif // __CLIENT
So shut up now & unistalls your stupidity thx.