#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,84 @@
using System;
using Server;
using Server.Misc;
using Server.Items;
using Server.Factions;
namespace Server.Mobiles
{
[CorpseName( "a wisp corpse" )]
public class DarkWisp : BaseCreature
{
public override InhumanSpeech SpeechType{ get{ return InhumanSpeech.Wisp; } }
public override Ethics.Ethic EthicAllegiance { get { return Ethics.Ethic.Evil; } }
public override TimeSpan ReacquireDelay { get { return TimeSpan.FromSeconds( 1.0 ); } }
[Constructable]
public DarkWisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a wisp";
Body = 165;
BaseSoundID = 466;
SetStr( 196, 225 );
SetDex( 196, 225 );
SetInt( 196, 225 );
SetHits( 118, 135 );
SetDamage( 17, 18 );
SetDamageType( ResistanceType.Physical, 50 );
SetDamageType( ResistanceType.Energy, 50 );
SetResistance( ResistanceType.Physical, 35, 45 );
SetResistance( ResistanceType.Fire, 20, 40 );
SetResistance( ResistanceType.Cold, 10, 30 );
SetResistance( ResistanceType.Poison, 5, 10 );
SetResistance( ResistanceType.Energy, 50, 70 );
SetSkill( SkillName.EvalInt, 80.0 );
SetSkill( SkillName.Magery, 80.0 );
SetSkill( SkillName.MagicResist, 80.0 );
SetSkill( SkillName.Tactics, 80.0 );
SetSkill( SkillName.Wrestling, 80.0 );
Fame = 4000;
Karma = -4000;
VirtualArmor = 40;
AddItem( new LightSource() );
}
public override void GenerateLoot()
{
AddLoot( LootPack.Rich );
AddLoot( LootPack.Average );
}
public override OppositionGroup OppositionGroup
{
get{ return OppositionGroup.FeyAndUndead; }
}
public DarkWisp( 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();
}
}
}

View file

@ -0,0 +1,148 @@
using System;
using Server;
using Server.Items;
using Server.Gumps;
namespace Server.Mobiles
{
[CorpseName( "an ethereal warrior corpse" )]
public class EtherealWarrior : BaseCreature
{
public override bool InitialInnocent{ get{ return true; } }
[Constructable]
public EtherealWarrior() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
Name = NameList.RandomName( "ethereal warrior" );
Body = 123;
SetStr( 586, 785 );
SetDex( 177, 255 );
SetInt( 351, 450 );
SetHits( 352, 471 );
SetDamage( 13, 19 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 80, 90 );
SetResistance( ResistanceType.Fire, 40, 50 );
SetResistance( ResistanceType.Cold, 40, 50 );
SetResistance( ResistanceType.Poison, 40, 50 );
SetResistance( ResistanceType.Energy, 40, 50 );
SetSkill( SkillName.Anatomy, 50.1, 75.0 );
SetSkill( SkillName.EvalInt, 90.1, 100.0 );
SetSkill( SkillName.Magery, 99.1, 100.0 );
SetSkill( SkillName.Meditation, 90.1, 100.0 );
SetSkill( SkillName.MagicResist, 90.1, 100.0 );
SetSkill( SkillName.Tactics, 90.1, 100.0 );
SetSkill( SkillName.Wrestling, 97.6, 100.0 );
Fame = 7000;
Karma = 7000;
VirtualArmor = 120;
}
public override int TreasureMapLevel{ get{ return Core.AOS ? 5 : 0; } }
public override void GenerateLoot()
{
AddLoot( LootPack.Rich, 3 );
AddLoot( LootPack.Gems );
}
private DateTime m_NextResurrect;
private static TimeSpan ResurrectDelay = TimeSpan.FromSeconds(2.0);
public override void OnMovement(Mobile from, Point3D oldLocation)
{
if (!from.Alive && (from is PlayerMobile))
{
if (!from.Frozen && (DateTime.UtcNow >= m_NextResurrect) && InRange(from, 4) && !InRange(oldLocation, 4) && InLOS(from))
{
m_NextResurrect = DateTime.UtcNow + ResurrectDelay;
if (!from.Criminal && (from.Kills < 5) && (from.Karma > 0))
{
if (from.Map != null && from.Map.CanFit(from.Location, 16, false, false))
{
Direction = GetDirectionTo(from);
from.PlaySound(0x1F2);
from.FixedEffect(0x376A, 10, 16);
from.CloseGump(typeof(ResurrectGump));
from.SendGump(new ResurrectGump(from, ResurrectMessage.Healer));
}
}
}
}
}
public override OppositionGroup OppositionGroup
{
get{ return OppositionGroup.FeyAndUndead; }
}
public override int Feathers{ get{ return 100; } }
public override int GetAngerSound()
{
return 0x2F8;
}
public override int GetIdleSound()
{
return 0x2F8;
}
public override int GetAttackSound()
{
return Utility.Random( 0x2F5, 2 );
}
public override int GetHurtSound()
{
return 0x2F9;
}
public override int GetDeathSound()
{
return 0x2F7;
}
public override void OnGaveMeleeAttack( Mobile defender )
{
base.OnGaveMeleeAttack( defender );
defender.Damage( Utility.Random( 10, 10 ), this );
defender.Stam -= Utility.Random( 10, 10 );
defender.Mana -= Utility.Random( 10, 10 );
}
public override void OnGotMeleeAttack( Mobile attacker )
{
base.OnGotMeleeAttack( attacker );
attacker.Damage( Utility.Random( 10, 10 ), this );
attacker.Stam -= Utility.Random( 10, 10 );
attacker.Mana -= Utility.Random( 10, 10 );
}
public EtherealWarrior( 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();
}
}
}

