Please check this script
Ok, this is a stupid script, but I'm just learning and wanted to start real small.
COW:
[code:1]using System;
using Server.Mobiles;
namespace Server.Scripts.Mobiles.Monsters.Melee
{
[CorpseName( "a cow corpse" )]
public class spottedcow : AggressiveAI
{
[Constructable]
public spottedcow()
{
Body = 0xd8;
this.Name = ( "a cow" );
this.InitStats(30,15,0); //Str Dex Int
this.Skills[SkillName.MagicResist].Base = (5.5);
Skills[SkillName.Wrestling].Base = (8.1);
Skills[SkillName.Tactics].Base = (5.5);
}
public spottedcow( 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();
}
}
}[/code:1]
Ok Question is this:
a)Since I'm using an "AggresiveAI" basically the cow is mad and chances ya around the screen. There a way to make it so it wont attack a thing, yet isn't "blue." Or is the AI for this not written yet?
b)is there a way to add sounds...like the death sounds ect. Or is that not possable yet?
-Thanks-
Ok, this is a stupid script, but I'm just learning and wanted to start real small.
COW:
[code:1]using System;
using Server.Mobiles;
namespace Server.Scripts.Mobiles.Monsters.Melee
{
[CorpseName( "a cow corpse" )]
public class spottedcow : AggressiveAI
{
[Constructable]
public spottedcow()
{
Body = 0xd8;
this.Name = ( "a cow" );
this.InitStats(30,15,0); //Str Dex Int
this.Skills[SkillName.MagicResist].Base = (5.5);
Skills[SkillName.Wrestling].Base = (8.1);
Skills[SkillName.Tactics].Base = (5.5);
}
public spottedcow( 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();
}
}
}[/code:1]
Ok Question is this:
a)Since I'm using an "AggresiveAI" basically the cow is mad and chances ya around the screen. There a way to make it so it wont attack a thing, yet isn't "blue." Or is the AI for this not written yet?
b)is there a way to add sounds...like the death sounds ect. Or is that not possable yet?
-Thanks-