示例#1
0
        /*
         * Function: Chạy Q Trị An
         * Description: Chạy Q Trị An
         * Author: Tử La Lan - Facebook: https://www.facebook.com/Tu.La.Lan.NT
         * Created At: 2019-11-09 - Updated At: 2019-11-09
         */
        public void runTriAn()
        {
            if (mCharacter.Running == 0)
            {
                return;
            }

            int i = 0;

            mAuto.writeStatus("Bắt đầu \"Chạy Trị An\" ...");

            // Chuyển qua bảng chat "Hệ thống"
            mAuto.writeStatus("Chuyển qua bảng chat \"Hệ thống\" ...");
            mAuto.clickToImage(Constant.ImagePathGlobalChatTabHeThong);

            // Block khung chat
            mAuto.writeStatus("Block khung chat ...");
            mAuto.clickImageByGroup("global", "blockchat");

            // Bật auto
            mAuto.writeStatus("Bật auto ...");
            mAuto.batAuto();

            // Nếu vip dưới 6 thì mới chạy cái này
            if (mCharacter.VipLevel < 6 && mCharacter.VipLevel > 0)
            {
                // Xuong
                mAuto.bayXuong();
            }

            while (!mChayTriAn.completed && i < Constant.MaxLoop && mCharacter.Running == 1)
            {
                i++;
                mChayTriAn.nhanQ();
                if (!mChayTriAn.completed)
                {
                    mChayTriAn.chayQ();
                }
            }
        }