ExX
Member
Hello all, I tried doing some searches with no real luck. I recently came back to ServUO after life got to hectic and I am trying to update my old server for some friends and family to check out. I have been chugging away at the errors but it seems some weapons I had that used to work no longer work. I am getting this error.
Errors:
+ Custom/Items/Soul Weapons/Entrapped Soul Axes/EntrappedSoulAxe.cs:
CS0115: Line 38: 'EntrappedSoulAxe.OnHit(Mobile, Mobile, double)': no suitable method found to override
This is the part of the script.
public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
{
if ( this.Charges >= 1 && Utility.RandomDouble() <= .25 )
{
Map map = this.Map;
if ( map == null || map == Map.Internal ) return;
TimeSpan duration = TimeSpan.FromMinutes( 5 );
EnslavedEntrappedSoul minion = new EnslavedEntrappedSoul( attacker, defender, duration );
minion.MoveToWorld( defender.Location, defender.Map );
attacker.Say( "Those I kill become my slaves!" );
minion.Combatant = defender;
this.Charges -= 1;
attacker.Karma -= 25;
}
base.OnHit( attacker, defender, damageBonus );
}
What has changed that this would be causing an error now? I'm sorry, I'm pretty out of the loop. This is the same error many of my weapons are having but once I figure it out I can fix all those too.
Errors:
+ Custom/Items/Soul Weapons/Entrapped Soul Axes/EntrappedSoulAxe.cs:
CS0115: Line 38: 'EntrappedSoulAxe.OnHit(Mobile, Mobile, double)': no suitable method found to override
This is the part of the script.
public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
{
if ( this.Charges >= 1 && Utility.RandomDouble() <= .25 )
{
Map map = this.Map;
if ( map == null || map == Map.Internal ) return;
TimeSpan duration = TimeSpan.FromMinutes( 5 );
EnslavedEntrappedSoul minion = new EnslavedEntrappedSoul( attacker, defender, duration );
minion.MoveToWorld( defender.Location, defender.Map );
attacker.Say( "Those I kill become my slaves!" );
minion.Combatant = defender;
this.Charges -= 1;
attacker.Karma -= 25;
}
base.OnHit( attacker, defender, damageBonus );
}
What has changed that this would be causing an error now? I'm sorry, I'm pretty out of the loop. This is the same error many of my weapons are having but once I figure it out I can fix all those too.
Last edited: