Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,179 @@
using System;
using Server.Items;
using System.Collections.Generic;
namespace Server.Mobiles
{
[CorpseName("a Putrefier corpse")]
public class Putrefier : Balron
{
[Constructable]
public Putrefier()
{
this.Name = "Putrefier";
this.Hue = 63;
this.SetStr(1057, 1400);
this.SetDex(232, 560);
this.SetInt(201, 440);
this.SetHits(3010, 4092);
this.SetDamage(27, 34);
this.SetDamageType(ResistanceType.Physical, 50);
this.SetDamageType(ResistanceType.Fire, 0);
this.SetDamageType(ResistanceType.Poison, 50);
this.SetDamageType(ResistanceType.Energy, 0);
this.SetResistance(ResistanceType.Physical, 65, 80);
this.SetResistance(ResistanceType.Fire, 65, 80);
this.SetResistance(ResistanceType.Cold, 50, 60);
this.SetResistance(ResistanceType.Poison, 100);
this.SetResistance(ResistanceType.Energy, 40, 50);
this.SetSkill(SkillName.Wrestling, 111.2, 128.0);
this.SetSkill(SkillName.Tactics, 115.2, 125.2);
this.SetSkill(SkillName.MagicResist, 143.4, 170.0);
this.SetSkill(SkillName.Anatomy, 44.6, 67.0);
this.SetSkill(SkillName.Magery, 117.6, 118.8);
this.SetSkill(SkillName.EvalInt, 113.0, 128.8);
this.SetSkill(SkillName.Meditation, 41.4, 85.0);
this.SetSkill(SkillName.Poisoning, 45.0, 50.0);
this.Fame = 24000;
this.Karma = -24000;
for (int i = 0; i < Utility.RandomMinMax(0, 2); i++)
{
this.PackItem(Loot.RandomScroll(0, Loot.ArcanistScrollTypes.Length, SpellbookType.Arcanist));
}
}
public Putrefier(Serial serial)
: base(serial)
{
}
public override void OnDeath( Container c )
{
base.OnDeath( c );
c.DropItem( new SpleenOfThePutrefier() );
if ( Utility.RandomDouble() < 0.6 )
c.DropItem( new ParrotItem() );
if ( Paragon.ChestChance > Utility.RandomDouble() )
c.DropItem( new ParagonChest( Name, 5 ) );
}
public override bool GivesMLMinorArtifact
{
get
{
return true;
}
}
public override Poison HitPoison
{
get
{
return Poison.Deadly;
}
}// Becomes Lethal with Paragon bonus
public override void OnDamagedBySpell(Mobile attacker)
{
base.OnDamagedBySpell(attacker);
this.DoCounter(attacker);
}
public override void OnGotMeleeAttack(Mobile attacker)
{
base.OnGotMeleeAttack(attacker);
this.DoCounter(attacker);
}
private void DoCounter(Mobile attacker)
{
if (this.Map == null || (attacker is BaseCreature && ((BaseCreature)attacker).BardProvoked))
return;
if (0.2 > Utility.RandomDouble())
{
/* Counterattack with Hit Poison Area
* 20-25 damage, unresistable
* Lethal poison, 100% of the time
* Particle effect: Type: "2" From: "0x4061A107" To: "0x0" ItemId: "0x36BD" ItemIdName: "explosion" FromLocation: "(296 615, 17)" ToLocation: "(296 615, 17)" Speed: "1" Duration: "10" FixedDirection: "True" Explode: "False" Hue: "0xA6" RenderMode: "0x0" Effect: "0x1F78" ExplodeEffect: "0x1" ExplodeSound: "0x0" Serial: "0x4061A107" Layer: "255" Unknown: "0x0"
* Doesn't work on provoked monsters
*/
Mobile target = null;
if (attacker is BaseCreature)
{
Mobile m = ((BaseCreature)attacker).GetMaster();
if (m != null)
target = m;
}
if (target == null || !target.InRange(this, 25))
target = attacker;
this.Animate(10, 4, 1, true, false, 0);
List<Mobile> targets = new List<Mobile>();
IPooledEnumerable eable = target.GetMobilesInRange(8);
foreach (Mobile m in eable)
{
if (m == this || !this.CanBeHarmful(m))
continue;
if (m is BaseCreature && (((BaseCreature)m).Controlled || ((BaseCreature)m).Summoned || ((BaseCreature)m).Team != this.Team))
targets.Add(m);
else if (m.Player)
targets.Add(m);
}
eable.Free();
for (int i = 0; i < targets.Count; ++i)
{
Mobile m = (Mobile)targets[i];
this.DoHarmful(m);
AOS.Damage(m, this, Utility.RandomMinMax(20, 25), true, 0, 0, 0, 100, 0);
m.FixedParticles(0x36BD, 1, 10, 0x1F78, 0xA6, 0, (EffectLayer)255);
m.ApplyPoison(this, Poison.Lethal);
}
targets.Clear();
targets.TrimExcess();
}
}
public override void GenerateLoot()
{
this.AddLoot(LootPack.UltraRich, 3);
this.AddLoot(LootPack.MedScrolls, 2);
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}