Wow, everyone left AlchemyProxy for COoperative
public static bool NewBot(Client C)
{
while (C.RunBot)
{
if (!C.Mining)
return true;
if (C.LastDropped.AddSeconds(15) < DateTime.Now)
{
foreach (Items.ItemInfo I in C.Inventory.Values)
{
if (Handler.IsOre(I.ID))
{
C.LastDropped = DateTime.Now;
Packets.DropItem(C, I.UID);
break;
}
}
}
if (!C.Hunting)
return true;
because ur saying if not mining to just return. try setting an enum to ur current activityQuote:
Ok well I`ll ask again but shouldn`t this work? It mines fine when just writing /mining but I type /hunt and it does nothing? I have tried changing a few things but still nothing? And yes I have a hunting code lol.
Code:public static bool NewBot(Client C) { while (C.RunBot) { if (!C.Mining) return true; if (C.LastDropped.AddSeconds(15) < DateTime.Now) { foreach (Items.ItemInfo I in C.Inventory.Values) { if (Handler.IsOre(I.ID)) { C.LastDropped = DateTime.Now; Packets.DropItem(C, I.UID); break; } } } if (!C.Hunting) return true;
public class EnumTest {
enum Days { Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday };
enum BoilingPoints { Celcius = 100, Fahrenheit = 212 };
[FlagsAttribute]
enum Colors { Red = 1, Green = 2, Blue = 4, Yellow = 8 };
public static void Main() {
Type weekdays = typeof(Days);
Type boiling = typeof(BoilingPoints);
Console.WriteLine("The days of the week, and their corresponding values in the Days Enum are:");
foreach ( string s in Enum.GetNames(weekdays) )
Console.WriteLine( "{0,-11}= {1}", s, Enum.Format( weekdays, Enum.Parse(weekdays, s), "d"));
Console.WriteLine();
Console.WriteLine("Enums can also be created which have values that represent some meaningful amount.");
Console.WriteLine("The BoilingPoints Enum defines the following items, and corresponding values:");
foreach ( string s in Enum.GetNames(boiling) )
Console.WriteLine( "{0,-11}= {1}", s, Enum.Format(boiling, Enum.Parse(boiling, s), "d"));
Colors myColors = Colors.Red | Colors.Blue | Colors.Yellow;
Console.WriteLine();
Console.WriteLine("myColors holds a combination of colors. Namely: {0}", myColors);
}
}