Jump to content
  • We need you!

    You must register to discover all the features of our community!

Official pet system bug fix


Recommended Posts

Posted (edited)

Hello guys.

I looked at (trkmo) official pet system, and i thinking we are making some bug fix for m2dev.

You have some bug fix relase at this topic. :D (haha)

I start:

first fix:

cmd_gm.cpp

in this function:


 

ACMD(do_item_purge)

search this:

 

	int         i;
	LPITEM      item;

add after this:

 

#ifdef NEW_PET_SYSTEM
	if (ch->GetNewPetSystem()->IsActivePet())
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("First time unsummon your pet."));
		return;
	}
#endif

examples: You have summoned pet, and you making /ip, channel has crashed.

Edited by asterix2
edit (see edit history)
  • Love 1
  • Recycle 2
  • Rainbow 1
Link to post
6 hours ago, Speachless said:

In void CNewPetActor::Unsummon()

 

Replace

ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetID()

 ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetID()

With

pSummonItem->GetID()

pSummonItem->GetID()

 

 

Thanks! (You're close to being a junior og)

Link to post
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.