public static string DirectionTo(object obj) { int serial = AliasCommands.ResolveSerial(obj); if (serial == 0) { return(Direction.Invalid.ToString()); } Entity entity = UOMath.IsMobile(serial) ? Engine.Mobiles.GetMobile(serial) : Engine.Items.GetItem(serial) as Entity; if (entity == null) { return(Direction.Invalid.ToString()); } return(UOMath.MapDirection(Engine.Player.X, Engine.Player.Y, entity.X, entity.Y).ToString()); }