internal static void Pulse() { while (NeedToRun) { if (Looting.lootLoggedInLogBox || Looting.startLoggedInLogBox) { Looting.lootLoggedInLogBox = false; Looting.startLoggedInLogBox = false; } Debug.MainGUI.statusBarText.Text = "Status: Casting Fishing"; if (Tries >= 6) { Debug.Log(string.Format("Error: Unable to fish. Tries: {0}", Tries)); Debug.Log("Please make sure your character is able to fish."); Engine.Exit(); return; } Debug.Log(string.Format("Cast Fishing. Trie(s): {0}", (Tries + 1))); FishbotAction.CastSpellByName(Debug.MainGUI.fishingSpell.Text); Tries++; Thread.Sleep(350); if (FishbotAction.IsFishing) { Tries = 0; } } }
internal static void Pulse() { while (NeedToRun) { Debug.MainGUI.statusBarText.Text = "Status: Putting lur"; if (Tries >= 5) { Debug.Log(string.Format("Error: Unable to put lur. Tries: {0}", Tries)); Debug.Log("Please make sure your character has that lur in your inventory."); Engine.Exit(); return; } Debug.Log(string.Format("Putting lur. Trie(s): {0}", (Tries + 1))); FishbotAction.CastItemByItemId(Convert.ToInt32(Debug.MainGUI.lurId.Text)); Tries++; Thread.Sleep(3500); if (!NeedToRun) //Success! { Tries = 0; } } }