public void ClickOption(int order, int cantQuest = 0) { if (cantQuest == 0) { cantQuest = GetQuestList().Count(); } var y = 303; if (cantQuest == 5) { y = 297; } if (cantQuest == 6) { y = 276; } y += +(order * 17); // base 0 var x = 80; // refresh this.GUIObj = this.Client.Mem?.Link?.GetGUIObj(BLL.Mem.Basic.GUIObj.GUIs.WinTakeQuest); this.Client.Manager.MouseDown(Convert.ToInt32(GUIObj.Data.Left + x), Convert.ToInt32(GUIObj.Data.Top + y)); this.Client.Manager.MouseUp(Convert.ToInt32(GUIObj.Data.Left + x), Convert.ToInt32(GUIObj.Data.Top + y)); Thread.Sleep(100); }
public WinTakeQuest(PWClient client) { this.Client = client; this.GUIObj = this.Client.Mem?.Link?.GetGUIObj(BLL.Mem.Basic.GUIObj.GUIs.WinTakeQuest); }