Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
71
Projects/Scripts/Mobiles/Monsters/Mammal/Melee/HellHound.cs
Normal file
71
Projects/Scripts/Mobiles/Monsters/Mammal/Melee/HellHound.cs
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class HellHound : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public HellHound() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 98;
|
||||
BaseSoundID = 229;
|
||||
|
||||
SetStr(102, 150);
|
||||
SetDex(81, 105);
|
||||
SetInt(36, 60);
|
||||
|
||||
SetHits(66, 125);
|
||||
|
||||
SetDamage(11, 17);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 20);
|
||||
SetDamageType(ResistanceType.Fire, 80);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 25, 35);
|
||||
SetResistance(ResistanceType.Fire, 30, 40);
|
||||
SetResistance(ResistanceType.Poison, 10, 20);
|
||||
SetResistance(ResistanceType.Energy, 10, 20);
|
||||
|
||||
Fame = 3400;
|
||||
Karma = -3400;
|
||||
|
||||
VirtualArmor = 30;
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 1;
|
||||
MinTameSkill = 85.5;
|
||||
|
||||
PackItem(new SulfurousAsh(5));
|
||||
}
|
||||
|
||||
public HellHound(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a hell hound corpse";
|
||||
public override string DefaultName => "a hell hound";
|
||||
|
||||
public override bool HasBreath => true; // fire breath enabled
|
||||
public override int Meat => 1;
|
||||
public override FoodType FavoriteFood => FoodType.Meat;
|
||||
public override PackInstinct PackInstinct => PackInstinct.Canine;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average);
|
||||
AddLoot(LootPack.Meager);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
146
Projects/Scripts/Mobiles/Monsters/Mammal/Melee/VorpalBunny.cs
Normal file
146
Projects/Scripts/Mobiles/Monsters/Mammal/Melee/VorpalBunny.cs
Normal file
|
|
@ -0,0 +1,146 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class VorpalBunny : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public VorpalBunny() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 205;
|
||||
Hue = 0x480;
|
||||
|
||||
SetStr(15);
|
||||
SetDex(2000);
|
||||
SetInt(1000);
|
||||
|
||||
SetHits(2000);
|
||||
SetStam(500);
|
||||
SetMana(0);
|
||||
|
||||
SetDamage(1);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 200.0);
|
||||
SetSkill(SkillName.Tactics, 5.0);
|
||||
SetSkill(SkillName.Wrestling, 5.0);
|
||||
|
||||
Fame = 1000;
|
||||
Karma = 0;
|
||||
|
||||
VirtualArmor = 4;
|
||||
|
||||
int carrots = Utility.RandomMinMax(5, 10);
|
||||
PackItem(new Carrot(carrots));
|
||||
|
||||
if (Utility.Random(5) == 0)
|
||||
PackItem(new BrightlyColoredEggs());
|
||||
|
||||
PackStatue();
|
||||
|
||||
DelayBeginTunnel();
|
||||
}
|
||||
|
||||
public VorpalBunny(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a vorpal bunny corpse";
|
||||
public override string DefaultName => "a vorpal bunny";
|
||||
|
||||
public override int Meat => 1;
|
||||
public override int Hides => 1;
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich, 2);
|
||||
}
|
||||
|
||||
public virtual void DelayBeginTunnel()
|
||||
{
|
||||
Timer.DelayCall(TimeSpan.FromMinutes(3.0), BeginTunnel);
|
||||
}
|
||||
|
||||
public virtual void BeginTunnel()
|
||||
{
|
||||
if (Deleted)
|
||||
return;
|
||||
|
||||
new BunnyHole().MoveToWorld(Location, Map);
|
||||
|
||||
Frozen = true;
|
||||
Say("* The bunny begins to dig a tunnel back to its underground lair *");
|
||||
PlaySound(0x247);
|
||||
|
||||
Timer.DelayCall(TimeSpan.FromSeconds(5.0), Delete);
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0xC9;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xCA;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xCB;
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
DelayBeginTunnel();
|
||||
}
|
||||
|
||||
public class BunnyHole : Item
|
||||
{
|
||||
public BunnyHole() : base(0x913)
|
||||
{
|
||||
Movable = false;
|
||||
Hue = 1;
|
||||
|
||||
Timer.DelayCall(TimeSpan.FromSeconds(40.0), Delete);
|
||||
}
|
||||
|
||||
public BunnyHole(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string DefaultName => "a mysterious rabbit hole";
|
||||
|
||||
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();
|
||||
|
||||
Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue