60 lines
No EOL
1.2 KiB
C#
60 lines
No EOL
1.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Server.Items;
|
|
using Server.Targeting;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a troll corpse" )]
|
|
public class Troll : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Troll () : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "a troll";
|
|
Body = Utility.RandomList( 53, 54, 55 );
|
|
BaseSoundID = 461;
|
|
|
|
SetStr( 176, 205 );
|
|
SetDex( 46, 65 );
|
|
SetInt( 46, 70 );
|
|
|
|
SetHits( 106, 123 );
|
|
|
|
SetDamage( 8, 14 );
|
|
|
|
SetSkill( SkillName.MagicResist, 45.1, 60.0 );
|
|
SetSkill( SkillName.Tactics, 50.1, 70.0 );
|
|
SetSkill( SkillName.HandToHand, 50.1, 70.0 );
|
|
|
|
Fame = 3500;
|
|
Karma = -3500;
|
|
|
|
VirtualArmor = 40;
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Average );
|
|
}
|
|
|
|
public override bool CanRummageCorpses{ get{ return true; } }
|
|
public override int Meat{ get{ return 2; } }
|
|
|
|
public Troll( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
public override void Serialize( GenericWriter writer )
|
|
{
|
|
base.Serialize( writer );
|
|
writer.Write( (int) 0 );
|
|
}
|
|
|
|
public override void Deserialize( GenericReader reader )
|
|
{
|
|
base.Deserialize( reader );
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
} |