Excuse me: pet problem

Status
Not open for further replies.
Newbie Spellweaver
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
 
Newbie Spellweaver
Joined
Sep 8, 2011
Messages
67
Reaction score
252
__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.
 
Newbie Spellweaver
Joined
Oct 9, 2020
Messages
48
Reaction score
2
Thank you for your reply. What I want to ask is how to increase the range of his items instead of reactivating them
 
Newbie Spellweaver
Joined
Oct 9, 2020
Messages
48
Reaction score
2
Thank you. I think you're right. Just change the 32 value
 
Status
Not open for further replies.