示例#1
0
        private void StartAuto(string device, List <string> list, User user)
        {
            foreach (var func in list)
            {
                switch (func)
                {
                    #region PhucLoi
                case "NhanVangPB":
                    Level.NhanVangPB(device);
                    break;

                case "RungCay10lan":
                    PhucLoi.RungCay5(device);
                    break;

                case "PhucLoi":
                    PhucLoi.DiemDanh(device);

                    var            lastDay         = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month);
                    var            info            = TimeZoneInfo.FindSystemTimeZoneById("SE Asia Standard Time");
                    DateTimeOffset localServerTime = DateTimeOffset.Now;
                    DateTimeOffset localTime       = TimeZoneInfo.ConvertTime(localServerTime, info);
                    if (lastDay == localTime.Day)
                    {
                        PhucLoi.PhucLoi31(device);
                    }
                    SendText("Số " + user.Index.ToString() + " : Phúc lợi hoàn tất.");
                    break;

                case "PhucLoiT2":
                    PhucLoi.PhucLoiT2(device);
                    Helper.NhanThu(device);
                    SendText("Số " + user.Index.ToString() + " : Phúc lời thứ 2 xong.");
                    break;

                case "PhucLoiUpdate":
                    PhucLoi.NhanThuongHoatDong(device);
                    Helper.SuDungTheThang(device);
                    SendText("Số " + user.Index.ToString() + " : Phúc lợi update xong.");
                    break;

                case "PhucLoiNgayLe":
                    PhucLoi.NhanThuongHoatDong(device);
                    break;

                case "Tieu200V":
                    PhucLoi.RungCay5(device);
                    PhucLoi.Tieu10V(device);
                    break;

                case "ThapSangAmAp":
                    PhucLoi.ThapSangAmAp(device);
                    break;

                case "QuaDangNhap":
                    PhucLoi.QuaDangNhap(device);
                    break;

                case "UongRuouNgamTrang":
                    SuKien.UongRuouNgamTrang(device);
                    break;

                case "ThanTai":
                    SuKien.ThanTai(device);
                    break;

                case "NhanThuong":
                    PhucLoi.TichLuyTieuPhi(device);
                    PhucLoi.ThoiTrangSieuHot(device);
                    break;

                case "UocNguyenCauPhuc":
                    SuKien.UocNguyenCauPhuc(device);
                    break;

                case "NVTuyetTrangTungBay":
                    PhucLoi.XS20(device);
                    PhucLoi.ChiemTinh10(device);
                    PhucLoi.TuyetTrangTungBay(device);
                    break;

                case "BuffTTTB":
                    PhucLoi.BuffTTTB(device);
                    break;

                case "BuffTTTBFree":
                    PhucLoi.BuffTTTBFree(device);
                    break;

                case "PhucLoi31":
                    PhucLoi.PhucLoi31(device);
                    break;

                case "TTTBHopAnh":
                    SuKien.TTTBHopAnh(device);
                    break;

                case "MuaXoNuoc":
                    SuKien.MuaXoNuoc(device);
                    break;

                case "MungSinhNhat":
                    SuKien.MungSinhNhat(device);
                    break;

                case "NhapCode":
                    //4zpzyybfxt
                    //1cviyyx943
                    Helper.NhapCode(device, "1cviyyx943");
                    Helper.NhapCode(device, "4zpzyybfxt");
                    break;

                case "DoiLenhBai":
                    Helper.DoiLenhBai(device);
                    break;

                case "NhanThu":
                    Helper.NhanThu(device);
                    break;

                case "SuKienCustom":
                    SuKien.VanDo(device);
                    break;
                    #endregion

                    #region Bang
                case "VoBang":
                    Bang.VoBang(device);
                    Bang.IsInBang(device);
                    SendText("Số " + user.Index.ToString() + " : Vô bang thành công.");
                    break;

                case "RoiBang":
                    Bang.RoiBang(device);
                    break;

                case "BanBe":
                    Bang.BanBe(device);
                    Bang.DongYKB(device);
                    SendText("Số " + user.Index.ToString() + " : Kết bạn xong.");
                    break;

                case "PhoBan":
                    SuKien.PhoBan(device);
                    SendText("Số " + user.Index.ToString() + " : Phó bản xong.");
                    break;

                case "GopMax":
                    Bang.GopMax(device);
                    SendText("Số " + user.Index.ToString() + " : Đóng góp tất cả hoàn tất.");
                    break;

                case "5NV":
                    Bang.GopBang(device);
                    Bang.ViengTham(device);
                    Bang.Bong(device);
                    Bang.TraNV(device);
                    SendText("Số " + user.Index.ToString() + " : 5NV xong.");
                    break;

                case "6NV":
                    Bang.GopBang(device);
                    Bang.ViengTham(device);
                    Bang.Bong(device);
                    Bang.ThanQQ(device, user.QQ);
                    Bang.TraNV(device);
                    SendText("Số " + user.Index.ToString() + " : 6NV xong.");
                    break;

                case "MuaLenh":
                    Bang.MuaLenh(device);
                    break;

                case "8NV":
                    Bang.GopBang(device);
                    Bang.ViengTham(device);
                    Bang.Bong(device);
                    Bang.TraNV(device);
                    Bang.ThanQQ(device, user.QQ);
                    Bang.Dtxs(device);
                    Bang.TraNV(device);
                    SendText("Số " + user.Index.ToString() + " : 8NV xong.");
                    break;

                case "Phat5NVBang":
                    Bang.Phat5NVBang(device);
                    break;

                case "Phat6NVBang":
                    Bang.Phat6NVBang(device);
                    break;

                case "Phat8NVBang":
                    Bang.Phat8NVBang(device);
                    break;

                case "ThanQQMax":
                    Bang.ThanQQMax(device, user.QQ);
                    break;

                case "NVCustom":
                    Bang.GopBang(device);
                    Bang.Bong(device);
                    Bang.TraNV(device);
                    Bang.ThanQQMax(device, user.QQ);
                    break;
                    #endregion

                //Others
                case "ThuyenRong":
                    SuKien.ThuyenRong(device);
                    break;

                case "BaoDanhLCC":
                    Helper.BaoDanhLCC(device);
                    break;

                case "MuaBongVV":
                    Helper.MuaBongVV(device);
                    break;

                case "TangBongVV":
                    Helper.TangBongVV(device);
                    break;

                case "TangFullBong":
                    Helper.TangFullBong(device);
                    break;

                case "TangFullBongLSV":
                    Helper.TangFullBongLSV(device);
                    break;

                case "LPLSV":
                    SuKien.LPLSV(device);
                    SendText("Số " + user.Index.ToString() + " : Lplsv xong.");
                    break;

                case "VoteLPLSV":
                    SuKien.VoteLPLSV(device);
                    SendText("Số " + user.Index.ToString() + " : Vote lplsv xong.");
                    break;

                case "TTTT":
                    NangDong.TTTT(device);
                    SendText("Số " + user.Index.ToString() + " : Truyền kỳ thời trang xong.");
                    break;

                case "Moc1":
                    Bang.MuaLenh(device);
                    NangDong.QuanTruong(device);
                    SendText("Số " + user.Index.ToString() + " : Mốc 1 xong.");
                    break;

                case "Moc2":
                    Bang.MuaLenh(device);
                    NangDong.DauTruong(device);
                    NangDong.QuanTruong(device);
                    NangDong.CuongHoaThoiTrang(device);
                    NangDong.DonDuocTaiNghe(device);
                    NangDong.TrieuBai(device);
                    NangDong.TraNVNgay(device);
                    SendText("Số " + user.Index.ToString() + " : Mốc 2 xong.");
                    break;

                case "SuDungVatPham":
                    Helper.SuDungVatPham(device);
                    SendText("Số " + user.Index.ToString() + " : Sử dụng vật phẩm hoàn tất.");
                    break;

                case "DonTui":
                    Helper.DonTui(device);
                    Helper.DonTui2(device);
                    SendText("Số " + user.Index.ToString() + " : Dọn sạch túi xong.");
                    break;

                default:
                    break;
                }
            }
        }