コード例 #1
0
ファイル: Fishing.cs プロジェクト: trananh1992/MapleStoryBot
 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;
 }
コード例 #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();
        }
コード例 #3
0
ファイル: Blank.cs プロジェクト: trananh1992/MapleStoryBot
        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();
                }
            }
        }
コード例 #4
0
 public FireDragon(MS2 ms2)
 {
     this.ms2     = ms2;
     currentPhase = Phase.WalkAcrossBridge;
     fireimg      = new GpuMat(new Image <Bgr, byte>("images/fire.png"));
 }