S
Schipio
Guest
Giant Beetle Code Help?
ok i have created this code to make the ridable beetle that is in lbr i should say at this poing i am a total novice at coding creatures.
[code:1]
using System;
using Server.Mobiles;
namespace Server.Scripts.Mobiles.Animals.Mounts
{
public class Beetle : BaseMount
{
[Constructable]
public Beetle() : this( "a beetle" )
{
}
[Constructable]
public Beetle( string name ) : base( name, 0x317, 0x317 )
{
InitStats( Utility.Random( 50, 30 ), Utility.Random( 50, 30 ), 10 );
Skills[SkillName.MagicResist].Base = 25.0 + (Utility.RandomDouble() * 5.0);
Skills[SkillName.Wrestling].Base = 35.0 + (Utility.RandomDouble() * 10.0);
Skills[SkillName.Tactics].Base = 30.0 + (Utility.RandomDouble() * 15.0);
}
public Beetle( 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]
and that is fine the giant beetle load's but when i mount it i get a normal tan horse. is thius somthing i have done wrong?
ok i have created this code to make the ridable beetle that is in lbr i should say at this poing i am a total novice at coding creatures.
[code:1]
using System;
using Server.Mobiles;
namespace Server.Scripts.Mobiles.Animals.Mounts
{
public class Beetle : BaseMount
{
[Constructable]
public Beetle() : this( "a beetle" )
{
}
[Constructable]
public Beetle( string name ) : base( name, 0x317, 0x317 )
{
InitStats( Utility.Random( 50, 30 ), Utility.Random( 50, 30 ), 10 );
Skills[SkillName.MagicResist].Base = 25.0 + (Utility.RandomDouble() * 5.0);
Skills[SkillName.Wrestling].Base = 35.0 + (Utility.RandomDouble() * 10.0);
Skills[SkillName.Tactics].Base = 30.0 + (Utility.RandomDouble() * 15.0);
}
public Beetle( 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]
and that is fine the giant beetle load's but when i mount it i get a normal tan horse. is thius somthing i have done wrong?