示例#1
0
 private bool ProcessCmdPetSkillAwake(GameClient client, int nID, byte[] bytes, string[] cmdParams)
 {
     try
     {
         if (!CheckHelper.CheckCmdLength(client, nID, cmdParams, 3))
         {
             return(false);
         }
         int        petID       = Convert.ToInt32(cmdParams[0]);
         int        lockPit     = Convert.ToInt32(cmdParams[1]);
         int        lockPit2    = Convert.ToInt32(cmdParams[2]);
         List <int> lockPitList = new List <int>();
         if (lockPit > 0)
         {
             lockPitList.Add(lockPit);
         }
         if (lockPit2 > 0)
         {
             lockPitList.Add(lockPit2);
         }
         string result     = "";
         int    resultType = (int)PetSkillManager.PetSkillAwake(client, petID, lockPitList, out result);
         client.sendCmd(1038, string.Format("{0}:{1}", resultType, result), false);
         return(true);
     }
     catch (Exception ex)
     {
         DataHelper.WriteFormatExceptionLog(ex, Global.GetDebugHelperInfo(client.ClientSocket), false, false);
     }
     return(false);
 }