holy water script
ok guys, not understanding why this isn't working, can anyone find what i'm missing.
THere is the error, but i dont see anything wrong!
ok guys, not understanding why this isn't working, can anyone find what i'm missing.
PHP:
using System;
using Server;
namespace Server.Items
{
public class HolyWater : BaseExplosionPotion
{
public override int MinDamage { get { return 10; } }
public override int MaxDamage { get { return 15; } }
[Constructable]
public HolyWater() : base( PotionEffect.ExplosionGreater )
{
Name = " Holy Water ";
Hue = 1264;
}
public override void OnHit( Mobile attacker, Mobile defender )
{
if ( defender is Lesservampire || defender is VampireLord || defender is Vampire )
defender.Damage( Utility.Random( 5, 11 ), attacker );
base.OnHit( attacker, defender );
}
public HolyWater( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
THere is the error, but i dont see anything wrong!
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Custom\HolyWater.cs: CS0115: (line 17, column 24) 'Server.Item
s.HolyWater.OnHit(Server.Mobile, Server.Mobile)': no suitable method found to ov
erride
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.