Welcome!

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!

PetRelease On Flying aka "Smart Pets"

Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
This is being sold for 10 euro and has already been released ages ago for free in multiple different sources.

This will automatically put your pets away on flying lol.

Mover.cpp
Code:
BOOL CMover::IsItemRedyTime( ItemProp* pItemProp, OBJID dwObjid, BOOL bItemFind )
{
	if( pItemProp->dwSkillReadyType != 0 &&
		pItemProp->dwSkillReadyType != 0xffffffff )
	{
#if __VER >= 15 // __IMPROVE_SYSTEM_VER15
		if( pItemProp->dwItemKind2 == IK2_RIDING )
		{
#ifdef __THIS_ISNT_WORTH_10_EURO
			if (HasActivatedEatPet())
			{
				InactivateEatPet();
			}
			if (HasActivatedSystemPet())
			{
				PetRelease();
			}
			if (HasPet())
			{
				RemovePet();
			}
#else
			if( HasActivatedEatPet() || HasActivatedSystemPet() || HasPet() )
			{
				( (CUser*)this )->AddDefinedText( TID_GAME_CANNOT_FLY_WITH_PET );
				return FALSE;
			}
#endif
		}
#endif // __IMPROVE_SYSTEM_VER15

Be sure to define:
Code:
__THIS_ISNT_WORTH_10_EURO

:thumbup1: :laugh:
 
Last edited:
Newbie Spellweaver
Joined
Oct 6, 2020
Messages
5
Reaction score
0
Maybe before you release something, you should at least test it, Mr. Ketchup aka "bless for the flyff community"?

Add same code here for wings/mounts/etc that don't have a delay before applying:
BOOL CMover::IsEquipAble(CItemElem* pItem, BOOL bIgnoreLevel)

And one more thing:
mounts are already IK2_RIDING.


Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
Lodelight - PetRelease On Flying aka "Smart Pets" - RaGEZONE Forums
 
Last edited by a moderator:
Back
Top