Jump to content

Fix Official Pet System


Recommended Posts

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
  • Love 1
  • Not Good 3
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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.