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; }
public static Tile GetDistTile(exTibia.Objects.Location location) { return GetDistTile(location.X, location.Y, location.Z); }