Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
81
Projects/Scripts/Mobiles/Monsters/Misc/Magic/DarkWisp.cs
Normal file
81
Projects/Scripts/Mobiles/Monsters/Misc/Magic/DarkWisp.cs
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
using System;
|
||||
using Server.Ethics;
|
||||
using Server.Items;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class DarkWisp : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public DarkWisp() : base(AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
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 DarkWisp(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override InhumanSpeech SpeechType => InhumanSpeech.Wisp;
|
||||
|
||||
public override Ethic EthicAllegiance => Ethic.Evil;
|
||||
|
||||
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds(1.0);
|
||||
|
||||
public override string DefaultName => "a wisp";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Average);
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
141
Projects/Scripts/Mobiles/Monsters/Misc/Magic/EtherealWarrior.cs
Normal file
141
Projects/Scripts/Mobiles/Monsters/Misc/Magic/EtherealWarrior.cs
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
using System;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class EtherealWarrior : BaseCreature
|
||||
{
|
||||
private static TimeSpan ResurrectDelay = TimeSpan.FromSeconds(2.0);
|
||||
|
||||
private DateTime m_NextResurrect;
|
||||
|
||||
[Constructible]
|
||||
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 EtherealWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "an ethereal warrior corpse";
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override int TreasureMapLevel => Core.AOS ? 5 : 0;
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override int Feathers => 100;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich, 3);
|
||||
AddLoot(LootPack.Gems);
|
||||
}
|
||||
|
||||
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<ResurrectGump>();
|
||||
from.SendGump(new ResurrectGump(from, ResurrectMessage.Healer));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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 override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
85
Projects/Scripts/Mobiles/Monsters/Misc/Magic/Pixie.cs
Normal file
85
Projects/Scripts/Mobiles/Monsters/Misc/Magic/Pixie.cs
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Pixie : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
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 Pixie(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a pixie corpse";
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override HideType HideType => HideType.Spined;
|
||||
public override int Hides => 5;
|
||||
public override int Meat => 1;
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
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 void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
97
Projects/Scripts/Mobiles/Monsters/Misc/Magic/ShadowWisp.cs
Normal file
97
Projects/Scripts/Mobiles/Monsters/Misc/Magic/ShadowWisp.cs
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class ShadowWisp : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public ShadowWisp() : base(AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.3, 0.6)
|
||||
{
|
||||
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 string CorpseName => "a wisp corpse";
|
||||
public override string DefaultName => "a shadow wisp";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
86
Projects/Scripts/Mobiles/Monsters/Misc/Magic/Wisp.cs
Normal file
86
Projects/Scripts/Mobiles/Monsters/Misc/Magic/Wisp.cs
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
using System;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Ethics;
|
||||
using Server.Factions;
|
||||
using Server.Items;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Wisp : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Wisp() : base(AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
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(Seed.RandomPeculiarSeed(3));
|
||||
|
||||
AddItem(new LightSource());
|
||||
}
|
||||
|
||||
public Wisp(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override InhumanSpeech SpeechType => InhumanSpeech.Wisp;
|
||||
|
||||
public override Faction FactionAllegiance => CouncilOfMages.Instance;
|
||||
public override Ethic EthicAllegiance => Ethic.Hero;
|
||||
|
||||
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds(1.0);
|
||||
|
||||
public override string DefaultName => "a wisp";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Average);
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue