public static bool Expedition() { int points = Convert.ToInt32(Get.Points_expedition()); if (!RegistryValues.Read_b("c_expedition") || points == 0) { return(false); } Heal_me(); Basic.Wait_for_element("//div[@id='cooldown_bar_expedition']/div[@class='cooldown_bar_text']"); Basic.Click_element("//div[@id='cooldown_bar_expedition']/a[@class='cooldown_bar_link']"); Basic.Click_element("//div[@class='expedition_box'][" + Convert.ToString(Settings.o_expedition) + "]//button[contains(@class,'awesome')]"); Basic.Wait_for_element("//table[@style='border-spacing:0;']//td[2]"); if (points == 1) { return(false); } else { return(true); } }
public static void Update_ui() { while (true) { try { form.Invoke((MethodInvoker) delegate { form.labelGold.Text = Convert.ToString(Get.Gold_s()); }); form.Invoke((MethodInvoker) delegate { form.labelRubles.Text = Convert.ToString(Get.Rubles()); }); form.Invoke((MethodInvoker) delegate { form.labelExpedition.Text = Convert.ToString(Get.Points_expedition()); }); form.Invoke((MethodInvoker) delegate { form.labelDungeon.Text = Convert.ToString(Get.Points_dungeon()); }); form.Invoke((MethodInvoker) delegate { form.labelLevel.Text = Convert.ToString(Get.Level()); }); form.Invoke((MethodInvoker) delegate { form.labelProgress.Text = Convert.ToString(Get.Progress()); }); } catch { } } }