public static void Info() { IClientTarget target = UIManager.Target(); if (target.Serial != 0) { Info(target.Serial); } else { string name = null; if (target.Graphic != 0 && target.Graphic < DataFiles.Tiledata.Count) { name = DataFiles.Tiledata.GetArt(target.Graphic).Name; } string format = "Tile X={0} Y={1} Z={2} Graphic=0x{3:X4}"; if (name != null && name.Length > 0) { format += " Name={4}"; } Notepad.WriteLine(format, target.X, target.Y, target.Z, target.Graphic, name); Notepad.WriteLine(); } }
public static void Info(Serial serial) { UOObject obj = World.GetObject(serial); if (obj.Exist) { Notepad.WriteLine(obj.Description); Notepad.WriteLine(); } }