RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Fireable Cannon

LowCastle

Wanderer
Cannon deeds on the internal map.

I have been finding cannon deeds in my internal map. Is anyone else having the same problem with this script?
 

LowCastle

Wanderer
Internal Cannons - more information

The cannon deed goes to the internal map when you use the "disassemble" option on a cannon. I get a deed in my pack and another in the internal map. Tested with CannonEastDeed and CannonSouthDeed with the same results.

Here is the block of code that is referenced during disassembly:

Code:
private class Disassemble : ContextMenuEntry
		{
			private BaseCannon m_Cannon;
			
			public Disassemble( BaseCannon cannon ) : base( 6142, 3 )
			{
				m_Cannon = cannon;
			}
			
			public override void OnClick()
			{
				if ( !Owner.From.InRange( m_Cannon, 3 ) )
				{
					Owner.From.SendLocalizedMessage( 500446 );
				}
				else if( m_Cannon.CCom.NextShot > DateTime.Now )
					Owner.From.SendMessage("You must wait for the cannon to cool down before you can redeed it.");
				else
				{
					[COLOR="Red"]BaseCannonDeed deed = (BaseCannonDeed)Activator.CreateInstance( m_Cannon.Deed.GetType() );
					deed.Hits = m_Cannon.CCom.Hits;
					deed.HitsMax = m_Cannon.CCom.HitsMax;
					m_Cannon.Delete();
					Owner.From.PlaceInBackpack( deed );[/COLOR]				}
			}
			
		}

Can someone help me understand how two deeds come out of this?
 
Top