#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.

This commit is contained in:
WarrentyExpired 2026-08-06 11:06:05 -04:00
parent b51c58f514
commit 3045c83799
3512 changed files with 627673 additions and 0 deletions

View file

@ -0,0 +1,78 @@
using System;
using Server;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "a crystal elemental corpse" )]
public class CrystalElemental : BaseCreature
{
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.BleedAttack;
}
[Constructable]
public CrystalElemental() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a crystal elemental";
Body = 300;
BaseSoundID = 278;
SetStr( 136, 160 );
SetDex( 51, 65 );
SetInt( 86, 110 );
SetHits( 150 );
SetDamage( 10, 15 );
SetDamageType( ResistanceType.Physical, 80 );
SetDamageType( ResistanceType.Energy, 20 );
SetResistance( ResistanceType.Physical, 50, 60 );
SetResistance( ResistanceType.Fire, 40, 50 );
SetResistance( ResistanceType.Cold, 40, 50 );
SetResistance( ResistanceType.Poison, 100 );
SetResistance( ResistanceType.Energy, 55, 70 );
SetSkill( SkillName.EvalInt, 70.1, 75.0 );
SetSkill( SkillName.Magery, 70.1, 75.0 );
SetSkill( SkillName.Meditation, 65.1, 75.0 );
SetSkill( SkillName.MagicResist, 80.1, 90.0 );
SetSkill( SkillName.Tactics, 75.1, 85.0 );
SetSkill( SkillName.Wrestling, 65.1, 75.0 );
Fame = 6500;
Karma = -6500;
VirtualArmor = 54;
}
public override void GenerateLoot()
{
AddLoot( LootPack.Rich );
AddLoot( LootPack.Average );
}
public override bool BleedImmune{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int TreasureMapLevel{ get{ return 1; } }
public CrystalElemental( 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();
}
}
}