Announcement

Collapse
No announcement yet.

No suitable method found to override?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • No suitable method found to override?

    I download this scripts, but there is an error on line 61:

    using System;
    using System.Collections;
    using Server;
    using Server.Mobiles;
    using Server.Spells;

    namespace Server.Items
    {
    public class SpidersHide : BaseOuterTorso
    {
    public override int ArtifactRarity{ get{ return 13; } }
    [Constructable]
    public SpidersHide() : base( 0x2684 ) // Hooded Shroud
    {
    Hue = 1932; // Black White
    Name = "The Lurkin Predator";
    Attributes.BonusStr = 5;
    Attributes.BonusDex = 5;
    }

    public SpidersHide( Serial serial ) : base( serial )
    {
    }

    public override bool OnEquip( Mobile from )
    {
    if ( !from.CanBeginAction( typeof( Server.Spells.Seventh.PolymorphSpell ) ) )
    {
    from.SendLocalizedMessage( 1061628 ); // You can't do that while polymorphed.
    return false;
    }
    else if ( TransformationSpellHelper.UnderTransformation( from ) )
    {
    from.SendMessage( "You cannot equip that in your current form." );
    return false;
    }
    else if ( DisguiseTimers.IsDisguised( from ) )
    {
    from.SendLocalizedMessage( 1061631 ); // You can't do that while disguised.
    return false;
    }

    from.SendMessage( "You feel the power of the Spider taking over your body!" );
    from.SolidHueOverride = 1932;

    if( !from.Mounted ) // Only transform if not mounted..
    {
    from.BodyMod = 173;
    from.FixedParticles( 0x375A, 10, 15, 5010, EffectLayer.Waist );
    from.FixedParticles( 0x376A, 1, 14, 0x13B5, EffectLayer.Waist );
    from.PlaySound( from.Body.IsFemale ? 0x338 : 0x44A );
    }

    else
    {
    from.SendMessage( 1154, "The transformation was incomplete! The Spider is too huge to ride mounts!!" );
    }
    return true;
    }

    public override void OnRemoved( object parent ) //Error:no suitable method found to override
    {
    if ( parent is Mobile )
    {
    Mobile from = ( Mobile ) parent;

    from.SolidHueOverride = -1; // Remove the Black Hue

    from.BodyMod = 0; // Remove the Spider Body.

    from.FixedParticles( 0x375A, 10, 15, 5010, EffectLayer.Waist );
    from.SendMessage( "You feel yourself weakening back to your original self." );
    }

    base.OnRemoved( parent );
    }

    public override void Serialize( GenericWriter writer )
    {
    base.Serialize( writer );
    writer.Write( ( int ) 0 );
    }

    public override void Deserialize( GenericReader reader )
    {
    base.Deserialize( reader );
    int version = reader.ReadInt();
    }
    }
    }
    Last edited by arus; 02-06-2017, 09:09 PM.

  • #2
    You might look at these links to find something that may help you with the error:
    https://www.google.com/#q=no+suitabl...+override+c%23
    RunUO - Ultima Online Emulator - www.runuo.net

    Comment


    • #3
      This looks to be based on an older core. What version of RunUO are you currently running?

      Comment

      Working...
      X