billy

Member
C#:
Errors:
 + Custom/already Spawned/IceKing with addon dungon/Underworld System/Bosses/Hecate.cs:
    CS1061: Line 188: 'Server.IDamageable' does not contain a definition for 'Paralyzed' and no extension method 'Paralyzed' accepting a first argument of type 'Server.IDamageable' could be found (are you missing a using directive or an assembly reference?)
    CS1061: Line 189: 'Server.IDamageable' does not contain a definition for 'PlaySound' and no extension method 'PlaySound' accepting a first argument of type 'Server.IDamageable' could be found (are you missing a using directive or an assembly reference?)


would anyone mind helping me out please??? im all out of ideas
 

Attachments

  • Hecate.cs
    6.6 KB · Views: 8
In OnThink method:
 public override void OnThink()
           {
base.OnThink(); //you forgot this

               Mobile m = Combatant as Mobile; //add this
 
public override void OnThink()
{
base.OnThink(); //you forgot this
Mobile m = Combatant as Mobile; //add this
if ( m_DoSpawn < DateTime.Now )
{
DoSpawn();
m_DoSpawn = DateTime.Now + TimeSpan.FromHours( 1000.0 );
}

if ( m_NextHeal < DateTime.Now && ((m_Melinoe != null && m_Melinoe.Alive) || (m_Hekabe != null && m_Hekabe.Alive) || (m_Gale != null && m_Gale.Alive)) )
{
this.Hits += 50000;
this.Say( "You will never defeat me while my minions live!" );
m_NextHeal = DateTime.Now + TimeSpan.FromMinutes( 1.0 );
}
if ( this.Combatant != null )
{
if ( m_NextAreaBlast < DateTime.Now )
{
ArrayList alist = new ArrayList();
IPooledEnumerable eable = this.Map.GetMobilesInRange( this.Location, 7 );
foreach( Mobile m in eable )
alist.Add( m );
eable.Free();
if ( alist != null && alist.Count > 0 )
{
for( int i = 0; i < alist.Count; i++ )
{

Mobile m = (Mobile)alist;

if ( m is BaseCreature )
{
BaseCreature c = m as BaseCreature;
if ( c.ControlMaster != null )
{
AOS.Damage( c, this, Utility.Random( 25, 50 ), true, 100, 0, 0, 0, 0 );
c.BoltEffect( 3 );
}
}
else
{
AOS.Damage( m, this, Utility.Random( 25, 50 ), true, 100, 0, 0, 0, 0 );
m.BoltEffect( 3 );
}
}
}
m_NextAreaBlast = DateTime.Now + TimeSpan.FromMinutes( 1.0 );
}
if ( m_NextParalyze < DateTime.Now )
{
this.Combatant.Paralyzed = true;
this.Combatant.PlaySound( 516 );
m_NextParalyze = DateTime.Now + TimeSpan.FromSeconds( 45.0 );
}
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back