View file

@ -0,0 +1,91 @@
using System;
using Server;
using Server.Misc;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "a pixie corpse" )]
public class Pixie : BaseCreature
{
public override bool InitialInnocent{ get{ return true; } }
[Constructable]
public Pixie() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
Name = NameList.RandomName( "pixie" );
Body = 128;
BaseSoundID = 0x467;
SetStr( 21, 30 );
SetDex( 301, 400 );
SetInt( 201, 250 );
SetHits( 13, 18 );
SetDamage( 9, 15 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 80, 90 );
SetResistance( ResistanceType.Fire, 40, 50 );
SetResistance( ResistanceType.Cold, 40, 50 );
SetResistance( ResistanceType.Poison, 40, 50 );
SetResistance( ResistanceType.Energy, 40, 50 );
SetSkill( SkillName.EvalInt, 90.1, 100.0 );
SetSkill( SkillName.Magery, 90.1, 100.0 );
SetSkill( SkillName.Meditation, 90.1, 100.0 );
SetSkill( SkillName.MagicResist, 100.5, 150.0 );
SetSkill( SkillName.Tactics, 10.1, 20.0 );
SetSkill( SkillName.Wrestling, 10.1, 12.5 );
Fame = 7000;
Karma = 7000;
VirtualArmor = 100;
if ( 0.02 > Utility.RandomDouble() )
PackStatue();
}
public override void GenerateLoot()
{
AddLoot( LootPack.LowScrolls );
AddLoot( LootPack.Gems, 2 );
}
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.35 )
c.DropItem( new PixieLeg() );
}
public override HideType HideType{ get{ return HideType.Spined; } }
public override int Hides{ get{ return 5; } }
public override int Meat{ get{ return 1; } }
public Pixie( Serial serial ) : base( serial )
{
}
public override OppositionGroup OppositionGroup
{
get{ return OppositionGroup.FeyAndUndead; }
}
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();
}
}
}

View file

@ -0,0 +1,81 @@
using System;
using Server;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "a wisp corpse" )]
public class ShadowWisp : BaseCreature
{
[Constructable]
public ShadowWisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.3, 0.6 )
{
Name = "a shadow wisp";
Body = 165;
BaseSoundID = 466;
SetStr( 16, 40 );
SetDex( 16, 45 );
SetInt( 11, 25 );
SetHits( 10, 24 );
SetDamage( 5, 10 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 15, 20 );
SetResistance( ResistanceType.Fire, 5, 10 );
SetResistance( ResistanceType.Poison, 5, 10 );
SetResistance( ResistanceType.Energy, 15, 20 );
SetSkill( SkillName.EvalInt, 40.0 );
SetSkill( SkillName.Magery, 50.0 );
SetSkill( SkillName.Meditation, 40.0 );
SetSkill( SkillName.MagicResist, 10.0 );
SetSkill( SkillName.Tactics, 0.1, 15.0 );
SetSkill( SkillName.Wrestling, 25.1, 40.0 );
Fame = 500;
VirtualArmor = 18;
AddItem( new LightSource() );
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 ShadowWisp( Serial serial ) : base( serial )
{
}
public override OppositionGroup OppositionGroup
{
get{ return OppositionGroup.FeyAndUndead; }
}
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();
}
}
}

View file

@ -0,0 +1,87 @@
using System;
using Server;
using Server.Misc;
using Server.Items;
using Server.Factions;
namespace Server.Mobiles
{
[CorpseName( "a wisp corpse" )]
public class Wisp : BaseCreature
{
public override InhumanSpeech SpeechType{ get{ return InhumanSpeech.Wisp; } }
public override Faction FactionAllegiance{ get{ return CouncilOfMages.Instance; } }
public override Ethics.Ethic EthicAllegiance { get { return Ethics.Ethic.Hero; } }
public override TimeSpan ReacquireDelay { get { return TimeSpan.FromSeconds( 1.0 ); } }
[Constructable]
public Wisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a wisp";
Body = 58;
BaseSoundID = 466;
SetStr( 196, 225 );
SetDex( 196, 225 );
SetInt( 196, 225 );
SetHits( 118, 135 );
SetDamage( 17, 18 );
SetDamageType( ResistanceType.Physical, 50 );
SetDamageType( ResistanceType.Energy, 50 );
SetResistance( ResistanceType.Physical, 35, 45 );
SetResistance( ResistanceType.Fire, 20, 40 );
SetResistance( ResistanceType.Cold, 10, 30 );
SetResistance( ResistanceType.Poison, 5, 10 );
SetResistance( ResistanceType.Energy, 50, 70 );
SetSkill( SkillName.EvalInt, 80.0 );
SetSkill( SkillName.Magery, 80.0 );
SetSkill( SkillName.MagicResist, 80.0 );
SetSkill( SkillName.Tactics, 80.0 );
SetSkill( SkillName.Wrestling, 80.0 );
Fame = 4000;
Karma = 0;
VirtualArmor = 40;
if ( Core.ML && Utility.RandomDouble() < .33 )
PackItem( Engines.Plants.Seed.RandomPeculiarSeed(3) );
AddItem( new LightSource() );
}
public override void GenerateLoot()
{
AddLoot( LootPack.Rich );
AddLoot( LootPack.Average );
}
public override OppositionGroup OppositionGroup
{
get{ return OppositionGroup.FeyAndUndead; }
}
public Wisp( 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();
}
}
}