Ok this is what I have in Soulstone.cs
Code:
[Constructable]
public SoulStone( string account )
: this( account, 0x2A93, 0x2A94 )
{
}
public SoulStone(Mobile m) : this(m.Account)
{
}
public SoulStone( string account, int itemID )
: this( account, itemID, itemID )
{
}
public SoulStone( string account, int inactiveItemID, int activeItemID ) : base( inactiveItemID )
{
Light = LightType.Circle300;
LootType = LootType.Blessed;
m_InactiveItemID = inactiveItemID;
m_ActiveItemID = activeItemID;
m_Account = account;
}
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
What I have in charactercreation.cs
Code:
public class CharacterCreation
{
public static void Initialize()
{
// Register our event handler
EventSink.CharacterCreated += new CharacterCreatedEventHandler( EventSink_CharacterCreated );
}
private static void AddBackpack( Mobile m )
{
Container pack = m.Backpack;
if ( pack == null )
{
pack = new Backpack();
pack.Movable = false;
m.AddItem( pack );
}
PackItem( new RedBook( "a book", m.Name, 20, true ) );
PackItem( new Gold( 1000 ) ); // Starting gold can be customized here
PackItem( new Dagger() );
PackItem( new Candle() );
PackItem( new PersonalBlessDeed(m) );
PackItem( new SoulStone(m.Account) );
}
And this is the errors I get:
RunUO - [
www.runuo.com] Version 2.1, Build 4293.39484
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 4 64-bit processors
Errors:
+ Items/Special/SoulStone.cs:
CS0121: Line 113: The call is ambiguous between the following methods or pro
perties: 'Server.Items.SoulStone.SoulStone(string)' and 'Server.Items.SoulStone.
SoulStone(Server.Mobile)'
CS1502: Line 123: The best overloaded method match for 'Server.Items.SoulSto
ne.SoulStone(string)' has some invalid arguments
CS1503: Line 123: Argument '1': cannot convert from 'Server.Accounting.IAcco
unt' to 'string'
+ Misc/CharacterCreation.cs:
CS1502: Line 35: The best overloaded method match for 'Server.Items.SoulSton
e.SoulStone(string)' has some invalid arguments
CS1503: Line 35: Argument '1': cannot convert from 'Server.Accounting.IAccou
nt' to 'string'