/// <summary> /// Makes the given NPC your Pet or Companion /// </summary> /// <param name="minion">NPC to control</param> /// <param name="duration">The amount of time, in miliseconds, to control the minion. 0 is infinite.</param> public void MakePet(NPC minion, int durationMillis) { Enslave(minion, durationMillis); minion.MakePet(m_record.EntityLowId); m_record.PetCount++; InitializeMinion(minion); // Set the correct pet level if (minion.Level < Level - PetMgr.MaxHunterPetLevelDifference) { minion.Level = Level - PetMgr.MaxHunterPetLevelDifference; } else if (minion.Level > Level) { minion.Level = Level; } }