Initiate Mage
- Joined
- Oct 9, 2020
- Messages
- 48
- Reaction score
- 2
Excuse me, how to make the pet refresh to return to the character's side to extend the distance?
Thank you in advance
Thank you in advance
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today! if( !IsValidArea( pEatPet, 32 ) )
{
CAIPet* pAIPet = static_cast<CAIPet*>( pEatPet->m_pAIInterface );
if( pAIPet )
{
CItemElem* pItemElem = (CItemElem*)GetItemId( pAIPet->GetPetItemId() );
InactivateEatPet();
if( IsUsableItem( pItemElem ) )
DoUseItem( MAKELONG( ITYPE_ITEM, pItemElem->m_dwObjId ), pItemElem->m_dwObjId );
}
else
InactivateEatPet();
}
Thank you. I think you're right. Just change the 32 value__REACTIVATE_EATPET
Code:if( !IsValidArea( pEatPet, 32 ) ) { CAIPet* pAIPet = static_cast<CAIPet*>( pEatPet->m_pAIInterface ); if( pAIPet ) { CItemElem* pItemElem = (CItemElem*)GetItemId( pAIPet->GetPetItemId() ); InactivateEatPet(); if( IsUsableItem( pItemElem ) ) DoUseItem( MAKELONG( ITYPE_ITEM, pItemElem->m_dwObjId ), pItemElem->m_dwObjId ); } else InactivateEatPet(); }
Here if its not in 32 it inactivate and uses once again.