Ejemplo n.º 1
0
        public static bool CheckTileHasItem(exTibia.Objects.Location location, Collection<int> items)
        {
            try
            {
                Tile t = new Tile();
                t = GetDistTile(location);

                if (t.GetItems().Any(i => items.Any(it => i.id == it)))
                    return true;
                return false;
            }
            catch(InvalidOperationException ex)
            {
                Helpers.Debug.Report(ex);
            }
            return false;       
        }
Ejemplo n.º 2
0
 public static Tile GetDistTile(exTibia.Objects.Location location)
 {
     return GetDistTile(location.X, location.Y, location.Z);
 }