Vudu26
Squire
Trying to add the Peerless system and Community Collections to 2.3 shard and I keep getting this error. I opened up ChiefParoxysmus.cs to compare but they were the same.
Can anyone lead me to a solution?
This is the error:
This is my Altar.cs for Prism of Light:
Thanks for any help!
Code:
public override BasePeerless Boss{ get{ return new ShimmeringEffusion(); } }
Code:
public override BasePeerless Boss{ get{ return new ChiefParoxysmus(); } }
This is the error:
Code:
Errors:
+ Customs/Mondain's Legacy/Engines/Peerless System/Prism of Light/Altar.cs:
CS0029: Line 20: Cannot implicitly convert type 'Server.Mobiles.ShimmeringEf
fusion' to 'Server.Mobiles.BasePeerless'
This is my Altar.cs for Prism of Light:
Code:
using System;
using Server;
using Server.Mobiles;
namespace Server.Items
{
public class PrismOfLightAltar : PeerlessAltar
{
private int m_ID;
public override int KeyCount{ get{ return 3; } }
public override MasterKey MasterKey{ get{ return new PrismOfLightKey(); } }
public override Type[] Keys{ get{ return new Type[]
{
typeof( CrushedCrystals ), typeof( BrokenCrystals ), typeof( PiecesOfCrystal ),
typeof( JaggedCrystals ), typeof( ScatteredCrystals ), typeof( ShatteredCrystals )
}; }}
public override BasePeerless Boss{ get{ return new ShimmeringEffusion(); } }
[Constructable]
public PrismOfLightAltar() : base( 0x2206 )
{
Visible = false;
BossLocation = new Point3D( 6520, 122, -20 );
TeleportDest = new Point3D( 6520, 139, -20 );
ExitDest = new Point3D( 3785, 1107, 20 );
m_ID = 0;
}
public PrismOfLightAltar( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.Write( (int) m_ID );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_ID = reader.ReadInt();
}
public int GetID()
{
int id = m_ID;
m_ID += 1;
return id;
}
public bool TryDrop( Mobile from, Item item, int id )
{
if ( id >= 0 && id < Keys.Length && item != null )
{
if ( item.GetType() == Keys[ id ] )
return OnDragDrop( from, item );
}
return false;
}
}
public class PrismOfLightPillar : Container
{
private PrismOfLightAltar m_Altar;
private int m_ID;
[CommandProperty( AccessLevel.GameMaster )]
public PrismOfLightAltar Altar
{
get{ return m_Altar; }
set{ m_Altar = value; }
}
[CommandProperty( AccessLevel.GameMaster )]
public int ID
{
get{ return m_ID; }
set{ m_ID = value; }
}
public PrismOfLightPillar( PrismOfLightAltar altar, int hue ) : base( 0x207D )
{
Hue = hue;
Movable = false;
m_Altar = altar;
if ( m_Altar != null )
m_ID = m_Altar.GetID();
}
public PrismOfLightPillar( Serial serial ) : base( serial )
{
}
public override bool OnDragDrop( Mobile from, Item dropped )
{
if ( m_Altar == null )
return false;
if ( m_Altar.Activated )
{
from.SendLocalizedMessage( 1075213 ); // The master of this realm has already been summoned and is engaged in combat. Your opportunity will come after he has squashed the current batch of intruders!
return false;
}
if ( !m_Altar.TryDrop( from, dropped, m_ID ) )
{
from.SendLocalizedMessage( 1072682 ); // This is not the proper key.
return false;
}
else
return true;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.Write( (int) m_ID );
writer.Write( (Item) m_Altar );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_ID = reader.ReadInt();
m_Altar = reader.ReadItem() as PrismOfLightAltar;
}
}
}
Thanks for any help!