Advertisement
sdini

code snippet farming bot

Mar 11th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1. if (obj.Name == "Chest")
  2.             {
  3.                 //find locations
  4.                 Microsoft.Xna.Framework.Vector2 chestLocation = new Vector2();
  5.                 chestLocation.X = obj.BoundingBox.X;
  6.                 chestLocation.Y = obj.BoundingBox.Y;
  7.  
  8.                 //debuging
  9.                 Console.WriteLine("obj location at " + obj.BoundingBox.X + ", " + obj.BoundingBox.Y);
  10.                 Console.WriteLine("obj location at " + obj.BoundingBox.X / 64 + ", " + obj.BoundingBox.Y / 64);
  11.  
  12.                 savedChestLocations.Add(chestLocation);
  13.                 Console.WriteLine("----------------");
  14.                 Console.WriteLine("Finding chests and saving location at " + chestLocation.X + ", " + chestLocation.Y);
  15.                 Console.WriteLine("----------------");
  16.                
  17.                
  18.                 Console.WriteLine(savedChestLocations.Count + " total chests found");
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement