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