well I know that I MAY do it, yes, the question is CAN I?
and I can. sort of. this will be the first script I've ever made where I wasnt adding something like basic furniture out of the muls... anyway here's 2 of the errors the server returns when compiling:
"invalid token in class, struct, or interface member declaration" along with "type or namespace definition"
neither of which I understand
all I did was copy the script from an existing food (the banana) and changed every occurence of banana to HumanBlood. then I used your race tag from infravision.cs as an example for the race tag required to eat the item. ... what am I doing wrong?
here's the script:
using System;
using Server.Network;
namespace Server.Items
{
public class HumanBlood : Food
{
[Constructable]
public HumanBlood() : this( 1 )
{
}
[Constructable]
public HumanBlood( int amount ) : base( amount, 0xF7D )
{
this.Weight = 1.0;
this.FillFactor = 1;
}
public Humanblood( Serial serial ) : base( serial )
{
}
public override Item Dupe( int amount )
{
return base.Dupe( new HumanBlood(), amount );
}
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();
}
public static bool CanUse( PlayerMobile m )
{
if ( m.Race == RaceType.Vampire )
return true;
else
return false;
}
}
}