Register for your free account! | Forgot your password?

You last visited: Today at 10:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Fix] Pet Crash Server

Discussion on [Fix] Pet Crash Server within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
[Fix] Pet Crash Server

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; 
		}
ZeroTwo02 is offline  
Old 05/17/2016, 12:25   #2
 
elite*gold: 59
Join Date: Oct 2012
Posts: 716
Received Thanks: 465
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.
FlyCraft.TobiLap is offline  
Thanks
14 Users
Old 09/03/2016, 15:48   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 51
Received Thanks: 12
#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 ..
LRAC72031 is offline  
Old 09/03/2016, 16:55   #4

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
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.
ZeroTwo02 is offline  
Thanks
3 Users
Reply




All times are GMT +1. The time now is 10:59.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.