Exemple #1
0
        private async Task <TaskResult> DoSingle(int npcId)
        {
            var p = await writer.AttackNpcAsync(npcId, PartyType.Normal);

            if (p == null)
            {
                return(TaskResult.LostConnection);
            }

            if (p.HasError)
            {
                // Thiếu lượt, đóng băng.
                return(TaskResult.CanBeDone);
            }

            /// FIXME.
            //xu ly chinh chien that bai (chua lam)
            //if (token["battlereport"]["message"].ToString() == "Ngài đã thất bại .....")
            //{
            //    //phai danh lai cho du so sao (chua lam)
            //}
            return(TaskResult.Done);
        }