|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
|
ugh, ya'll are going to get tired of helping me, lol. Sorry about so many posts and problems. I'm just so new, but I'm learning.
I installed the FS:Taming system Gen2, and fixed duplicated base systems in it, by using winmerge. Once I did that, I got this error, and I'm not sure what it means. Code:
Errors:
+ Custom/PlayerMobile.cs:
CS0111: Line 3820: Type 'Server.Mobiles.PlayerMobile' already defines a memb
er called 'AcquireRecipe' with the same parameter types
Code:
#region Recipes
private Dictionary<int, bool> m_AcquiredRecipes;
public virtual bool HasRecipe( Recipe r )
{
if( r == null )
return false;
return HasRecipe( r.ID );
}
public virtual bool HasRecipe( int recipeID )
{
if( m_AcquiredRecipes != null && m_AcquiredRecipes.ContainsKey( recipeID ) )
return m_AcquiredRecipes[recipeID];
return false;
}
public virtual void AcquireRecipe( Recipe r )
{
if( r != null )
AcquireRecipe( r.ID );
}
public virtual void AcquireRecipe( int recipeID )
{
if( m_AcquiredRecipes == null )
m_AcquiredRecipes = new Dictionary<int, bool>();
m_AcquiredRecipes.Add( recipeID, true );
}
public virtual void AcquireRecipe( Recipe r )
{
if( r != null )
AcquireRecipe( r.ID );
}
public virtual void ResetRecipes()
{
m_AcquiredRecipes = null;
}
[CommandProperty( AccessLevel.GameMaster )]
public int KnownRecipes
{
get
{
if( m_AcquiredRecipes == null )
return 0;
return m_AcquiredRecipes.Count;
}
}
#endregion
Thank you, ~Elora |
|
|
|
|
|
#2 (permalink) | |
|
Lurker
Join Date: Apr 2008
Posts: 2
|
Quote:
|
|
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
Join Date: Jan 2006
Location: Look behind you....
Age: 44
Posts: 1,367
|
Easy fix actually. The error message is simply saying you have more than one of that type. The fix is this.. Remove the 2nd one of these.
Code:
public virtual void AcquireRecipe( Recipe r )
{
if( r != null )
AcquireRecipe( r.ID );
}
![]()
__________________
May you have the strength of eagles' wings, the faith and courage to fly to new heights, and the wisdom of the universe to carry you there. |
|
|
|
|
|
#4 (permalink) | |
|
Newbie
|
Quote:
~Elora |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|