Exemple #1
0
 public Fishing(MS2 ms2)
 {
     this.ms2     = ms2;
     bobber       = new Image <Bgr, byte>("images/bobber2.png");
     bobbermask   = new Image <Bgr, byte>("images/bobber2mask.png");
     fishingState = FishingState.NotCast;
 }
Exemple #2
0
        public static void Main(string[] args)
        {
            MS2 ms2 = new MS2();

            ms2.Start();
            //Blank b = new Blank();
            //b.Start(ms2);
            Fishing f = new Fishing(ms2);

            f.Start();
            //FireDragon fd = new FireDragon(ms2);
            //fd.Start();
        }
Exemple #3
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();
                }
            }
        }
Exemple #4
0
 public FireDragon(MS2 ms2)
 {
     this.ms2     = ms2;
     currentPhase = Phase.WalkAcrossBridge;
     fireimg      = new GpuMat(new Image <Bgr, byte>("images/fire.png"));
 }