:P Today after i woked up and farmed 1 ninja to lvl 111 ( about half hour.)
I was oppened my net broswer and come to epvp .. I saw someones made some pseudo codes ;))
I tryed to add mining to my bot :P
1st:
I tried to add these
but i got 2 errors :P
1: ItemToDrop not a valid .... in this context
2: IsOre not a walid .... in this context ..
What i should do exactly to make work mining?:P
Oelaboela Can you help me ?
Or other Who made it work?
Edit1< The upper code is just an exemple .. I tryed in diferent ways to make it work,,, Where should i need to add codes? Only on Handlers >Bot?
After reading them again . I made an ArrayList for items. Ores
But now how i asign this to
When i add ^ to the Bot.cs i got an error msg // Inventory
Dose not exist in curent sintax .. How i resolve these ?
I was oppened my net broswer and come to epvp .. I saw someones made some pseudo codes ;))
I tryed to add mining to my bot :P
1st:
I tried to add these
Code:
public static void DropItem(Client C)
{
foreach (Item I in ItemsToDrop.Values)
{
while (true)
{
if (LastDropped.AddMilliseconds(200) < TimeNow)//loops till this is true.
{
LastDropped = TimeNow;
//send drop item packet
Inventory.Remove(I.UID);
ItemsToDrop.Remove(I.UID);
break;//breaks while loop
}
}
}
}
but i got 2 errors :P
1: ItemToDrop not a valid .... in this context
2: IsOre not a walid .... in this context ..
What i should do exactly to make work mining?:P
Oelaboela Can you help me ?
Or other Who made it work?
Edit1< The upper code is just an exemple .. I tryed in diferent ways to make it work,,, Where should i need to add codes? Only on Handlers >Bot?
After reading them again . I made an ArrayList for items. Ores
Code:
public static ArrayList ItemsToDrop = new ArrayList() { 1072059, 1072058, 1072057, 1072056, 1072055,
1072054, 1072053, 1072052, 1072051, 1072050, 1072049, 1072048, 1072047, 1072046, 1072045, 1072044, 1072043, 1072042, 1072041,
1072040, 1072031, 1072029, 1072028, 1072027, 1072026, 1072025, 1072024, 1072023, 1072022, 1072021, 1072020, 1072019, 1072018,
1072017, 1072016, 1072015, 1072014, 1072013, 1072012, 1072011, 1072010, };
Code:
public static void ItemtoDrop(Client C)
{
foreach (Item I in Inventory.Values)
{
if (Mining)
{
if (Program.OresToDrop.Contains(I.ItemID))
{
ItemsToDrop.Add(I.UID, I);//Adds to a dictionary of items to drop, you could use a list or array for this as well.
}
}
}
}
Code:
foreach (Item I in Inventory.Values)