public override void Execute( CommandEventArgs args, object o ) { if( o is Item && !(o is AddonComponent) && !(o is BaseAddon) ) { Item i = (Item)o; SiegeMachineComponent newComponent = new SiegeMachineComponent(i.ItemID); newComponent.Hue = i.Hue; newComponent.Light = i.Light; newComponent.Movable = false; newComponent.Name = i.Name; newComponent.MoveToWorld(i.Location, i.Map); if( i.Parent == args.Mobile ) newComponent.Bounce(args.Mobile); if( i is Container ) ((Container)i).Destroy(); else i.Delete(); AddResponse("The item has been converted to a siege machine component."); } else { LogFailure("This command only works with items (no addons)."); } }