예제 #1
0
        private void timer_ScanInfo_Tick(object sender, EventArgs e)
        {
            ClearBitmap(ref DrawArea);

            curPlayer = mem.ScanPlayer();
            curTarget = mem.ScanTarget();
            curObject = mem.ScanListObject();

            MajPlayerInfo(curPlayer);
            MajTargetInfo(curTarget);

            pictureBox_maps.Image = MajGraph();

            //toolStripStatusLabel1.Text = curObject.Count.ToString();

            if (StartBot)
            {
                if (choixCible == false)
                {
                    rand = new Random().Next(0, curObject.Count);
                    Player locTarget = (Player)curObject[rand];
                    move.majCTM(curPlayer, locTarget, mem.GetBlackMagic());
                    move.StartThread();
                    choixCible = true;
                }
                else
                {
                    if (move.ThreadAlive() == true)
                    {
                        choixCible = true;
                        toolStripStatusLabel1.Text = "Thread alive";
                    }
                    else
                    {
                        choixCible = false;
                        toolStripStatusLabel1.Text = "Thread dead";
                        new KeySim().KeyDown((int)Keys.Tab);
                        new KeySim().KeyUp((int)Keys.Tab);
                    }
                }
            }
        }
예제 #2
0
        //zonetest

        /*ManageGraph graph = new ManageGraph();
         * public Bitmap test(Bitmap test)
         * {
         *  Bitmap coco = new Bitmap(260, 260);
         *  foreach (Player i in CurrentPlayers)
         *  {
         *      if (i.Type == 3)
         *      {
         *          coco = graph.TracePlayerInMap(test, LocalPlayer, i, Color.Red);
         *      }
         *      else if (i.Type == 4)
         *      {
         *          if (i.Name == LocalPlayer.Name)
         *              coco = graph.TracePlayerInMap(test, LocalPlayer, i, Color.Blue);
         *          else
         *              coco = graph.TracePlayerInMap(test, LocalPlayer, i, Color.Green);
         *      }
         *      //coco = graph.TracePlayerInMap(test, LocalPlayer, i);
         *  }
         *  if(LocalTarget.Guid != 0)
         *      coco = graph.TracePlayerInMap(test, LocalPlayer, LocalTarget, Color.Yellow, true);
         *
         *  return coco;
         * }*/

        public void testmoveAsync()
        {
            CTM move = new CTM(LocalPlayer, LocalTarget, WowReader);

            move.StartThread();
        }