Exemplo n.º 1
0
        public void UseLureThread()
        {
            luresUsed += 1;
            Console.WriteLine(DateTime.Now.ToString("h:mm:ss tt") + " Using Lure, used " + luresUsed + " so far");
            ms2.input.SendKey(Keys.R, KeyState.Down);
            Thread.Sleep(300);
            ms2.input.SendKey(Keys.R, KeyState.Up);
            Thread.Sleep(500);


            Stopwatch sw = new Stopwatch();

            sw.Start();
            Thread.Sleep(2000);
            for (;;)
            {
                if (sw.ElapsedMilliseconds >= 1000 * 60 * 60 * 3 && ms2.Ms2Focus()) //1000*60*60*3
                {
                    luresUsed += 1;
                    Console.WriteLine(DateTime.Now.ToString("h:mm:ss tt") + " Using Lure, used " + luresUsed + " so far");
                    ms2.input.SendKey(Keys.R, KeyState.Down);
                    Thread.Sleep(300);
                    ms2.input.SendKey(Keys.R, KeyState.Up);
                    Thread.Sleep(500);
                    sw.Reset();
                    sw.Start();
                }
                else
                {
                    Thread.Sleep(1000);
                }
            }
        }
Exemplo n.º 2
0
        public void Start(MS2 ms2)
        {
            Console.WriteLine("STARTING CUSTOM SCRIPT");
            while (true)
            {
                if (ms2.Ms2Focus())
                {
                    // START CODE HERE

                    // Example code, presses the S key every second, then clicks
                    ms2.input.SendKey(Keys.S, KeyState.Down);
                    Thread.Sleep(50);
                    ms2.input.SendKey(Keys.S, KeyState.Up);
                    Thread.Sleep(950);
                    ms2.input.SendLeftClick();
                }
            }
        }
Exemplo n.º 3
0
 public void Attack()
 {
     while (true)
     {
         if (ms2.Ms2Focus())
         {
             try
             {
                 ms2.input.SendKey(Keys.Q, KeyState.Down);
                 Thread.Sleep(100);
                 ms2.input.SendKey(Keys.Q, KeyState.Up);
                 Thread.Sleep(1600);
             }
             catch (Exception e)
             {
                 ms2.input.SendKey(Keys.Q, KeyState.Up);
             }
         }
     }
 }