All pastes #587915 Raw Edit

Anonymous

public text v1 · immutable
#587915 ·published 2007-06-25 08:11 UTC
rendered paste body
        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());
            }
        }