AvatarsConquest/Scripts/Mobiles/Bugs/ArcaneScarab.cs

78 lines
No EOL
2 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using Server.Items;
using Server.Targeting;
namespace Server.Mobiles
{
[CorpseName( "a beetle corpse" )]
public class ArcaneScarab : BaseCreature
{
[Constructable]
public ArcaneScarab() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "an arcane scarab";
Body = 68;
BaseSoundID = 0x4E5;
SetStr( 401, 460 );
SetDex( 121, 170 );
SetInt( 376, 450 );
SetHits( 301, 360 );
SetDamage( 15, 22 );
SetSkill( SkillName.Concentration, 100.1, 125.0 );
SetSkill( SkillName.Magery, 100.1, 110.0 );
SetSkill( SkillName.Poisoning, 120.1, 140.0 );
SetSkill( SkillName.MagicResist, 95.1, 110.0 );
SetSkill( SkillName.Tactics, 78.1, 93.0 );
SetSkill( SkillName.HandToHand, 70.1, 77.5 );
Fame = 15000;
Karma = -15000;
VirtualArmor = 48;
switch ( Utility.Random( 10 ))
{
case 0: PackItem( new LeftArm() ); break;
case 1: PackItem( new RightArm() ); break;
case 2: PackItem( new Torso() ); break;
case 3: PackItem( new Bone() ); break;
case 4: PackItem( new RibCage() ); break;
case 5: PackItem( new RibCage() ); break;
case 6: PackItem( new BonePile() ); break;
case 7: PackItem( new BonePile() ); break;
case 8: PackItem( new BonePile() ); break;
case 9: PackItem( new BonePile() ); break;
}
}
public override void GenerateLoot()
{
AddLoot( LootPack.FilthyRich, 2 );
AddLoot( LootPack.MedScrolls, 1 );
}
public override Poison PoisonImmune{ get{ return Poison.Greater; } }
public override Poison HitPoison{ get{ return Poison.Greater; } }
public ArcaneScarab( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}