public PET_INFO GetPetList_Appoint(int nPetNum)
        {
            SDATA_PET My_Pet;
            PET_INFO  petInfo = new PET_INFO();
            int       count   = 0;

            for (int i = 0; i < (int)ENUM_PET_SKILL_INDEX.PET_SKILL_INDEX_NUMBERS; i++)
            {
                My_Pet = CDataPool.Instance.Pet_GetPet(nPetNum);
                if ((My_Pet == null) || (MacroDefine.INVALID_ID == My_Pet.IsPresent))
                {
                    continue;
                }

                if (count == nPetNum)
                {
                    petInfo.petName = My_Pet.Name;

                    //if(CDataPool.Instance.MyStallBox_IsPetOnStall(My_Pet->m_GUID))
                    //{
                    //    petInfo.petOn = 1;
                    //}
                    //else
                    //{
                    //    petInfo.petOn = 0;
                    //}
                    return(petInfo);
                }
                count++;
            }
            return(petInfo);
        }
        public PET_INFO GetID(int nPetNum)
        {
            PET_INFO  petInfo = new PET_INFO();
            SDATA_PET My_Pet  = CDataPool.Instance.Pet_GetPet(nPetNum);

            if ((My_Pet == null) || (MacroDefine.INVALID_ID == My_Pet.IsPresent))
            {
                throw new NullReferenceException("LUA:Pet GetID parameter error");
            }

            petInfo.petName = string.Format("%.8X", My_Pet.GUID.m_uHighSelection);

            petInfo.petName2 = string.Format("%.8X", My_Pet.GUID.m_uLowSelection);

            int sex = (int)My_Pet.GUID.m_uLowSelection % 2;

            petInfo.sex = sex;

            return(petInfo);
        }
        public PET_INFO GetName(int nPetNum)
        {
            PET_INFO  petInfo = new PET_INFO();
            SDATA_PET My_Pet  = CDataPool.Instance.Pet_GetPet(nPetNum);

            if ((My_Pet == null) || (MacroDefine.INVALID_ID == My_Pet.IsPresent))
            {
                throw new Exception("LUA:Pet GetName parameter error");
            }
            petInfo.szName = My_Pet.Name;

            //DBC_DEFINEHANDLE(s_pMonsterAttr, DBC_CREATURE_ATT);
            //const _DBC_CREATURE_ATT* pPet = (const _DBC_CREATURE_ATT*)s_pMonsterAttr->Search_Index_EQU(My_Pet->m_nDataID);
            //if(pPet)
            //{
            //    petInfo.petName = pPet->pName;
            //}
            //else
            //{
            //    petInfo.petName = "未知宠";
            //}
            return(petInfo);
        }