Please verify you are human

__LOOKCHANGE_PET
  Register for your free account! | Forgot your password?

You last visited: Today at 12:57

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

Advertisement



__LOOKCHANGE_PET

Discussion on __LOOKCHANGE_PET within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2016
Posts: 11
Received Thanks: 4
__LOOKCHANGE_PET

void CMover::ActivateEatPet

Code:
#ifdef __LOOKCHANGE_PET
            DWORD dwPetId;
            if (pItemElem && pItemElem->IsChangedLook())
            {
                ItemProp* pProp2 = prj.GetItemProp(pItemElem->GetLook());
                dwPetId = pProp2->dwLinkKind;
            }
            else
                dwPetId = pProp->dwLinkKind;

            CMover *pEatPet = CreateMover(GetWorld(), dwPetId, GetPos(), GetLayer());
        #else
            CMover *pEatPet    = CreateMover( GetWorld(), pProp->dwLinkKind, GetPos(), GetLayer() );
        #endif
FlyFF_Services is offline  
Old 12/11/2016, 10:06   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
Sucks when people buy your systems and later they release.

Code:
Function void CMover::ActivateEatPet( CItemElem* pItemElem )

After:

	if( IsFly() )
	{
		static_cast<CUser*>( this )->AddDefinedText( TID_GAME_CANNOT_CALL_PET_ON_FLYING );
		return;
	}
//		ASSERT( pItemProp->dwLinkKind != NULL_ID )

#ifdef __LAYER_1015



ADD: Replace this line CMover *pEatPet	= CreateMover( GetWorld(), pProp->dwLinkKind, GetPos(), GetLayer() );

#ifdef __LOOKCHANGE_PET
	DWORD dwPetId;
	if (pItemElem && pItemElem->IsChangedLook())
	{
		ItemProp* pProp2 = prj.GetItemProp(pItemElem->GetLook());
		dwPetId = pProp2->dwLinkKind;
	}
	else
		dwPetId = pProp->dwLinkKind;

	CMover *pEatPet = CreateMover(GetWorld(), dwPetId, GetPos(), GetLayer());
#else // __LOOKCHANGE_PET
	CMover *pEatPet	= CreateMover( GetWorld(), pProp->dwLinkKind, GetPos(), GetLayer() );
#endif

In VersionCommon.h of WorldServer

#define __LOOKCHANGE_PET

You may need to adjust the lookchange variables, but that's your problem.
To allow the use of pets in the window, you have to edit functions of model change in client part (Wndxx.cpp file) and server (DPSrvr.cpp).
alfredico is offline  
Old 12/11/2016, 14:18   #3
 
elite*gold: 0
Join Date: Nov 2016
Posts: 11
Received Thanks: 4
Quote:
Originally Posted by alfredico View Post
Sucks when people buy your systems and later they release.
That's not my system and i don't sell it
FlyFF_Services is offline  
Reply




All times are GMT +1. The time now is 12:58.


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.