asterix2 350 Posted May 10, 2020 Share Posted May 10, 2020 (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. (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 May 10, 2020 by asterix2 edit 1 3 1 Link to comment Share on other sites More sharing options...
Kafa 153 Posted May 10, 2020 Share Posted May 10, 2020 (edited) Thats just a block, would be interesting to see how you can really fix this. @VegaS™ @martysama0134 (sorry i had to quote the og‘s) Edited May 10, 2020 by Kafa 2 1 3 Link to comment Share on other sites More sharing options...
ManiacRobert 429 Posted May 10, 2020 Share Posted May 10, 2020 (edited) Or better, you can add a check if item is locked. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19764 Posted May 10, 2020 Honorable Member Share Posted May 10, 2020 Or just unsummon it before delete the item? 3 2 Link to comment Share on other sites More sharing options...
Contributor MrQuin 6467 Posted May 11, 2020 Contributor Share Posted May 11, 2020 People that delete pets while summoned: 3 My only accounts are here and on M2D, Don't trust anyone else from other shitty sites. Link to comment Share on other sites More sharing options...
Premium Speachless 765 Posted May 11, 2020 Premium Share Posted May 11, 2020 In void CNewPetActor::Unsummon() Replace ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetID() With pSummonItem->GetID() 1 Link to comment Share on other sites More sharing options...
Kafa 153 Posted May 11, 2020 Share Posted May 11, 2020 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 comment Share on other sites More sharing options...
peakzinho 21 Posted October 20, 2020 Share Posted October 20, 2020 my pet dont receive exp, can help me? Link to comment Share on other sites More sharing options...
Recommended Posts