public void Blockchange2(Player p, ushort x, ushort y, ushort z, ushort type) { p.ClearBlockchange(); ushort b = p.level.GetTile(x, y, z); p.SendBlockchange(x, y, z, b); CatchPos cpos = (CatchPos)p.blockchangeObject; Zone Zn = new Zone(); Zn.smallX = Math.Min(cpos.x, x); Zn.smallY = Math.Min(cpos.y, y); Zn.smallZ = Math.Min(cpos.z, z); Zn.bigX = Math.Max(cpos.x, x); Zn.bigY = Math.Max(cpos.y, y); Zn.bigZ = Math.Max(cpos.z, z); Zn.owner = cpos.Owner; Zn.level = p.level.name; p.level.ZoneList.Add(Zn); ZoneDB.zones.Add(Zn); ZoneDB.Save(); Player.SendMessage(p, "Added zone for &b" + cpos.Owner); }