Last one for a bit:
The two lines below SetPet, <Mob* mypet =......etc.>, gives the same resulting appearance as <SetPet(0);>. (takes a moment to depop) I am unsure if one is better than the other.
\client_process.cpp(841)
Code:
if (!RuleB(Pets, PetLogPersistence))
{
SetPet(0);
// or
Mob* mypet = this->GetPet();
mypet->CastToNPC()->Depop();
database.DeletePetInfo(this);
memset(&m_petinfo, 0, sizeof(struct PetInfo));
database.SavePetInfo(this);
}
}