Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
137
Projects/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBrute.cs
Normal file
137
Projects/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBrute.cs
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
using System.Linq;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class OrcBrute : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public OrcBrute() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 189;
|
||||
BaseSoundID = 0x45A;
|
||||
|
||||
SetStr(767, 945);
|
||||
SetDex(66, 75);
|
||||
SetInt(46, 70);
|
||||
|
||||
SetHits(476, 552);
|
||||
|
||||
SetDamage(20, 25);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 45, 55);
|
||||
SetResistance(ResistanceType.Fire, 40, 50);
|
||||
SetResistance(ResistanceType.Cold, 25, 35);
|
||||
SetResistance(ResistanceType.Poison, 25, 35);
|
||||
SetResistance(ResistanceType.Energy, 25, 35);
|
||||
|
||||
SetSkill(SkillName.Macing, 90.1, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 125.1, 140.0);
|
||||
SetSkill(SkillName.Tactics, 90.1, 100.0);
|
||||
SetSkill(SkillName.Wrestling, 90.1, 100.0);
|
||||
|
||||
Fame = 15000;
|
||||
Karma = -15000;
|
||||
|
||||
VirtualArmor = 50;
|
||||
|
||||
Item ore = new ShadowIronOre(25);
|
||||
ore.ItemID = 0x19B9;
|
||||
PackItem(ore);
|
||||
PackItem(new IronIngot(10));
|
||||
|
||||
if (0.05 > Utility.RandomDouble())
|
||||
PackItem(new OrcishKinMask());
|
||||
|
||||
if (0.2 > Utility.RandomDouble())
|
||||
PackItem(new BolaBall());
|
||||
}
|
||||
|
||||
public OrcBrute(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "an orcish corpse";
|
||||
public override string DefaultName => "an orc brute";
|
||||
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
public override int Meat => 2;
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override bool AutoDispel => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (m.Player && m.FindItemOnLayer(Layer.Helm) is OrcishKinMask)
|
||||
return false;
|
||||
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void AggressiveAction(Mobile aggressor, bool criminal)
|
||||
{
|
||||
base.AggressiveAction(aggressor, criminal);
|
||||
|
||||
Item item = aggressor.FindItemOnLayer(Layer.Helm);
|
||||
|
||||
if (item is OrcishKinMask)
|
||||
{
|
||||
AOS.Damage(aggressor, 50, 0, 100, 0, 0, 0);
|
||||
item.Delete();
|
||||
aggressor.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
|
||||
aggressor.PlaySound(0x307);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnDamagedBySpell(Mobile caster)
|
||||
{
|
||||
if (caster == this)
|
||||
return;
|
||||
|
||||
SpawnOrcLord(caster);
|
||||
}
|
||||
|
||||
public void SpawnOrcLord(Mobile target)
|
||||
{
|
||||
Map map = target.Map;
|
||||
|
||||
if (map == null)
|
||||
return;
|
||||
|
||||
IPooledEnumerable<OrcishLord> eable = GetMobilesInRange<OrcishLord>(10);
|
||||
|
||||
if (eable.Count() < 10)
|
||||
{
|
||||
BaseCreature orc = new SpawnedOrcishLord{ Team = Team };
|
||||
|
||||
orc.MoveToWorld(map.GetRandomNearbyLocation(target.Location), map);
|
||||
orc.Combatant = target;
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
||||
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