View Single Post
Old 12-05-2008, 12:23 AM   #4 (permalink)
Cheetah2003
Forum Novice
 
Cheetah2003's Avatar
 
Join Date: Jun 2006
Location: Laramie, Wyoming
Age: 38
Posts: 364
Send a message via ICQ to Cheetah2003 Send a message via AIM to Cheetah2003 Send a message via MSN to Cheetah2003 Send a message via Yahoo to Cheetah2003
Default

Change it to this, you need to declare the variable before using it in the fashion you're using it.

Code:
			else if ( !allRequiredSkills )
			{
				if ( tool != null && !tool.Deleted && tool.UsesRemaining > 0 )
					from.SendGump( new CraftGump( from, craftSystem, tool, 1044153 ) );
				else
					from.SendLocalizedMessage( 1044153 ); // You don't have the required skills to attempt this item.
			}
			else
			{
				ConsumeType consumeType;
				PlayerMobile plm = (PlayerMobile)from;
				if( plm.HalfResourcesRequired == true )
					consumeType = ConsumeType.Half;
				else
					consumeType = ( UseAllRes ? ConsumeType.Half : ConsumeType.All );

				int resHue = 0;
				int maxAmount = 0;

				object message = null;

				// Not enough resource to craft it
__________________
Take a walk on The Wild side.
Cheetah2003 is offline   Reply With Quote