View Single Post
Old 12-04-2008, 11:56 PM   #3 (permalink)
DarkViper2006
Forum Novice
 
Join Date: Mar 2007
Age: 21
Posts: 266
Default

Quote:
Originally Posted by Lord_Greywolf View Post
1st one is easy - you are redifinging it again - remove the 1st part of this statement (in red)

ConsumeType consumeType


2nd one
felucca consume amounts are defined in the individual harvest scripts (search for felucca in mining, etc)
but they take the extra out of the vein
felucca bonuses is not more ore, but faster extraction - i.e. you get 2-3 or what ever out at a time instead of 1, but the vein still only holds 20 or what ever, so you drain the vein faster

you could make it so fel only removes 1 at a time in the harvest core by setting it to only remove from the bank the same amount as non fel - but that gives a very big unbalanced advantage to mining on fel then
Well, i only use the Felucca map, removed trammel ( custom ruleset tho )

And want to set felucca to trammel like mining( just 1 ).
But i have a customskill, that will triple the harvested amount for a minute.

But that skill coding is messing with me mind.


And for the ConsumeType. i when i remove it it sends the error: consumeType is missing.... are you missing a file error.

and when i change it to this i get :

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
			{
				PlayerMobile plm = (PlayerMobile)from;
				if( plm.HalfResourcesRequired == true )
					ConsumeType consumeType = ConsumeType.Half;				else
					ConsumeType consumeType = ( UseAllRes ? ConsumeType.Half : ConsumeType.All );

				int resHue = 0;
				int maxAmount = 0;

				object message = null;

				// Not enough resource to craft it
				if ( !ConsumeRes( from, typeRes, craftSystem, ref resHue, ref maxAmount, consumeType, ref message, true ) )
				{
					if ( tool != null && !tool.Deleted && tool.UsesRemaining > 0 )
						from.SendGump( new CraftGump( from, craftSystem, tool, message ) );
					else if ( message is int && (int)message > 0 )
						from.SendLocalizedMessage( (int)message );
					else if ( message is string )
						from.SendMessage( (string)message );

					return;
				}
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Engines/Craft/Core/CraftItem.cs:
    CS1023: Line 1174: Embedded statement cannot be a declaration or labeled sta
tement
    CS1023: Line 1176: Embedded statement cannot be a declaration or labeled sta
tement
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Red lines are the error lines.

Last edited by DarkViper2006; 12-05-2008 at 12:03 AM.
DarkViper2006 is offline   Reply With Quote