protected override void OnTarget(Mobile from, object targeted)
{
IPoint3D p = targeted as IPoint3D;
if (p != null)
{
try
{
Server.Scripts.Commands.CommandLogging.LogChangeProperty(m_Mobile, m_Object, m_Property.Name, new Point2D(p).ToString());
m_Property.SetValue(m_Object, new Point2D(p), null);
PropertiesGump.OnValueChanged(m_Object, m_Property, m_Stack);
if (Miscellanious.ValidateLabeling(m_Object))
{
if (m_Object is Item)
{
((Item)m_Object).Cheater_Name = String.Format("This item modified by GM {0}", m_Mobile.Name);
}
if (m_Object is Mobile)
{
((Mobile)m_Object).Cheater_Name = String.Format("This mobile modified by GM {0}", m_Mobile.Name);
}
}
}
catch
{
m_Mobile.SendMessage("An exception was caught. The property may not have changed.");
}
}
}