Anonymous
public text v1 · immutable public void AutoPickIt(int x, int y)
{
if(this.Hero.X != x || this.Hero.Y != y)
this.MoveWait(x, y);
// Wait for items to drop
System.Threading.Thread.Sleep(1000);
while (this.Hero.ItemsToPickup.Count > 0)
{
Item item = this.Hero.ItemsToPickup.Dequeue();
//this.Move(item.X, item.Y);
//System.Threading.Thread.Sleep(250);
if (this.PickUpItemFromGroundWait(item))
Log.Instance.Append("Picked up " + item.BaseItem.ToString());
}
}