Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,276 +1,289 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class BakeKitsune : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a bake kitsune corpse";
|
||||
public override string DefaultName => "a bake kitsune";
|
||||
public class BakeKitsune : BaseCreature
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
[Constructible]
|
||||
public BakeKitsune() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 246;
|
||||
[Constructible]
|
||||
public BakeKitsune() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 246;
|
||||
|
||||
SetStr( 171, 220 );
|
||||
SetDex( 126, 145 );
|
||||
SetInt( 376, 425 );
|
||||
SetStr(171, 220);
|
||||
SetDex(126, 145);
|
||||
SetInt(376, 425);
|
||||
|
||||
SetHits( 301, 350 );
|
||||
SetHits(301, 350);
|
||||
|
||||
SetDamage( 15, 22 );
|
||||
SetDamage(15, 22);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Energy, 30 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Energy, 30);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 60 );
|
||||
SetResistance( ResistanceType.Fire, 70, 90 );
|
||||
SetResistance( ResistanceType.Cold, 40, 60 );
|
||||
SetResistance( ResistanceType.Poison, 40, 60 );
|
||||
SetResistance( ResistanceType.Energy, 40, 60 );
|
||||
SetResistance(ResistanceType.Physical, 40, 60);
|
||||
SetResistance(ResistanceType.Fire, 70, 90);
|
||||
SetResistance(ResistanceType.Cold, 40, 60);
|
||||
SetResistance(ResistanceType.Poison, 40, 60);
|
||||
SetResistance(ResistanceType.Energy, 40, 60);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Magery, 80.1, 90.0 );
|
||||
SetSkill( SkillName.MagicResist, 80.1, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 70.1, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 50.1, 55.0 );
|
||||
SetSkill(SkillName.EvalInt, 80.1, 90.0);
|
||||
SetSkill(SkillName.Magery, 80.1, 90.0);
|
||||
SetSkill(SkillName.MagicResist, 80.1, 100.0);
|
||||
SetSkill(SkillName.Tactics, 70.1, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 50.1, 55.0);
|
||||
|
||||
Fame = 8000;
|
||||
Karma = -8000;
|
||||
Fame = 8000;
|
||||
Karma = -8000;
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 2;
|
||||
MinTameSkill = 80.7;
|
||||
Tamable = true;
|
||||
ControlSlots = 2;
|
||||
MinTameSkill = 80.7;
|
||||
|
||||
|
||||
if ( Utility.RandomDouble() < .25 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
}
|
||||
if (Utility.RandomDouble() < .25)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich );
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.MedScrolls, 2 );
|
||||
}
|
||||
public BakeKitsune(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int Meat => 5;
|
||||
public override int Hides => 10;
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
public override bool ShowFameTitle => false;
|
||||
public override bool ClickTitle => false;
|
||||
public override bool PropertyTitle => false;
|
||||
public override string CorpseName => "a bake kitsune corpse";
|
||||
public override string DefaultName => "a bake kitsune";
|
||||
|
||||
public override void OnCombatantChange()
|
||||
{
|
||||
if ( Combatant == null && !IsBodyMod && !Controlled && m_DisguiseTimer == null && Utility.RandomBool() )
|
||||
m_DisguiseTimer = Timer.DelayCall( TimeSpan.FromSeconds( Utility.RandomMinMax( 15, 30 ) ), Disguise );
|
||||
}
|
||||
public override int Meat => 5;
|
||||
public override int Hides => 10;
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
public override bool ShowFameTitle => false;
|
||||
public override bool ClickTitle => false;
|
||||
public override bool PropertyTitle => false;
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
RemoveDisguise();
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.MedScrolls, 2);
|
||||
}
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
public override void OnCombatantChange()
|
||||
{
|
||||
if (Combatant == null && !IsBodyMod && !Controlled && m_DisguiseTimer == null && Utility.RandomBool())
|
||||
m_DisguiseTimer = Timer.DelayCall(TimeSpan.FromSeconds(Utility.RandomMinMax(15, 30)), Disguise);
|
||||
}
|
||||
|
||||
#region Disguise
|
||||
private Timer m_DisguiseTimer;
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
RemoveDisguise();
|
||||
|
||||
public void Disguise()
|
||||
{
|
||||
if ( Combatant != null || IsBodyMod || Controlled )
|
||||
return;
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
FixedEffect( 0x376A, 8, 32 );
|
||||
PlaySound( 0x1FE );
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
Female = Utility.RandomBool();
|
||||
if (0.1 > Utility.RandomDouble())
|
||||
{
|
||||
/* Blood Bath
|
||||
* Start cliloc 1070826
|
||||
* Sound: 0x52B
|
||||
* 2-3 blood spots
|
||||
* Damage: 2 hps per second for 5 seconds
|
||||
* End cliloc: 1070824
|
||||
*/
|
||||
|
||||
if ( Female )
|
||||
{
|
||||
BodyMod = 0x191;
|
||||
Name = NameList.RandomName( "female" );
|
||||
}
|
||||
else
|
||||
{
|
||||
BodyMod = 0x190;
|
||||
Name = NameList.RandomName( "male" );
|
||||
}
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
|
||||
Title = "the mystic llama herder";
|
||||
Hue = Race.Human.RandomSkinHue();
|
||||
HairItemID = Race.Human.RandomHair( this );
|
||||
HairHue = Race.Human.RandomHairHue();
|
||||
FacialHairItemID = Race.Human.RandomFacialHair( this );
|
||||
FacialHairHue = HairHue;
|
||||
if (timer != null)
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage(1070825); // The creature continues to rage!
|
||||
}
|
||||
else
|
||||
{
|
||||
defender.SendLocalizedMessage(1070826); // The creature goes into a rage, inflicting heavy damage!
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 4 ) )
|
||||
{
|
||||
case 0: AddItem( new Shoes( Utility.RandomNeutralHue() ) ); break;
|
||||
case 1: AddItem( new Boots( Utility.RandomNeutralHue() ) ); break;
|
||||
case 2: AddItem( new Sandals( Utility.RandomNeutralHue() ) ); break;
|
||||
case 3: AddItem( new ThighBoots( Utility.RandomNeutralHue() ) ); break;
|
||||
}
|
||||
timer = new ExpireTimer(defender, this);
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
|
||||
AddItem( new Robe( Utility.RandomNondyedHue() ) );
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4DE;
|
||||
}
|
||||
|
||||
m_DisguiseTimer = null;
|
||||
m_DisguiseTimer = Timer.DelayCall( TimeSpan.FromSeconds( 75 ), RemoveDisguise );
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4DD;
|
||||
}
|
||||
|
||||
public void RemoveDisguise()
|
||||
{
|
||||
if ( !IsBodyMod )
|
||||
return;
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4DC;
|
||||
}
|
||||
|
||||
Name = null;
|
||||
Title = null;
|
||||
BodyMod = 0;
|
||||
Hue = 0;
|
||||
HairItemID = 0;
|
||||
HairHue = 0;
|
||||
FacialHairItemID = 0;
|
||||
FacialHairHue = 0;
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4DF;
|
||||
}
|
||||
|
||||
DeleteItemOnLayer( Layer.OuterTorso );
|
||||
DeleteItemOnLayer( Layer.Shoes );
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4DB;
|
||||
}
|
||||
|
||||
m_DisguiseTimer = null;
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(1);
|
||||
}
|
||||
|
||||
public void DeleteItemOnLayer( Layer layer )
|
||||
{
|
||||
Item item = FindItemOnLayer( layer );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
|
||||
item?.Delete();
|
||||
}
|
||||
#endregion
|
||||
if (version == 0 && PhysicalResistance > 60)
|
||||
{
|
||||
SetResistance(ResistanceType.Physical, 40, 60);
|
||||
SetResistance(ResistanceType.Fire, 70, 90);
|
||||
SetResistance(ResistanceType.Cold, 40, 60);
|
||||
SetResistance(ResistanceType.Poison, 40, 60);
|
||||
SetResistance(ResistanceType.Energy, 40, 60);
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
Timer.DelayCall(TimeSpan.Zero, RemoveDisguise);
|
||||
}
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Blood Bath
|
||||
* Start cliloc 1070826
|
||||
* Sound: 0x52B
|
||||
* 2-3 blood spots
|
||||
* Damage: 2 hps per second for 5 seconds
|
||||
* End cliloc: 1070824
|
||||
*/
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private int m_Count;
|
||||
private Mobile m_From;
|
||||
private Mobile m_Mobile;
|
||||
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
public ExpireTimer(Mobile m, Mobile from) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_From = from;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
if ( timer != null )
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage( 1070825 ); // The creature continues to rage!
|
||||
}
|
||||
else
|
||||
defender.SendLocalizedMessage( 1070826 ); // The creature goes into a rage, inflicting heavy damage!
|
||||
public void DoExpire()
|
||||
{
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
|
||||
timer = new ExpireTimer( defender, this );
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
public void DrainLife()
|
||||
{
|
||||
if (m_Mobile.Alive)
|
||||
m_Mobile.Damage(2, m_From);
|
||||
else
|
||||
DoExpire();
|
||||
}
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife();
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private Mobile m_From;
|
||||
private int m_Count;
|
||||
if (++m_Count >= 5)
|
||||
{
|
||||
DoExpire();
|
||||
m_Mobile.SendLocalizedMessage(1070824); // The creature's rage subsides.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ExpireTimer( Mobile m, Mobile from ) : base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) )
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_From = from;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
#region Disguise
|
||||
|
||||
public void DoExpire()
|
||||
{
|
||||
Stop();
|
||||
m_Table.Remove( m_Mobile );
|
||||
}
|
||||
private Timer m_DisguiseTimer;
|
||||
|
||||
public void DrainLife()
|
||||
{
|
||||
if ( m_Mobile.Alive )
|
||||
m_Mobile.Damage( 2, m_From );
|
||||
else
|
||||
DoExpire();
|
||||
}
|
||||
public void Disguise()
|
||||
{
|
||||
if (Combatant != null || IsBodyMod || Controlled)
|
||||
return;
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife();
|
||||
FixedEffect(0x376A, 8, 32);
|
||||
PlaySound(0x1FE);
|
||||
|
||||
if ( ++m_Count >= 5 )
|
||||
{
|
||||
DoExpire();
|
||||
m_Mobile.SendLocalizedMessage( 1070824 ); // The creature's rage subsides.
|
||||
}
|
||||
}
|
||||
}
|
||||
Female = Utility.RandomBool();
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4DE;
|
||||
}
|
||||
if (Female)
|
||||
{
|
||||
BodyMod = 0x191;
|
||||
Name = NameList.RandomName("female");
|
||||
}
|
||||
else
|
||||
{
|
||||
BodyMod = 0x190;
|
||||
Name = NameList.RandomName("male");
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4DD;
|
||||
}
|
||||
Title = "the mystic llama herder";
|
||||
Hue = Race.Human.RandomSkinHue();
|
||||
HairItemID = Race.Human.RandomHair(this);
|
||||
HairHue = Race.Human.RandomHairHue();
|
||||
FacialHairItemID = Race.Human.RandomFacialHair(this);
|
||||
FacialHairHue = HairHue;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4DC;
|
||||
}
|
||||
switch (Utility.Random(4))
|
||||
{
|
||||
case 0:
|
||||
AddItem(new Shoes(Utility.RandomNeutralHue()));
|
||||
break;
|
||||
case 1:
|
||||
AddItem(new Boots(Utility.RandomNeutralHue()));
|
||||
break;
|
||||
case 2:
|
||||
AddItem(new Sandals(Utility.RandomNeutralHue()));
|
||||
break;
|
||||
case 3:
|
||||
AddItem(new ThighBoots(Utility.RandomNeutralHue()));
|
||||
break;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4DF;
|
||||
}
|
||||
AddItem(new Robe(Utility.RandomNondyedHue()));
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4DB;
|
||||
}
|
||||
m_DisguiseTimer = null;
|
||||
m_DisguiseTimer = Timer.DelayCall(TimeSpan.FromSeconds(75), RemoveDisguise);
|
||||
}
|
||||
|
||||
public BakeKitsune( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public void RemoveDisguise()
|
||||
{
|
||||
if (!IsBodyMod)
|
||||
return;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 1 );
|
||||
}
|
||||
Name = null;
|
||||
Title = null;
|
||||
BodyMod = 0;
|
||||
Hue = 0;
|
||||
HairItemID = 0;
|
||||
HairHue = 0;
|
||||
FacialHairItemID = 0;
|
||||
FacialHairHue = 0;
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
DeleteItemOnLayer(Layer.OuterTorso);
|
||||
DeleteItemOnLayer(Layer.Shoes);
|
||||
|
||||
if ( version == 0 && PhysicalResistance > 60 )
|
||||
{
|
||||
SetResistance( ResistanceType.Physical, 40, 60 );
|
||||
SetResistance( ResistanceType.Fire, 70, 90 );
|
||||
SetResistance( ResistanceType.Cold, 40, 60 );
|
||||
SetResistance( ResistanceType.Poison, 40, 60 );
|
||||
SetResistance( ResistanceType.Energy, 40, 60 );
|
||||
}
|
||||
m_DisguiseTimer = null;
|
||||
}
|
||||
|
||||
Timer.DelayCall( TimeSpan.Zero, RemoveDisguise );
|
||||
}
|
||||
}
|
||||
}
|
||||
public void DeleteItemOnLayer(Layer layer)
|
||||
{
|
||||
Item item = FindItemOnLayer(layer);
|
||||
|
||||
item?.Delete();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -1,142 +1,161 @@
|
|||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[TypeAlias( "Server.Mobiles.DeathWatchBeetle" )]
|
||||
public class DeathwatchBeetle : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a deathwatchbeetle corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.CrushingBlow;
|
||||
[TypeAlias("Server.Mobiles.DeathWatchBeetle")]
|
||||
public class DeathwatchBeetle : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public DeathwatchBeetle() : base(AIType.AI_Melee, Core.ML ? FightMode.Aggressor : FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 242;
|
||||
|
||||
public override string DefaultName => "a deathwatch beetle";
|
||||
SetStr(136, 160);
|
||||
SetDex(41, 52);
|
||||
SetInt(31, 40);
|
||||
|
||||
[Constructible]
|
||||
public DeathwatchBeetle() : base( AIType.AI_Melee, Core.ML ? FightMode.Aggressor : FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 242;
|
||||
SetHits(121, 145);
|
||||
SetMana(20);
|
||||
|
||||
SetStr( 136, 160 );
|
||||
SetDex( 41, 52 );
|
||||
SetInt( 31, 40 );
|
||||
SetDamage(5, 10);
|
||||
|
||||
SetHits( 121, 145 );
|
||||
SetMana( 20 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamage( 5, 10 );
|
||||
SetResistance(ResistanceType.Physical, 35, 40);
|
||||
SetResistance(ResistanceType.Fire, 15, 30);
|
||||
SetResistance(ResistanceType.Cold, 15, 30);
|
||||
SetResistance(ResistanceType.Poison, 50, 80);
|
||||
SetResistance(ResistanceType.Energy, 20, 35);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetSkill(SkillName.MagicResist, 50.1, 58.0);
|
||||
SetSkill(SkillName.Tactics, 67.1, 77.0);
|
||||
SetSkill(SkillName.Wrestling, 50.1, 60.0);
|
||||
SetSkill(SkillName.Anatomy, 30.1, 34.0);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 35, 40 );
|
||||
SetResistance( ResistanceType.Fire, 15, 30 );
|
||||
SetResistance( ResistanceType.Cold, 15, 30 );
|
||||
SetResistance( ResistanceType.Poison, 50, 80 );
|
||||
SetResistance( ResistanceType.Energy, 20, 35 );
|
||||
Fame = 1400;
|
||||
Karma = -1400;
|
||||
|
||||
SetSkill( SkillName.MagicResist, 50.1, 58.0 );
|
||||
SetSkill( SkillName.Tactics, 67.1, 77.0 );
|
||||
SetSkill( SkillName.Wrestling, 50.1, 60.0 );
|
||||
SetSkill( SkillName.Anatomy, 30.1, 34.0 );
|
||||
switch (Utility.Random(12))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new LeatherGorget());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new LeatherGloves());
|
||||
break;
|
||||
case 2:
|
||||
PackItem(new LeatherArms());
|
||||
break;
|
||||
case 3:
|
||||
PackItem(new LeatherLegs());
|
||||
break;
|
||||
case 4:
|
||||
PackItem(new LeatherCap());
|
||||
break;
|
||||
case 5:
|
||||
PackItem(new LeatherChest());
|
||||
break;
|
||||
}
|
||||
|
||||
Fame = 1400;
|
||||
Karma = -1400;
|
||||
if (Utility.RandomDouble() < .5)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
|
||||
switch ( Utility.Random( 12 ) )
|
||||
{
|
||||
case 0: PackItem( new LeatherGorget() ); break;
|
||||
case 1: PackItem( new LeatherGloves() ); break;
|
||||
case 2: PackItem( new LeatherArms() ); break;
|
||||
case 3: PackItem( new LeatherLegs() ); break;
|
||||
case 4: PackItem( new LeatherCap() ); break;
|
||||
case 5: PackItem( new LeatherChest() ); break;
|
||||
}
|
||||
Tamable = true;
|
||||
MinTameSkill = 41.1;
|
||||
ControlSlots = 1;
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < .5 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
public DeathwatchBeetle(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
Tamable = true;
|
||||
MinTameSkill = 41.1;
|
||||
ControlSlots = 1;
|
||||
}
|
||||
public override string CorpseName => "a deathwatchbeetle corpse";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4F3;
|
||||
}
|
||||
public override string DefaultName => "a deathwatch beetle";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4F2;
|
||||
}
|
||||
public override int Hides => 8;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4F1;
|
||||
}
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.CrushingBlow;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4F4;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4F3;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4F0;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4F2;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.LowScrolls, 1 );
|
||||
AddLoot( LootPack.Potions, 1 );
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4F1;
|
||||
}
|
||||
|
||||
public override void AlterMeleeDamageTo( Mobile to, ref int damage )
|
||||
{
|
||||
if ( Utility.RandomBool() && (Mana > 14) && to != null )
|
||||
{
|
||||
damage = (damage + (damage / 2));
|
||||
to.SendLocalizedMessage( 1060091 ); // You take extra damage from the crushing attack!
|
||||
to.PlaySound( 0x1E1 );
|
||||
to.FixedParticles( 0x377A, 1, 32, 0x26da, 0, 0, 0 );
|
||||
Mana -= 15;
|
||||
}
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4F4;
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
Mobile combatant = Combatant;
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4F0;
|
||||
}
|
||||
|
||||
if ( combatant == null || combatant.Deleted || combatant.Map != Map || !InRange( combatant, 12 ) || !CanBeHarmful( combatant ) || !InLOS( combatant ) )
|
||||
return;
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.LowScrolls, 1);
|
||||
AddLoot(LootPack.Potions, 1);
|
||||
}
|
||||
|
||||
if ( Utility.Random( 10 ) == 0 )
|
||||
PoisonAttack( combatant );
|
||||
public override void AlterMeleeDamageTo(Mobile to, ref int damage)
|
||||
{
|
||||
if (Utility.RandomBool() && Mana > 14 && to != null)
|
||||
{
|
||||
damage = damage + damage / 2;
|
||||
to.SendLocalizedMessage(1060091); // You take extra damage from the crushing attack!
|
||||
to.PlaySound(0x1E1);
|
||||
to.FixedParticles(0x377A, 1, 32, 0x26da, 0, 0, 0);
|
||||
Mana -= 15;
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
Mobile combatant = Combatant;
|
||||
|
||||
public void PoisonAttack( Mobile m )
|
||||
{
|
||||
DoHarmful( m );
|
||||
MovingParticles( m, 0x36D4, 1, 0, false, false, 0x3F, 0, 0x1F73, 1, 0, (EffectLayer)255, 0x100 );
|
||||
m.ApplyPoison( this, Poison.Regular );
|
||||
m.SendLocalizedMessage( 1070821, Name ); // %s spits a poisonous substance at you!
|
||||
}
|
||||
if (combatant == null || combatant.Deleted || combatant.Map != Map || !InRange(combatant, 12) ||
|
||||
!CanBeHarmful(combatant) || !InLOS(combatant))
|
||||
return;
|
||||
|
||||
public override int Hides => 8;
|
||||
public DeathwatchBeetle( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
if (Utility.Random(10) == 0)
|
||||
PoisonAttack(combatant);
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public void PoisonAttack(Mobile m)
|
||||
{
|
||||
DoHarmful(m);
|
||||
MovingParticles(m, 0x36D4, 1, 0, false, false, 0x3F, 0, 0x1F73, 1, 0, (EffectLayer)255, 0x100);
|
||||
m.ApplyPoison(this, Poison.Regular);
|
||||
m.SendLocalizedMessage(1070821, Name); // %s spits a poisonous substance at you!
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,106 +2,120 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[TypeAlias( "Server.Mobiles.DeathWatchBeetleHatchling" )]
|
||||
public class DeathwatchBeetleHatchling : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a deathwatchbeetle hatchling corpse";
|
||||
public override string DefaultName => "a deathwatch beetle hatchling";
|
||||
[TypeAlias("Server.Mobiles.DeathWatchBeetleHatchling")]
|
||||
public class DeathwatchBeetleHatchling : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public DeathwatchBeetleHatchling() : base(AIType.AI_Melee, Core.ML ? FightMode.Aggressor : FightMode.Closest, 10, 1,
|
||||
0.2, 0.4)
|
||||
{
|
||||
Body = 242;
|
||||
|
||||
[Constructible]
|
||||
public DeathwatchBeetleHatchling() : base( AIType.AI_Melee, Core.ML ? FightMode.Aggressor : FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 242;
|
||||
SetStr(26, 50);
|
||||
SetDex(41, 52);
|
||||
SetInt(21, 30);
|
||||
|
||||
SetStr( 26, 50 );
|
||||
SetDex( 41, 52 );
|
||||
SetInt( 21, 30 );
|
||||
SetHits(51, 60);
|
||||
SetMana(20);
|
||||
|
||||
SetHits( 51, 60 );
|
||||
SetMana( 20 );
|
||||
SetDamage(2, 8);
|
||||
|
||||
SetDamage( 2, 8 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 35, 40);
|
||||
SetResistance(ResistanceType.Fire, 15, 30);
|
||||
SetResistance(ResistanceType.Cold, 15, 30);
|
||||
SetResistance(ResistanceType.Poison, 20, 40);
|
||||
SetResistance(ResistanceType.Energy, 20, 35);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 35, 40 );
|
||||
SetResistance( ResistanceType.Fire, 15, 30 );
|
||||
SetResistance( ResistanceType.Cold, 15, 30 );
|
||||
SetResistance( ResistanceType.Poison, 20, 40 );
|
||||
SetResistance( ResistanceType.Energy, 20, 35 );
|
||||
SetSkill(SkillName.Wrestling, 30.1, 40.0);
|
||||
SetSkill(SkillName.Tactics, 47.1, 57.0);
|
||||
SetSkill(SkillName.MagicResist, 30.1, 38.0);
|
||||
SetSkill(SkillName.Anatomy, 20.1, 24.0);
|
||||
|
||||
SetSkill( SkillName.Wrestling, 30.1, 40.0 );
|
||||
SetSkill( SkillName.Tactics, 47.1, 57.0 );
|
||||
SetSkill( SkillName.MagicResist, 30.1, 38.0 );
|
||||
SetSkill( SkillName.Anatomy, 20.1, 24.0 );
|
||||
|
||||
Fame = 700;
|
||||
Karma = -700;
|
||||
Fame = 700;
|
||||
Karma = -700;
|
||||
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
{
|
||||
Item i = Loot.RandomReagent();
|
||||
i.Amount = 3;
|
||||
PackItem( i );
|
||||
}
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
Item i = Loot.RandomReagent();
|
||||
i.Amount = 3;
|
||||
PackItem(i);
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 12 ) )
|
||||
{
|
||||
case 0: PackItem( new LeatherGorget() ); break;
|
||||
case 1: PackItem( new LeatherGloves() ); break;
|
||||
case 2: PackItem( new LeatherArms() ); break;
|
||||
case 3: PackItem( new LeatherLegs() ); break;
|
||||
case 4: PackItem( new LeatherCap() ); break;
|
||||
case 5: PackItem( new LeatherChest() ); break;
|
||||
}
|
||||
}
|
||||
switch (Utility.Random(12))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new LeatherGorget());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new LeatherGloves());
|
||||
break;
|
||||
case 2:
|
||||
PackItem(new LeatherArms());
|
||||
break;
|
||||
case 3:
|
||||
PackItem(new LeatherLegs());
|
||||
break;
|
||||
case 4:
|
||||
PackItem(new LeatherCap());
|
||||
break;
|
||||
case 5:
|
||||
PackItem(new LeatherChest());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4F3;
|
||||
}
|
||||
public DeathwatchBeetleHatchling(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4F2;
|
||||
}
|
||||
public override string CorpseName => "a deathwatchbeetle hatchling corpse";
|
||||
public override string DefaultName => "a deathwatch beetle hatchling";
|
||||
public override int Hides => 8;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4F1;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4F3;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4F4;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4F2;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4F0;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4F1;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.LowScrolls, 1 );
|
||||
AddLoot( LootPack.Potions, 1 );
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4F4;
|
||||
}
|
||||
|
||||
public DeathwatchBeetleHatchling( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override int Hides => 8;
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4F0;
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.LowScrolls, 1);
|
||||
AddLoot(LootPack.Potions, 1);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,118 +2,134 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class EliteNinja : BaseCreature
|
||||
{
|
||||
public override bool ClickTitle => false;
|
||||
public override string DefaultName => "an elite ninja";
|
||||
public class EliteNinja : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public EliteNinja() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Female = Utility.RandomBool();
|
||||
|
||||
[Constructible]
|
||||
public EliteNinja() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Female = Utility.RandomBool();
|
||||
Body = Female ? 0x191 : 0x190;
|
||||
|
||||
Body = Female ? 0x191 : 0x190;
|
||||
SetHits(251, 350);
|
||||
|
||||
SetHits( 251, 350 );
|
||||
SetStr(126, 225);
|
||||
SetDex(81, 95);
|
||||
SetInt(151, 165);
|
||||
|
||||
SetStr( 126, 225 );
|
||||
SetDex( 81, 95 );
|
||||
SetInt( 151, 165 );
|
||||
SetDamage(12, 20);
|
||||
|
||||
SetDamage( 12, 20 );
|
||||
SetDamageType(ResistanceType.Physical, 65);
|
||||
SetDamageType(ResistanceType.Fire, 15);
|
||||
SetDamageType(ResistanceType.Poison, 15);
|
||||
SetDamageType(ResistanceType.Energy, 5);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 65 );
|
||||
SetDamageType( ResistanceType.Fire, 15 );
|
||||
SetDamageType( ResistanceType.Poison, 15 );
|
||||
SetDamageType( ResistanceType.Energy, 5 );
|
||||
SetResistance(ResistanceType.Physical, 35, 65);
|
||||
SetResistance(ResistanceType.Fire, 40, 60);
|
||||
SetResistance(ResistanceType.Cold, 25, 45);
|
||||
SetResistance(ResistanceType.Poison, 40, 60);
|
||||
SetResistance(ResistanceType.Energy, 35, 55);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 35, 65 );
|
||||
SetResistance( ResistanceType.Fire, 40, 60 );
|
||||
SetResistance( ResistanceType.Cold, 25, 45 );
|
||||
SetResistance( ResistanceType.Poison, 40, 60 );
|
||||
SetResistance( ResistanceType.Energy, 35, 55 );
|
||||
|
||||
SetSkill( SkillName.Anatomy, 105.0, 120.0 );
|
||||
SetSkill( SkillName.MagicResist, 80.0, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 115.0, 130.0 );
|
||||
SetSkill( SkillName.Wrestling, 95.0, 120.0 );
|
||||
SetSkill( SkillName.Fencing, 95.0, 120.0 );
|
||||
SetSkill( SkillName.Macing, 95.0, 120.0 );
|
||||
SetSkill( SkillName.Swords, 95.0, 120.0 );
|
||||
SetSkill( SkillName.Ninjitsu, 95.0, 120.0 );
|
||||
SetSkill(SkillName.Anatomy, 105.0, 120.0);
|
||||
SetSkill(SkillName.MagicResist, 80.0, 100.0);
|
||||
SetSkill(SkillName.Tactics, 115.0, 130.0);
|
||||
SetSkill(SkillName.Wrestling, 95.0, 120.0);
|
||||
SetSkill(SkillName.Fencing, 95.0, 120.0);
|
||||
SetSkill(SkillName.Macing, 95.0, 120.0);
|
||||
SetSkill(SkillName.Swords, 95.0, 120.0);
|
||||
SetSkill(SkillName.Ninjitsu, 95.0, 120.0);
|
||||
|
||||
|
||||
Fame = 8500;
|
||||
Karma = -8500;
|
||||
Fame = 8500;
|
||||
Karma = -8500;
|
||||
|
||||
/* TODO:
|
||||
Uses Smokebombs
|
||||
Hides
|
||||
Stealths
|
||||
Can use Ninjitsu Abilities
|
||||
Can change weapons during a fight
|
||||
*/
|
||||
/* TODO:
|
||||
Uses Smokebombs
|
||||
Hides
|
||||
Stealths
|
||||
Can use Ninjitsu Abilities
|
||||
Can change weapons during a fight
|
||||
*/
|
||||
|
||||
|
||||
AddItem( new NinjaTabi() );
|
||||
AddItem( new LeatherNinjaJacket());
|
||||
AddItem( new LeatherNinjaHood());
|
||||
AddItem( new LeatherNinjaPants());
|
||||
AddItem( new LeatherNinjaMitts());
|
||||
AddItem(new NinjaTabi());
|
||||
AddItem(new LeatherNinjaJacket());
|
||||
AddItem(new LeatherNinjaHood());
|
||||
AddItem(new LeatherNinjaPants());
|
||||
AddItem(new LeatherNinjaMitts());
|
||||
|
||||
if ( Utility.RandomDouble() < 0.33 )
|
||||
AddItem( new SmokeBomb() );
|
||||
if (Utility.RandomDouble() < 0.33)
|
||||
AddItem(new SmokeBomb());
|
||||
|
||||
switch ( Utility.Random( 8 ))
|
||||
{
|
||||
case 0: AddItem( new Tessen() ); break;
|
||||
case 1: AddItem( new Wakizashi() ); break;
|
||||
case 2: AddItem( new Nunchaku() ); break;
|
||||
case 3: AddItem( new Daisho() ); break;
|
||||
case 4: AddItem( new Sai() ); break;
|
||||
case 5: AddItem( new Tekagi() ); break;
|
||||
case 6: AddItem( new Kama() ); break;
|
||||
case 7: AddItem( new Katana() ); break;
|
||||
}
|
||||
switch (Utility.Random(8))
|
||||
{
|
||||
case 0:
|
||||
AddItem(new Tessen());
|
||||
break;
|
||||
case 1:
|
||||
AddItem(new Wakizashi());
|
||||
break;
|
||||
case 2:
|
||||
AddItem(new Nunchaku());
|
||||
break;
|
||||
case 3:
|
||||
AddItem(new Daisho());
|
||||
break;
|
||||
case 4:
|
||||
AddItem(new Sai());
|
||||
break;
|
||||
case 5:
|
||||
AddItem(new Tekagi());
|
||||
break;
|
||||
case 6:
|
||||
AddItem(new Kama());
|
||||
break;
|
||||
case 7:
|
||||
AddItem(new Katana());
|
||||
break;
|
||||
}
|
||||
|
||||
Utility.AssignRandomHair( this );
|
||||
}
|
||||
Utility.AssignRandomHair(this);
|
||||
}
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
c.DropItem( new BookOfNinjitsu() );
|
||||
}
|
||||
public EliteNinja(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool BardImmune => true;
|
||||
public override bool ClickTitle => false;
|
||||
public override string DefaultName => "an elite ninja";
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich );
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Gems, 2 );
|
||||
}
|
||||
public override bool BardImmune => true;
|
||||
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool AlwaysMurderer => true;
|
||||
|
||||
public EliteNinja( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
c.DropItem(new BookOfNinjitsu());
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems, 2);
|
||||
}
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,182 +1,189 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Network;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class FanDancer : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a fan dancer corpse";
|
||||
public override string DefaultName => "a fan dancer";
|
||||
[Constructible]
|
||||
public FanDancer() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 247;
|
||||
BaseSoundID = 0x372;
|
||||
public class FanDancer : BaseCreature
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
SetStr( 301, 375 );
|
||||
SetDex( 201, 255 );
|
||||
SetInt( 21, 25 );
|
||||
[Constructible]
|
||||
public FanDancer() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 247;
|
||||
BaseSoundID = 0x372;
|
||||
|
||||
SetHits( 351, 430 );
|
||||
SetStr(301, 375);
|
||||
SetDex(201, 255);
|
||||
SetInt(21, 25);
|
||||
|
||||
SetDamage( 12, 17 );
|
||||
SetHits(351, 430);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Fire, 10 );
|
||||
SetDamageType( ResistanceType.Cold, 10 );
|
||||
SetDamageType( ResistanceType.Poison, 10 );
|
||||
SetDamage(12, 17);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 60 );
|
||||
SetResistance( ResistanceType.Fire, 50, 70 );
|
||||
SetResistance( ResistanceType.Cold, 50, 70 );
|
||||
SetResistance( ResistanceType.Poison, 50, 70 );
|
||||
SetResistance( ResistanceType.Energy, 40, 60 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Fire, 10);
|
||||
SetDamageType(ResistanceType.Cold, 10);
|
||||
SetDamageType(ResistanceType.Poison, 10);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 100.1, 110.0 );
|
||||
SetSkill( SkillName.Tactics, 85.1, 95.0 );
|
||||
SetSkill( SkillName.Wrestling, 85.1, 95.0 );
|
||||
SetSkill( SkillName.Anatomy, 85.1, 95.0 );
|
||||
SetResistance(ResistanceType.Physical, 40, 60);
|
||||
SetResistance(ResistanceType.Fire, 50, 70);
|
||||
SetResistance(ResistanceType.Cold, 50, 70);
|
||||
SetResistance(ResistanceType.Poison, 50, 70);
|
||||
SetResistance(ResistanceType.Energy, 40, 60);
|
||||
|
||||
Fame = 9000;
|
||||
Karma = -9000;
|
||||
SetSkill(SkillName.MagicResist, 100.1, 110.0);
|
||||
SetSkill(SkillName.Tactics, 85.1, 95.0);
|
||||
SetSkill(SkillName.Wrestling, 85.1, 95.0);
|
||||
SetSkill(SkillName.Anatomy, 85.1, 95.0);
|
||||
|
||||
if ( Utility.RandomDouble() < .33 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
Fame = 9000;
|
||||
Karma = -9000;
|
||||
|
||||
AddItem( new Tessen() );
|
||||
if (Utility.RandomDouble() < .33)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
|
||||
if ( 0.02 >= Utility.RandomDouble() )
|
||||
PackItem( new OrigamiPaper() );
|
||||
}
|
||||
AddItem(new Tessen());
|
||||
|
||||
if (0.02 >= Utility.RandomDouble())
|
||||
PackItem(new OrigamiPaper());
|
||||
}
|
||||
|
||||
public FanDancer(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a fan dancer corpse";
|
||||
public override string DefaultName => "a fan dancer";
|
||||
|
||||
public override bool Uncalmable => true;
|
||||
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich );
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Gems, 2 );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems, 2);
|
||||
}
|
||||
|
||||
public override bool Uncalmable => true;
|
||||
/* TODO: Repel Magic
|
||||
* 10% chance of repelling a melee attack (why did they call it repel magic anyway?)
|
||||
* Cliloc: 1070844
|
||||
* Effect: damage is dealt to the attacker, no damage is taken by the fan dancer
|
||||
*/
|
||||
|
||||
/* TODO: Repel Magic
|
||||
* 10% chance of repelling a melee attack (why did they call it repel magic anyway?)
|
||||
* Cliloc: 1070844
|
||||
* Effect: damage is dealt to the attacker, no damage is taken by the fan dancer
|
||||
*/
|
||||
public override void OnDamagedBySpell(Mobile attacker)
|
||||
{
|
||||
base.OnDamagedBySpell(attacker);
|
||||
|
||||
public override void OnDamagedBySpell( Mobile attacker )
|
||||
{
|
||||
base.OnDamagedBySpell( attacker );
|
||||
if (0.8 > Utility.RandomDouble() && !attacker.InRange(this, 1))
|
||||
{
|
||||
/* Fan Throw
|
||||
* Effect: - To: "0x57D4F5B" - ItemId: "0x27A3" - ItemIdName: "Tessen" - FromLocation: "(992 299, 24)" - ToLocation: "(992 308, 22)" - Speed: "10" - Duration: "0" - FixedDirection: "False" - Explode: "False" - Hue: "0x0" - Render: "0x0"
|
||||
* Damage: 50-65
|
||||
*/
|
||||
Effects.SendPacket(attacker, attacker.Map,
|
||||
new HuedEffect(EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, Location, attacker.Location, 10, 0,
|
||||
false, false, 0, 0));
|
||||
AOS.Damage(attacker, this, Utility.RandomMinMax(50, 65), 100, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if ( 0.8 > Utility.RandomDouble() && !attacker.InRange( this, 1 ) )
|
||||
{
|
||||
/* Fan Throw
|
||||
* Effect: - To: "0x57D4F5B" - ItemId: "0x27A3" - ItemIdName: "Tessen" - FromLocation: "(992 299, 24)" - ToLocation: "(992 308, 22)" - Speed: "10" - Duration: "0" - FixedDirection: "False" - Explode: "False" - Hue: "0x0" - Render: "0x0"
|
||||
* Damage: 50-65
|
||||
*/
|
||||
Effects.SendPacket( attacker, attacker.Map, new HuedEffect( EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, Location, attacker.Location, 10, 0, false, false, 0, 0 ) );
|
||||
AOS.Damage( attacker, this, Utility.RandomMinMax( 50, 65 ), 100, 0, 0, 0, 0 );
|
||||
}
|
||||
}
|
||||
public override void OnGotMeleeAttack(Mobile attacker)
|
||||
{
|
||||
base.OnGotMeleeAttack(attacker);
|
||||
|
||||
public override void OnGotMeleeAttack( Mobile attacker )
|
||||
{
|
||||
base.OnGotMeleeAttack( attacker );
|
||||
if (0.8 > Utility.RandomDouble() && !attacker.InRange(this, 1))
|
||||
{
|
||||
/* Fan Throw
|
||||
* Effect: - To: "0x57D4F5B" - ItemId: "0x27A3" - ItemIdName: "Tessen" - FromLocation: "(992 299, 24)" - ToLocation: "(992 308, 22)" - Speed: "10" - Duration: "0" - FixedDirection: "False" - Explode: "False" - Hue: "0x0" - Render: "0x0"
|
||||
* Damage: 50-65
|
||||
*/
|
||||
Effects.SendPacket(attacker, attacker.Map,
|
||||
new HuedEffect(EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, Location, attacker.Location, 10, 0,
|
||||
false, false, 0, 0));
|
||||
AOS.Damage(attacker, this, Utility.RandomMinMax(50, 65), 100, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if ( 0.8 > Utility.RandomDouble() && !attacker.InRange( this, 1 ) )
|
||||
{
|
||||
/* Fan Throw
|
||||
* Effect: - To: "0x57D4F5B" - ItemId: "0x27A3" - ItemIdName: "Tessen" - FromLocation: "(992 299, 24)" - ToLocation: "(992 308, 22)" - Speed: "10" - Duration: "0" - FixedDirection: "False" - Explode: "False" - Hue: "0x0" - Render: "0x0"
|
||||
* Damage: 50-65
|
||||
*/
|
||||
Effects.SendPacket( attacker, attacker.Map, new HuedEffect( EffectType.Moving, Serial.Zero, Serial.Zero, 0x27A3, Location, attacker.Location, 10, 0, false, false, 0, 0 ) );
|
||||
AOS.Damage( attacker, this, Utility.RandomMinMax( 50, 65 ), 100, 0, 0, 0, 0 );
|
||||
}
|
||||
}
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
if (!IsFanned(defender) && 0.05 > Utility.RandomDouble())
|
||||
{
|
||||
/* Fanning Fire
|
||||
* Graphic: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x3709" ItemIdName: "fire column" FromLocation: "(994 325, 16)" ToLocation: "(994 325, 16)" Speed: "10" Duration: "30" FixedDirection: "True" Explode: "False" Hue: "0x0" RenderMode: "0x0" Effect: "0x34" ExplodeEffect: "0x1" ExplodeSound: "0x0" Serial: "0x57D4F5B" Layer: "5" Unknown: "0x0"
|
||||
* Sound: 0x208
|
||||
* Start cliloc: 1070833
|
||||
* Effect: Fire res -10% for 10 seconds
|
||||
* Damage: 35-45, 100% fire
|
||||
* End cliloc: 1070834
|
||||
* Effect does not stack
|
||||
*/
|
||||
|
||||
if ( !IsFanned( defender ) && 0.05 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Fanning Fire
|
||||
* Graphic: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x3709" ItemIdName: "fire column" FromLocation: "(994 325, 16)" ToLocation: "(994 325, 16)" Speed: "10" Duration: "30" FixedDirection: "True" Explode: "False" Hue: "0x0" RenderMode: "0x0" Effect: "0x34" ExplodeEffect: "0x1" ExplodeSound: "0x0" Serial: "0x57D4F5B" Layer: "5" Unknown: "0x0"
|
||||
* Sound: 0x208
|
||||
* Start cliloc: 1070833
|
||||
* Effect: Fire res -10% for 10 seconds
|
||||
* Damage: 35-45, 100% fire
|
||||
* End cliloc: 1070834
|
||||
* Effect does not stack
|
||||
*/
|
||||
defender.SendLocalizedMessage(
|
||||
1070833); // The creature fans you with fire, reducing your resistance to fire attacks.
|
||||
|
||||
defender.SendLocalizedMessage( 1070833 ); // The creature fans you with fire, reducing your resistance to fire attacks.
|
||||
int effect = -(defender.FireResistance / 10);
|
||||
|
||||
int effect = -(defender.FireResistance / 10);
|
||||
ResistanceMod mod = new ResistanceMod(ResistanceType.Fire, effect);
|
||||
|
||||
ResistanceMod mod = new ResistanceMod( ResistanceType.Fire, effect );
|
||||
defender.FixedParticles(0x37B9, 10, 30, 0x34, EffectLayer.RightFoot);
|
||||
defender.PlaySound(0x208);
|
||||
|
||||
defender.FixedParticles( 0x37B9, 10, 30, 0x34, EffectLayer.RightFoot );
|
||||
defender.PlaySound( 0x208 );
|
||||
// This should be done in place of the normal attack damage.
|
||||
//AOS.Damage( defender, this, Utility.RandomMinMax( 35, 45 ), 0, 100, 0, 0, 0 );
|
||||
|
||||
// This should be done in place of the normal attack damage.
|
||||
//AOS.Damage( defender, this, Utility.RandomMinMax( 35, 45 ), 0, 100, 0, 0, 0 );
|
||||
defender.AddResistanceMod(mod);
|
||||
|
||||
defender.AddResistanceMod( mod );
|
||||
ExpireTimer timer = new ExpireTimer(defender, mod, TimeSpan.FromSeconds(10.0));
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
|
||||
ExpireTimer timer = new ExpireTimer( defender, mod, TimeSpan.FromSeconds( 10.0 ) );
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
public bool IsFanned(Mobile m)
|
||||
{
|
||||
return m_Table.Contains(m);
|
||||
}
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
public bool IsFanned( Mobile m )
|
||||
{
|
||||
return m_Table.Contains( m );
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_Mod = mod;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
m_Mobile.SendLocalizedMessage( 1070834 ); // Your resistance to fire attacks has returned.
|
||||
m_Mobile.RemoveResistanceMod( m_Mod );
|
||||
Stop();
|
||||
m_Table.Remove( m_Mobile );
|
||||
}
|
||||
}
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
|
||||
public FanDancer( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public ExpireTimer(Mobile m, ResistanceMod mod, TimeSpan delay) : base(delay)
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_Mod = mod;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
m_Mobile.SendLocalizedMessage(1070834); // Your resistance to fire attacks has returned.
|
||||
m_Mobile.RemoveResistanceMod(m_Mod);
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,123 +1,124 @@
|
|||
using Server.Engines.Craft;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[Engines.Craft.Forge]
|
||||
public class FireBeetle : BaseMount
|
||||
{
|
||||
public override string CorpseName => "a fire beetle corpse";
|
||||
public override bool SubdueBeforeTame => true; // Must be beaten into submission
|
||||
public override bool StatLossAfterTame => true;
|
||||
public virtual double BoostedSpeed => 0.1;
|
||||
public override bool ReduceSpeedWithDamage => false;
|
||||
[Forge]
|
||||
public class FireBeetle : BaseMount
|
||||
{
|
||||
[Constructible]
|
||||
public FireBeetle() : base("a fire beetle", 0xA9, 0x3E95, AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
SetStr(300);
|
||||
SetDex(100);
|
||||
SetInt(500);
|
||||
|
||||
[Constructible]
|
||||
public FireBeetle() : base( "a fire beetle", 0xA9, 0x3E95, AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
SetStr( 300 );
|
||||
SetDex( 100 );
|
||||
SetInt( 500 );
|
||||
SetHits(200);
|
||||
|
||||
SetHits( 200 );
|
||||
SetDamage(7, 20);
|
||||
|
||||
SetDamage( 7, 20 );
|
||||
SetDamageType(ResistanceType.Physical, 0);
|
||||
SetDamageType(ResistanceType.Fire, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 0 );
|
||||
SetDamageType( ResistanceType.Fire, 100 );
|
||||
SetResistance(ResistanceType.Physical, 40);
|
||||
SetResistance(ResistanceType.Fire, 70, 75);
|
||||
SetResistance(ResistanceType.Cold, 10);
|
||||
SetResistance(ResistanceType.Poison, 30);
|
||||
SetResistance(ResistanceType.Energy, 30);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40 );
|
||||
SetResistance( ResistanceType.Fire, 70, 75 );
|
||||
SetResistance( ResistanceType.Cold, 10 );
|
||||
SetResistance( ResistanceType.Poison, 30 );
|
||||
SetResistance( ResistanceType.Energy, 30 );
|
||||
SetSkill(SkillName.MagicResist, 90.0);
|
||||
SetSkill(SkillName.Tactics, 100.0);
|
||||
SetSkill(SkillName.Wrestling, 100.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 90.0 );
|
||||
SetSkill( SkillName.Tactics, 100.0 );
|
||||
SetSkill( SkillName.Wrestling, 100.0 );
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
Tamable = true;
|
||||
ControlSlots = 3;
|
||||
MinTameSkill = 93.9;
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 3;
|
||||
MinTameSkill = 93.9;
|
||||
PackItem(new SulfurousAsh(Utility.RandomMinMax(16, 25)));
|
||||
PackItem(new IronIngot(2));
|
||||
|
||||
PackItem( new SulfurousAsh( Utility.RandomMinMax( 16, 25 ) ) );
|
||||
PackItem( new IronIngot( 2 ) );
|
||||
Hue = 0x489;
|
||||
}
|
||||
|
||||
Hue = 0x489;
|
||||
}
|
||||
public FireBeetle(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnHarmfulSpell( Mobile from )
|
||||
{
|
||||
if ( !Controlled && ControlMaster == null )
|
||||
CurrentSpeed = BoostedSpeed;
|
||||
}
|
||||
|
||||
public override void OnCombatantChange()
|
||||
{
|
||||
if ( Combatant == null && !Controlled && ControlMaster == null )
|
||||
CurrentSpeed = PassiveSpeed;
|
||||
}
|
||||
|
||||
public override bool OverrideBondingReqs()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x21D;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x21D;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x162;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x163;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x21D;
|
||||
}
|
||||
public override string CorpseName => "a fire beetle corpse";
|
||||
public override bool SubdueBeforeTame => true; // Must be beaten into submission
|
||||
public override bool StatLossAfterTame => true;
|
||||
public virtual double BoostedSpeed => 0.1;
|
||||
public override bool ReduceSpeedWithDamage => false;
|
||||
|
||||
|
||||
public override int Meat => 16;
|
||||
public override FoodType FavoriteFood => FoodType.Meat;
|
||||
public override int Meat => 16;
|
||||
public override FoodType FavoriteFood => FoodType.Meat;
|
||||
|
||||
public override double GetControlChance( Mobile m, bool useBaseSkill )
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
public override void OnHarmfulSpell(Mobile from)
|
||||
{
|
||||
if (!Controlled && ControlMaster == null)
|
||||
CurrentSpeed = BoostedSpeed;
|
||||
}
|
||||
|
||||
public FireBeetle( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void OnCombatantChange()
|
||||
{
|
||||
if (Combatant == null && !Controlled && ControlMaster == null)
|
||||
CurrentSpeed = PassiveSpeed;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override bool OverrideBondingReqs()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
writer.Write( (int) 1 ); // version
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x21D;
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x21D;
|
||||
}
|
||||
|
||||
int version = reader.ReadInt();
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x162;
|
||||
}
|
||||
|
||||
if ( version == 0 )
|
||||
Hue = 0x489;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x163;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x21D;
|
||||
}
|
||||
|
||||
public override double GetControlChance(Mobile m, bool useBaseSkill)
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(1); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (version == 0)
|
||||
Hue = 0x489;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,216 +1,218 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Kappa : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a kappa corpse";
|
||||
public override string DefaultName => "a kappa";
|
||||
public class Kappa : BaseCreature
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
[Constructible]
|
||||
public Kappa() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 240;
|
||||
[Constructible]
|
||||
public Kappa() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 240;
|
||||
|
||||
SetStr( 186, 230 );
|
||||
SetDex( 51, 75 );
|
||||
SetInt( 41, 55 );
|
||||
SetStr(186, 230);
|
||||
SetDex(51, 75);
|
||||
SetInt(41, 55);
|
||||
|
||||
SetMana ( 30 );
|
||||
SetMana(30);
|
||||
|
||||
SetHits( 151, 180 );
|
||||
SetHits(151, 180);
|
||||
|
||||
SetDamage( 6, 12 );
|
||||
SetDamage(6, 12);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 35, 50 );
|
||||
SetResistance( ResistanceType.Fire, 35, 50 );
|
||||
SetResistance( ResistanceType.Cold, 25, 50 );
|
||||
SetResistance( ResistanceType.Poison, 35, 50 );
|
||||
SetResistance( ResistanceType.Energy, 20, 30 );
|
||||
SetResistance(ResistanceType.Physical, 35, 50);
|
||||
SetResistance(ResistanceType.Fire, 35, 50);
|
||||
SetResistance(ResistanceType.Cold, 25, 50);
|
||||
SetResistance(ResistanceType.Poison, 35, 50);
|
||||
SetResistance(ResistanceType.Energy, 20, 30);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 60.1, 70.0 );
|
||||
SetSkill( SkillName.Tactics, 79.1, 89.0 );
|
||||
SetSkill( SkillName.Wrestling, 60.1, 70.0 );
|
||||
SetSkill(SkillName.MagicResist, 60.1, 70.0);
|
||||
SetSkill(SkillName.Tactics, 79.1, 89.0);
|
||||
SetSkill(SkillName.Wrestling, 60.1, 70.0);
|
||||
|
||||
Fame = 1700;
|
||||
Karma = -1700;
|
||||
Fame = 1700;
|
||||
Karma = -1700;
|
||||
|
||||
PackItem( new RawFishSteak( 3 ) );
|
||||
for( int i = 0; i < 2; i++ )
|
||||
{
|
||||
switch ( Utility.Random( 6 ) )
|
||||
{
|
||||
case 0: PackItem( new Gears() ); break;
|
||||
case 1: PackItem( new Hinge() ); break;
|
||||
case 2: PackItem( new Axle() ); break;
|
||||
}
|
||||
}
|
||||
if ( Core.ML && Utility.RandomDouble() < .33 )
|
||||
PackItem( Engines.Plants.Seed.RandomPeculiarSeed(4) );
|
||||
}
|
||||
PackItem(new RawFishSteak(3));
|
||||
for (int i = 0; i < 2; i++)
|
||||
switch (Utility.Random(6))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new Gears());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new Hinge());
|
||||
break;
|
||||
case 2:
|
||||
PackItem(new Axle());
|
||||
break;
|
||||
}
|
||||
if (Core.ML && Utility.RandomDouble() < .33)
|
||||
PackItem(Seed.RandomPeculiarSeed(4));
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Meager );
|
||||
AddLoot( LootPack.Average );
|
||||
}
|
||||
public Kappa(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x50B;
|
||||
}
|
||||
public override string CorpseName => "a kappa corpse";
|
||||
public override string DefaultName => "a kappa";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x50A;
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Meager);
|
||||
AddLoot(LootPack.Average);
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x509;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x50B;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x50C;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x50A;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x508;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x509;
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack (defender);
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x50C;
|
||||
}
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
{
|
||||
if ( !IsBeingDrained( defender ) && Mana > 14)
|
||||
{
|
||||
defender.SendLocalizedMessage( 1070848 ); // You feel your life force being stolen away.
|
||||
BeginLifeDrain( defender, this );
|
||||
Mana-=15;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x508;
|
||||
}
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
public static bool IsBeingDrained( Mobile m )
|
||||
{
|
||||
return m_Table.Contains( m );
|
||||
}
|
||||
if (Utility.RandomBool())
|
||||
if (!IsBeingDrained(defender) && Mana > 14)
|
||||
{
|
||||
defender.SendLocalizedMessage(1070848); // You feel your life force being stolen away.
|
||||
BeginLifeDrain(defender, this);
|
||||
Mana -= 15;
|
||||
}
|
||||
}
|
||||
|
||||
public static void BeginLifeDrain( Mobile m, Mobile from )
|
||||
{
|
||||
Timer t = (Timer)m_Table[m];
|
||||
public static bool IsBeingDrained(Mobile m)
|
||||
{
|
||||
return m_Table.Contains(m);
|
||||
}
|
||||
|
||||
t?.Stop();
|
||||
public static void BeginLifeDrain(Mobile m, Mobile from)
|
||||
{
|
||||
Timer t = (Timer)m_Table[m];
|
||||
|
||||
t = new InternalTimer( from, m );
|
||||
m_Table[m] = t;
|
||||
t?.Stop();
|
||||
|
||||
t.Start();
|
||||
}
|
||||
t = new InternalTimer(from, m);
|
||||
m_Table[m] = t;
|
||||
|
||||
public static void DrainLife( Mobile m, Mobile from )
|
||||
{
|
||||
if ( m.Alive )
|
||||
{
|
||||
int damageGiven = AOS.Damage( m, from, 5, 0, 0, 0, 0, 100 );
|
||||
from.Hits += damageGiven;
|
||||
}
|
||||
else
|
||||
{
|
||||
EndLifeDrain( m );
|
||||
}
|
||||
}
|
||||
t.Start();
|
||||
}
|
||||
|
||||
public static void EndLifeDrain( Mobile m )
|
||||
{
|
||||
Timer t = (Timer)m_Table[m];
|
||||
public static void DrainLife(Mobile m, Mobile from)
|
||||
{
|
||||
if (m.Alive)
|
||||
{
|
||||
int damageGiven = AOS.Damage(m, from, 5, 0, 0, 0, 0, 100);
|
||||
from.Hits += damageGiven;
|
||||
}
|
||||
else
|
||||
{
|
||||
EndLifeDrain(m);
|
||||
}
|
||||
}
|
||||
|
||||
t?.Stop();
|
||||
public static void EndLifeDrain(Mobile m)
|
||||
{
|
||||
Timer t = (Timer)m_Table[m];
|
||||
|
||||
m_Table.Remove( m );
|
||||
t?.Stop();
|
||||
|
||||
m.SendLocalizedMessage( 1070849 ); // The drain on your life force is gone.
|
||||
}
|
||||
m_Table.Remove(m);
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
if ( from?.Map != null )
|
||||
{
|
||||
int amt=0;
|
||||
Mobile target = this;
|
||||
int rand = Utility.Random( 1, 100 );
|
||||
if ( willKill )
|
||||
{
|
||||
amt = ((( rand % 5 ) >> 2 ) + 3);
|
||||
}
|
||||
if ( ( Hits < 100 ) && ( rand < 21 ) )
|
||||
{
|
||||
target = ( rand % 2 ) < 1 ? this : from;
|
||||
amt++;
|
||||
}
|
||||
if ( amt > 0 )
|
||||
{
|
||||
SpillAcid( target, amt );
|
||||
from.SendLocalizedMessage( 1070820 );
|
||||
if ( Mana > 14)
|
||||
Mana -= 15;
|
||||
amt ^= amt;
|
||||
}
|
||||
}
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
m.SendLocalizedMessage(1070849); // The drain on your life force is gone.
|
||||
}
|
||||
|
||||
public override Item NewHarmfulItem()
|
||||
{
|
||||
return new AcidSlime( TimeSpan.FromSeconds(10), 5, 10 );
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
if (from?.Map != null)
|
||||
{
|
||||
int amt = 0;
|
||||
Mobile target = this;
|
||||
int rand = Utility.Random(1, 100);
|
||||
if (willKill) amt = ((rand % 5) >> 2) + 3;
|
||||
if (Hits < 100 && rand < 21)
|
||||
{
|
||||
target = rand % 2 < 1 ? this : from;
|
||||
amt++;
|
||||
}
|
||||
|
||||
public Kappa( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
if (amt > 0)
|
||||
{
|
||||
SpillAcid(target, amt);
|
||||
from.SendLocalizedMessage(1070820);
|
||||
if (Mana > 14)
|
||||
Mana -= 15;
|
||||
amt ^= amt;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
public override Item NewHarmfulItem()
|
||||
{
|
||||
return new AcidSlime(TimeSpan.FromSeconds(10), 5, 10);
|
||||
}
|
||||
|
||||
private class InternalTimer : Timer
|
||||
{
|
||||
private Mobile m_From;
|
||||
private Mobile m_Mobile;
|
||||
private int m_Count;
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public InternalTimer( Mobile from, Mobile m ) : base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) )
|
||||
{
|
||||
m_From = from;
|
||||
m_Mobile = m;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife( m_Mobile, m_From );
|
||||
private class InternalTimer : Timer
|
||||
{
|
||||
private int m_Count;
|
||||
private Mobile m_From;
|
||||
private Mobile m_Mobile;
|
||||
|
||||
if ( Running && ++m_Count == 5 )
|
||||
EndLifeDrain( m_Mobile );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public InternalTimer(Mobile from, Mobile m) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
|
||||
{
|
||||
m_From = from;
|
||||
m_Mobile = m;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife(m_Mobile, m_From);
|
||||
|
||||
if (Running && ++m_Count == 5)
|
||||
EndLifeDrain(m_Mobile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,172 +3,178 @@ using System.Collections;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class KazeKemono : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a kaze kemono corpse";
|
||||
public override string DefaultName => "a kaze kemono";
|
||||
public class KazeKemono : BaseCreature
|
||||
{
|
||||
private static Hashtable m_FlurryOfTwigsTable = new Hashtable();
|
||||
private static Hashtable m_ChlorophylBlastTable = new Hashtable();
|
||||
|
||||
[Constructible]
|
||||
public KazeKemono()
|
||||
: base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 196;
|
||||
BaseSoundID = 655;
|
||||
[Constructible]
|
||||
public KazeKemono()
|
||||
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 196;
|
||||
BaseSoundID = 655;
|
||||
|
||||
SetStr( 201, 275 );
|
||||
SetDex( 101, 155 );
|
||||
SetInt( 101, 105 );
|
||||
SetStr(201, 275);
|
||||
SetDex(101, 155);
|
||||
SetInt(101, 105);
|
||||
|
||||
SetHits( 251, 330 );
|
||||
SetHits(251, 330);
|
||||
|
||||
SetDamage( 15, 20 );
|
||||
SetDamage(15, 20);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Fire, 10 );
|
||||
SetDamageType( ResistanceType.Cold, 10 );
|
||||
SetDamageType( ResistanceType.Poison, 10 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Fire, 10);
|
||||
SetDamageType(ResistanceType.Cold, 10);
|
||||
SetDamageType(ResistanceType.Poison, 10);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 50, 70 );
|
||||
SetResistance( ResistanceType.Fire, 30, 60 );
|
||||
SetResistance( ResistanceType.Cold, 30, 60 );
|
||||
SetResistance( ResistanceType.Poison, 50, 70 );
|
||||
SetResistance( ResistanceType.Energy, 60, 80 );
|
||||
SetResistance(ResistanceType.Physical, 50, 70);
|
||||
SetResistance(ResistanceType.Fire, 30, 60);
|
||||
SetResistance(ResistanceType.Cold, 30, 60);
|
||||
SetResistance(ResistanceType.Poison, 50, 70);
|
||||
SetResistance(ResistanceType.Energy, 60, 80);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 110.1, 125.0 );
|
||||
SetSkill( SkillName.Tactics, 55.1, 65.0 );
|
||||
SetSkill( SkillName.Wrestling, 85.1, 95.0 );
|
||||
SetSkill( SkillName.Anatomy, 25.1, 35.0 );
|
||||
SetSkill( SkillName.Magery, 95.1, 105.0 );
|
||||
SetSkill(SkillName.MagicResist, 110.1, 125.0);
|
||||
SetSkill(SkillName.Tactics, 55.1, 65.0);
|
||||
SetSkill(SkillName.Wrestling, 85.1, 95.0);
|
||||
SetSkill(SkillName.Anatomy, 25.1, 35.0);
|
||||
SetSkill(SkillName.Magery, 95.1, 105.0);
|
||||
|
||||
Fame = 8000;
|
||||
Karma = -8000;
|
||||
}
|
||||
Fame = 8000;
|
||||
Karma = -8000;
|
||||
}
|
||||
|
||||
public KazeKemono(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a kaze kemono corpse";
|
||||
public override string DefaultName => "a kaze kemono";
|
||||
|
||||
public override bool BleedImmune => true;
|
||||
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich, 3 );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich, 3);
|
||||
}
|
||||
|
||||
public override bool BleedImmune => true;
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
if (0.1 > Utility.RandomDouble())
|
||||
{
|
||||
/* Flurry of Twigs
|
||||
* Start cliloc: 1070850
|
||||
* Effect: Physical resistance -15% for 5 seconds
|
||||
* End cliloc: 1070852
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(1048 779, 6)" ToLocation: "(1048 779, 6)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
*/
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Flurry of Twigs
|
||||
* Start cliloc: 1070850
|
||||
* Effect: Physical resistance -15% for 5 seconds
|
||||
* End cliloc: 1070852
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(1048 779, 6)" ToLocation: "(1048 779, 6)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
*/
|
||||
ExpireTimer timer = (ExpireTimer)m_FlurryOfTwigsTable[defender];
|
||||
|
||||
ExpireTimer timer = (ExpireTimer)m_FlurryOfTwigsTable[defender];
|
||||
if (timer != null)
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage(1070851); // The creature lands another blow in your weakened state.
|
||||
}
|
||||
else
|
||||
{
|
||||
defender.SendLocalizedMessage(
|
||||
1070850); // The creature's flurry of twigs has made you more susceptible to physical attacks!
|
||||
}
|
||||
|
||||
if ( timer != null )
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage( 1070851 ); // The creature lands another blow in your weakened state.
|
||||
}
|
||||
else
|
||||
defender.SendLocalizedMessage( 1070850 ); // The creature's flurry of twigs has made you more susceptible to physical attacks!
|
||||
int effect = -(defender.PhysicalResistance * 15 / 100);
|
||||
|
||||
int effect = -(defender.PhysicalResistance * 15 / 100);
|
||||
ResistanceMod mod = new ResistanceMod(ResistanceType.Physical, effect);
|
||||
|
||||
ResistanceMod mod = new ResistanceMod( ResistanceType.Physical, effect );
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
defender.AddResistanceMod(mod);
|
||||
|
||||
defender.FixedEffect( 0x37B9, 10, 5 );
|
||||
defender.AddResistanceMod( mod );
|
||||
timer = new ExpireTimer(defender, mod, m_FlurryOfTwigsTable, TimeSpan.FromSeconds(5.0));
|
||||
timer.Start();
|
||||
m_FlurryOfTwigsTable[defender] = timer;
|
||||
}
|
||||
else if (0.05 > Utility.RandomDouble())
|
||||
{
|
||||
/* Chlorophyl Blast
|
||||
* Start cliloc: 1070827
|
||||
* Effect: Energy resistance -50% for 10 seconds
|
||||
* End cliloc: 1070829
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(1048 779, 6)" ToLocation: "(1048 779, 6)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
*/
|
||||
|
||||
timer = new ExpireTimer( defender, mod, m_FlurryOfTwigsTable, TimeSpan.FromSeconds( 5.0 ) );
|
||||
timer.Start();
|
||||
m_FlurryOfTwigsTable[defender] = timer;
|
||||
}
|
||||
else if ( 0.05 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Chlorophyl Blast
|
||||
* Start cliloc: 1070827
|
||||
* Effect: Energy resistance -50% for 10 seconds
|
||||
* End cliloc: 1070829
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(1048 779, 6)" ToLocation: "(1048 779, 6)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
*/
|
||||
ExpireTimer timer = (ExpireTimer)m_ChlorophylBlastTable[defender];
|
||||
|
||||
ExpireTimer timer = (ExpireTimer)m_ChlorophylBlastTable[defender];
|
||||
if (timer != null)
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage(1070828); // The creature continues to hinder your energy resistance!
|
||||
}
|
||||
else
|
||||
{
|
||||
defender.SendLocalizedMessage(
|
||||
1070827); // The creature's attack has made you more susceptible to energy attacks!
|
||||
}
|
||||
|
||||
if ( timer != null )
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage( 1070828 ); // The creature continues to hinder your energy resistance!
|
||||
}
|
||||
else
|
||||
defender.SendLocalizedMessage( 1070827 ); // The creature's attack has made you more susceptible to energy attacks!
|
||||
int effect = -(defender.EnergyResistance / 2);
|
||||
|
||||
int effect = -(defender.EnergyResistance / 2);
|
||||
ResistanceMod mod = new ResistanceMod(ResistanceType.Energy, effect);
|
||||
|
||||
ResistanceMod mod = new ResistanceMod( ResistanceType.Energy, effect );
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
defender.AddResistanceMod(mod);
|
||||
|
||||
defender.FixedEffect( 0x37B9, 10, 5 );
|
||||
defender.AddResistanceMod( mod );
|
||||
timer = new ExpireTimer(defender, mod, m_ChlorophylBlastTable, TimeSpan.FromSeconds(10.0));
|
||||
timer.Start();
|
||||
m_ChlorophylBlastTable[defender] = timer;
|
||||
}
|
||||
}
|
||||
|
||||
timer = new ExpireTimer( defender, mod, m_ChlorophylBlastTable, TimeSpan.FromSeconds( 10.0 ) );
|
||||
timer.Start();
|
||||
m_ChlorophylBlastTable[defender] = timer;
|
||||
}
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
private static Hashtable m_FlurryOfTwigsTable = new Hashtable();
|
||||
private static Hashtable m_ChlorophylBlastTable = new Hashtable();
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
private Hashtable m_Table;
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
private Hashtable m_Table;
|
||||
|
||||
public ExpireTimer( Mobile m, ResistanceMod mod, Hashtable table, TimeSpan delay )
|
||||
: base( delay )
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_Mod = mod;
|
||||
m_Table = table;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
public ExpireTimer(Mobile m, ResistanceMod mod, Hashtable table, TimeSpan delay)
|
||||
: base(delay)
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_Mod = mod;
|
||||
m_Table = table;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
public void DoExpire()
|
||||
{
|
||||
m_Mobile.RemoveResistanceMod( m_Mod );
|
||||
Stop();
|
||||
m_Table.Remove( m_Mobile );
|
||||
}
|
||||
public void DoExpire()
|
||||
{
|
||||
m_Mobile.RemoveResistanceMod(m_Mod);
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
if ( m_Mod.Type == ResistanceType.Physical )
|
||||
m_Mobile.SendLocalizedMessage( 1070852 ); // Your resistance to physical attacks has returned.
|
||||
else
|
||||
m_Mobile.SendLocalizedMessage( 1070829 ); // Your resistance to energy attacks has returned.
|
||||
protected override void OnTick()
|
||||
{
|
||||
if (m_Mod.Type == ResistanceType.Physical)
|
||||
m_Mobile.SendLocalizedMessage(1070852); // Your resistance to physical attacks has returned.
|
||||
else
|
||||
m_Mobile.SendLocalizedMessage(1070829); // Your resistance to energy attacks has returned.
|
||||
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
|
||||
public KazeKemono( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,162 +1,165 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class LadyOfTheSnow : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a lady of the snow corpse";
|
||||
public override string DefaultName => "a lady of the snow";
|
||||
public class LadyOfTheSnow : BaseCreature
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
[Constructible]
|
||||
public LadyOfTheSnow()
|
||||
: base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 252;
|
||||
BaseSoundID = 0x482;
|
||||
[Constructible]
|
||||
public LadyOfTheSnow()
|
||||
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 252;
|
||||
BaseSoundID = 0x482;
|
||||
|
||||
SetStr( 276, 305 );
|
||||
SetDex( 106, 125 );
|
||||
SetInt( 471, 495 );
|
||||
SetStr(276, 305);
|
||||
SetDex(106, 125);
|
||||
SetInt(471, 495);
|
||||
|
||||
SetHits( 596, 625 );
|
||||
SetHits(596, 625);
|
||||
|
||||
SetDamage( 13, 20 );
|
||||
SetDamage(13, 20);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 20 );
|
||||
SetDamageType( ResistanceType.Cold, 80 );
|
||||
SetDamageType(ResistanceType.Physical, 20);
|
||||
SetDamageType(ResistanceType.Cold, 80);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 45, 55 );
|
||||
SetResistance( ResistanceType.Fire, 40, 55 );
|
||||
SetResistance( ResistanceType.Cold, 70, 90 );
|
||||
SetResistance( ResistanceType.Poison, 60, 70 );
|
||||
SetResistance( ResistanceType.Energy, 65, 85 );
|
||||
SetResistance(ResistanceType.Physical, 45, 55);
|
||||
SetResistance(ResistanceType.Fire, 40, 55);
|
||||
SetResistance(ResistanceType.Cold, 70, 90);
|
||||
SetResistance(ResistanceType.Poison, 60, 70);
|
||||
SetResistance(ResistanceType.Energy, 65, 85);
|
||||
|
||||
SetSkill( SkillName.Magery, 95.1, 110.0 );
|
||||
SetSkill( SkillName.MagicResist, 90.1, 105.0 );
|
||||
SetSkill( SkillName.Tactics, 80.1, 100.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.1, 100.0 );
|
||||
SetSkill( SkillName.Necromancy, 90, 110.0 );
|
||||
SetSkill( SkillName.SpiritSpeak, 90.0, 110.0 );
|
||||
SetSkill(SkillName.Magery, 95.1, 110.0);
|
||||
SetSkill(SkillName.MagicResist, 90.1, 105.0);
|
||||
SetSkill(SkillName.Tactics, 80.1, 100.0);
|
||||
SetSkill(SkillName.Wrestling, 80.1, 100.0);
|
||||
SetSkill(SkillName.Necromancy, 90, 110.0);
|
||||
SetSkill(SkillName.SpiritSpeak, 90.0, 110.0);
|
||||
|
||||
Fame = 15200;
|
||||
Karma = -15200;
|
||||
Fame = 15200;
|
||||
Karma = -15200;
|
||||
|
||||
|
||||
PackReg( 3 );
|
||||
PackItem( new Necklace() );
|
||||
PackReg(3);
|
||||
PackItem(new Necklace());
|
||||
|
||||
if ( 0.25 > Utility.RandomDouble() )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
}
|
||||
if (0.25 > Utility.RandomDouble())
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x370;
|
||||
}
|
||||
public LadyOfTheSnow(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich );
|
||||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
public override string CorpseName => "a lady of the snow corpse";
|
||||
public override string DefaultName => "a lady of the snow";
|
||||
|
||||
public override bool BleedImmune => true;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 4;
|
||||
public override bool BleedImmune => true;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 4;
|
||||
|
||||
// TODO: Snowball
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x370;
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Cold Wind
|
||||
* Graphics: Message - Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(928 164, 34)" ToLocation: "(928 164, 34)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Start cliloc: 1070832
|
||||
* Damage: 1hp per second for 5 seconds
|
||||
* End cliloc: 1070830
|
||||
* Reset cliloc: 1070831
|
||||
*/
|
||||
// TODO: Snowball
|
||||
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if ( timer != null )
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage( 1070831 ); // The freezing wind continues to blow!
|
||||
}
|
||||
else
|
||||
defender.SendLocalizedMessage( 1070832 ); // An icy wind surrounds you, freezing your lungs as you breathe!
|
||||
if (0.1 > Utility.RandomDouble())
|
||||
{
|
||||
/* Cold Wind
|
||||
* Graphics: Message - Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(928 164, 34)" ToLocation: "(928 164, 34)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Start cliloc: 1070832
|
||||
* Damage: 1hp per second for 5 seconds
|
||||
* End cliloc: 1070830
|
||||
* Reset cliloc: 1070831
|
||||
*/
|
||||
|
||||
timer = new ExpireTimer( defender, this );
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
if (timer != null)
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage(1070831); // The freezing wind continues to blow!
|
||||
}
|
||||
else
|
||||
{
|
||||
defender.SendLocalizedMessage(1070832); // An icy wind surrounds you, freezing your lungs as you breathe!
|
||||
}
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private Mobile m_From;
|
||||
private int m_Count;
|
||||
timer = new ExpireTimer(defender, this);
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
|
||||
public ExpireTimer( Mobile m, Mobile from )
|
||||
: base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) )
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_From = from;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
public void DoExpire()
|
||||
{
|
||||
Stop();
|
||||
m_Table.Remove( m_Mobile );
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public void DrainLife()
|
||||
{
|
||||
if ( m_Mobile.Alive )
|
||||
m_Mobile.Damage( 2, m_From );
|
||||
else
|
||||
DoExpire();
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife();
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
if ( ++m_Count >= 5 )
|
||||
{
|
||||
DoExpire();
|
||||
m_Mobile.SendLocalizedMessage( 1070830 ); // The icy wind dissipates.
|
||||
}
|
||||
}
|
||||
}
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private int m_Count;
|
||||
private Mobile m_From;
|
||||
private Mobile m_Mobile;
|
||||
|
||||
public LadyOfTheSnow( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
public ExpireTimer(Mobile m, Mobile from)
|
||||
: base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_From = from;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public void DoExpire()
|
||||
{
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
|
||||
writer.Write( (int)0 ); // version
|
||||
}
|
||||
public void DrainLife()
|
||||
{
|
||||
if (m_Mobile.Alive)
|
||||
m_Mobile.Damage(2, m_From);
|
||||
else
|
||||
DoExpire();
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife();
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (++m_Count >= 5)
|
||||
{
|
||||
DoExpire();
|
||||
m_Mobile.SendLocalizedMessage(1070830); // The icy wind dissipates.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,107 +1,109 @@
|
|||
using Server.Engines.Plants;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Oni : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "an oni corpse";
|
||||
public override string DefaultName => "an oni";
|
||||
public class Oni : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Oni() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 241;
|
||||
|
||||
[Constructible]
|
||||
public Oni() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 241;
|
||||
SetStr(801, 910);
|
||||
SetDex(151, 300);
|
||||
SetInt(171, 195);
|
||||
|
||||
SetStr( 801, 910 );
|
||||
SetDex( 151, 300 );
|
||||
SetInt( 171, 195 );
|
||||
SetHits(401, 530);
|
||||
|
||||
SetHits( 401, 530 );
|
||||
SetDamage(14, 20);
|
||||
|
||||
SetDamage( 14, 20 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Fire, 10);
|
||||
SetDamageType(ResistanceType.Energy, 20);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Fire, 10 );
|
||||
SetDamageType( ResistanceType.Energy, 20 );
|
||||
SetResistance(ResistanceType.Physical, 65, 80);
|
||||
SetResistance(ResistanceType.Fire, 50, 70);
|
||||
SetResistance(ResistanceType.Cold, 35, 50);
|
||||
SetResistance(ResistanceType.Poison, 45, 70);
|
||||
SetResistance(ResistanceType.Energy, 45, 65);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 65, 80 );
|
||||
SetResistance( ResistanceType.Fire, 50, 70 );
|
||||
SetResistance( ResistanceType.Cold, 35, 50 );
|
||||
SetResistance( ResistanceType.Poison, 45, 70 );
|
||||
SetResistance( ResistanceType.Energy, 45, 65 );
|
||||
SetSkill(SkillName.EvalInt, 100.1, 125.0);
|
||||
SetSkill(SkillName.Magery, 96.1, 106.0);
|
||||
SetSkill(SkillName.Anatomy, 85.1, 95.0);
|
||||
SetSkill(SkillName.MagicResist, 85.1, 100.0);
|
||||
SetSkill(SkillName.Tactics, 86.1, 101.0);
|
||||
SetSkill(SkillName.Wrestling, 90.1, 100.0);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 100.1, 125.0 );
|
||||
SetSkill( SkillName.Magery, 96.1, 106.0 );
|
||||
SetSkill( SkillName.Anatomy, 85.1, 95.0 );
|
||||
SetSkill( SkillName.MagicResist, 85.1, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 86.1, 101.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.1, 100.0 );
|
||||
Fame = 12000;
|
||||
Karma = -12000;
|
||||
|
||||
Fame = 12000;
|
||||
Karma = -12000;
|
||||
if (Utility.RandomDouble() < .33)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
|
||||
if ( Utility.RandomDouble() < .33 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
// TODO: Brain (0x1CF0) or Skull (0x1AE3) or Body Part (0x1CE3)
|
||||
}
|
||||
|
||||
// TODO: Brain (0x1CF0) or Skull (0x1AE3) or Body Part (0x1CE3)
|
||||
}
|
||||
/* TODO: Angry Fire
|
||||
* cliloc 1070823
|
||||
* Action: 4 4 1 true false 1
|
||||
* Damage: 50-85, 60 phys, 20 fire, 20 nrgy according to the guide
|
||||
* With 45/49/70 res I got 48
|
||||
* 50: 30/10/10 -> 16 + 5 + 3 = 24
|
||||
* 85: 51/17/17 -> 28 + 8 + 5 = 41
|
||||
*/
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4E3;
|
||||
}
|
||||
public Oni(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4E2;
|
||||
}
|
||||
public override string CorpseName => "an oni corpse";
|
||||
public override string DefaultName => "an oni";
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4E1;
|
||||
}
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 4;
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4E4;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4E3;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4E0;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4E2;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich, 3 );
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4E1;
|
||||
}
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 4;
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4E4;
|
||||
}
|
||||
|
||||
/* TODO: Angry Fire
|
||||
* cliloc 1070823
|
||||
* Action: 4 4 1 true false 1
|
||||
* Damage: 50-85, 60 phys, 20 fire, 20 nrgy according to the guide
|
||||
* With 45/49/70 res I got 48
|
||||
* 50: 30/10/10 -> 16 + 5 + 3 = 24
|
||||
* 85: 51/17/17 -> 28 + 8 + 5 = 41
|
||||
*/
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4E0;
|
||||
}
|
||||
|
||||
public Oni( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich, 3);
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,129 +3,128 @@ using System.Collections;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RaiJu : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a rai-ju corpse";
|
||||
public override string DefaultName => "a Rai-Ju";
|
||||
public class RaiJu : BaseCreature
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
[Constructible]
|
||||
public RaiJu() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 199;
|
||||
BaseSoundID = 0x346;
|
||||
[Constructible]
|
||||
public RaiJu() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 199;
|
||||
BaseSoundID = 0x346;
|
||||
|
||||
SetStr( 151, 225 );
|
||||
SetDex( 81, 135 );
|
||||
SetInt( 176, 180 );
|
||||
SetStr(151, 225);
|
||||
SetDex(81, 135);
|
||||
SetInt(176, 180);
|
||||
|
||||
SetHits( 201, 280 );
|
||||
SetHits(201, 280);
|
||||
|
||||
SetDamage( 12, 15 );
|
||||
SetDamage(12, 15);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 10 );
|
||||
SetDamageType( ResistanceType.Fire, 10 );
|
||||
SetDamageType( ResistanceType.Cold, 10 );
|
||||
SetDamageType( ResistanceType.Poison, 10 );
|
||||
SetDamageType( ResistanceType.Energy, 60 );
|
||||
SetDamageType(ResistanceType.Physical, 10);
|
||||
SetDamageType(ResistanceType.Fire, 10);
|
||||
SetDamageType(ResistanceType.Cold, 10);
|
||||
SetDamageType(ResistanceType.Poison, 10);
|
||||
SetDamageType(ResistanceType.Energy, 60);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 45, 65 );
|
||||
SetResistance( ResistanceType.Fire, 70, 85 );
|
||||
SetResistance( ResistanceType.Cold, 30, 60 );
|
||||
SetResistance( ResistanceType.Poison, 50, 70 );
|
||||
SetResistance( ResistanceType.Energy, 60, 80 );
|
||||
SetResistance(ResistanceType.Physical, 45, 65);
|
||||
SetResistance(ResistanceType.Fire, 70, 85);
|
||||
SetResistance(ResistanceType.Cold, 30, 60);
|
||||
SetResistance(ResistanceType.Poison, 50, 70);
|
||||
SetResistance(ResistanceType.Energy, 60, 80);
|
||||
|
||||
SetSkill( SkillName.Wrestling, 85.1, 95.0 );
|
||||
SetSkill( SkillName.Tactics, 55.1, 65.0 );
|
||||
SetSkill( SkillName.MagicResist, 110.1, 125.0 );
|
||||
SetSkill( SkillName.Anatomy, 25.1, 35.0 );
|
||||
SetSkill(SkillName.Wrestling, 85.1, 95.0);
|
||||
SetSkill(SkillName.Tactics, 55.1, 65.0);
|
||||
SetSkill(SkillName.MagicResist, 110.1, 125.0);
|
||||
SetSkill(SkillName.Anatomy, 25.1, 35.0);
|
||||
|
||||
Fame = 8000;
|
||||
Karma = -8000;
|
||||
Fame = 8000;
|
||||
Karma = -8000;
|
||||
}
|
||||
|
||||
}
|
||||
public RaiJu(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich, 2 );
|
||||
AddLoot( LootPack.Gems, 2 );
|
||||
}
|
||||
public override bool BleedImmune => true;
|
||||
public override string CorpseName => "a rai-ju corpse";
|
||||
public override string DefaultName => "a Rai-Ju";
|
||||
public override bool BleedImmune => true;
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich, 2);
|
||||
AddLoot(LootPack.Gems, 2);
|
||||
}
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() && !IsStunned( defender ) )
|
||||
{
|
||||
/* Lightning Fist
|
||||
* Cliloc: 1070839
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Damage: 35-65, 100% energy, resistable
|
||||
* Freezes for 4 seconds
|
||||
* Effect cannot stack
|
||||
*/
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
defender.FixedEffect( 0x37B9, 10, 5 );
|
||||
defender.SendLocalizedMessage( 1070839 ); // The creature attacks with stunning force!
|
||||
if (0.1 > Utility.RandomDouble() && !IsStunned(defender))
|
||||
{
|
||||
/* Lightning Fist
|
||||
* Cliloc: 1070839
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Damage: 35-65, 100% energy, resistable
|
||||
* Freezes for 4 seconds
|
||||
* Effect cannot stack
|
||||
*/
|
||||
|
||||
// This should be done in place of the normal attack damage.
|
||||
//AOS.Damage( defender, this, Utility.RandomMinMax( 35, 65 ), 0, 0, 0, 0, 100 );
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
defender.SendLocalizedMessage(1070839); // The creature attacks with stunning force!
|
||||
|
||||
defender.Frozen = true;
|
||||
// This should be done in place of the normal attack damage.
|
||||
//AOS.Damage( defender, this, Utility.RandomMinMax( 35, 65 ), 0, 0, 0, 0, 100 );
|
||||
|
||||
ExpireTimer timer = new ExpireTimer( defender, TimeSpan.FromSeconds( 4.0 ) );
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
defender.Frozen = true;
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
ExpireTimer timer = new ExpireTimer(defender, TimeSpan.FromSeconds(4.0));
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsStunned( Mobile m )
|
||||
{
|
||||
return m_Table.Contains( m );
|
||||
}
|
||||
public bool IsStunned(Mobile m)
|
||||
{
|
||||
return m_Table.Contains(m);
|
||||
}
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
public ExpireTimer( Mobile m, TimeSpan delay ) : base( delay )
|
||||
{
|
||||
m_Mobile = m;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public void DoExpire()
|
||||
{
|
||||
m_Mobile.Frozen = false;
|
||||
Stop();
|
||||
m_Table.Remove( m_Mobile );
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
m_Mobile.SendLocalizedMessage( 1005603 ); // You can move again!
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public RaiJu( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public ExpireTimer(Mobile m, TimeSpan delay) : base(delay)
|
||||
{
|
||||
m_Mobile = m;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
public void DoExpire()
|
||||
{
|
||||
m_Mobile.Frozen = false;
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
m_Mobile.SendLocalizedMessage(1005603); // You can move again!
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,113 +2,137 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RevenantLion : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a revenant lion corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.BleedAttack;
|
||||
public override string DefaultName => "a Revenant Lion";
|
||||
public class RevenantLion : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RevenantLion() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 251;
|
||||
|
||||
[Constructible]
|
||||
public RevenantLion() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 251;
|
||||
SetStr(276, 325);
|
||||
SetDex(156, 175);
|
||||
SetInt(76, 105);
|
||||
|
||||
SetStr( 276, 325 );
|
||||
SetDex( 156, 175 );
|
||||
SetInt( 76, 105 );
|
||||
SetHits(251, 280);
|
||||
|
||||
SetHits( 251, 280 );
|
||||
SetDamage(18, 24);
|
||||
|
||||
SetDamage( 18, 24 );
|
||||
SetDamageType(ResistanceType.Physical, 30);
|
||||
SetDamageType(ResistanceType.Cold, 30);
|
||||
SetDamageType(ResistanceType.Poison, 10);
|
||||
SetDamageType(ResistanceType.Energy, 30);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 30 );
|
||||
SetDamageType( ResistanceType.Cold, 30 );
|
||||
SetDamageType( ResistanceType.Poison, 10 );
|
||||
SetDamageType( ResistanceType.Energy, 30 );
|
||||
SetResistance(ResistanceType.Physical, 40, 60);
|
||||
SetResistance(ResistanceType.Fire, 20, 30);
|
||||
SetResistance(ResistanceType.Cold, 50, 60);
|
||||
SetResistance(ResistanceType.Poison, 55, 65);
|
||||
SetResistance(ResistanceType.Energy, 40, 50);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 60 );
|
||||
SetResistance( ResistanceType.Fire, 20, 30 );
|
||||
SetResistance( ResistanceType.Cold, 50, 60 );
|
||||
SetResistance( ResistanceType.Poison, 55, 65 );
|
||||
SetResistance( ResistanceType.Energy, 40, 50 );
|
||||
SetSkill(SkillName.EvalInt, 80.1, 90.0);
|
||||
SetSkill(SkillName.Magery, 80.1, 90.0);
|
||||
SetSkill(SkillName.Poisoning, 120.1, 130.0);
|
||||
SetSkill(SkillName.MagicResist, 70.1, 90.0);
|
||||
SetSkill(SkillName.Tactics, 60.1, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.1, 88.0);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Magery, 80.1, 90.0 );
|
||||
SetSkill( SkillName.Poisoning, 120.1, 130.0 );
|
||||
SetSkill( SkillName.MagicResist, 70.1, 90.0 );
|
||||
SetSkill( SkillName.Tactics, 60.1, 80.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.1, 88.0 );
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
PackNecroReg(6, 8);
|
||||
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
PackNecroReg( 6, 8 );
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
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 RevenantLion(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x518;
|
||||
}
|
||||
public override string CorpseName => "a revenant lion corpse";
|
||||
public override string DefaultName => "a Revenant Lion";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x517;
|
||||
}
|
||||
public override bool BleedImmune => true;
|
||||
public override Poison PoisonImmune => Poison.Greater;
|
||||
public override Poison HitPoison => Poison.Greater;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x516;
|
||||
}
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.BleedAttack;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x519;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x518;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x515;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x517;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich, 2 );
|
||||
AddLoot( LootPack.MedScrolls, 2 );
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x516;
|
||||
}
|
||||
|
||||
// TODO: Bone Pile
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x519;
|
||||
}
|
||||
|
||||
public override bool BleedImmune => true;
|
||||
public override Poison PoisonImmune => Poison.Greater;
|
||||
public override Poison HitPoison => Poison.Greater;
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x515;
|
||||
}
|
||||
|
||||
public RevenantLion( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich, 2);
|
||||
AddLoot(LootPack.MedScrolls, 2);
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
// TODO: Bone Pile
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,117 +2,130 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Ronin : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a ronin corpse";
|
||||
public override bool ClickTitle => false;
|
||||
public override string DefaultName => "a ronin";
|
||||
public class Ronin : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Ronin() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Female = Utility.RandomBool();
|
||||
Body = Female ? 0x191 : 0x190;
|
||||
|
||||
[Constructible]
|
||||
public Ronin() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Female = Utility.RandomBool();
|
||||
Body = Female ? 0x191 : 0x190;
|
||||
SetStr(326, 375);
|
||||
SetDex(31, 45);
|
||||
SetInt(101, 110);
|
||||
|
||||
SetStr( 326, 375 );
|
||||
SetDex( 31, 45 );
|
||||
SetInt( 101, 110 );
|
||||
SetHits(301, 400);
|
||||
SetMana(101, 110);
|
||||
|
||||
SetHits( 301, 400 );
|
||||
SetMana( 101, 110 );
|
||||
SetDamage(17, 25);
|
||||
|
||||
SetDamage( 17, 25 );
|
||||
SetDamageType(ResistanceType.Physical, 90);
|
||||
SetDamageType(ResistanceType.Poison, 10);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 90 );
|
||||
SetDamageType( ResistanceType.Poison, 10 );
|
||||
SetResistance(ResistanceType.Physical, 55, 75);
|
||||
SetResistance(ResistanceType.Fire, 40, 60);
|
||||
SetResistance(ResistanceType.Cold, 35, 55);
|
||||
SetResistance(ResistanceType.Poison, 50, 70);
|
||||
SetResistance(ResistanceType.Energy, 55, 75);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 75 );
|
||||
SetResistance( ResistanceType.Fire, 40, 60 );
|
||||
SetResistance( ResistanceType.Cold, 35, 55 );
|
||||
SetResistance( ResistanceType.Poison, 50, 70 );
|
||||
SetResistance( ResistanceType.Energy, 55, 75 );
|
||||
SetSkill(SkillName.MagicResist, 42.6, 57.5);
|
||||
SetSkill(SkillName.Tactics, 115.1, 130.0);
|
||||
SetSkill(SkillName.Wrestling, 92.6, 107.5);
|
||||
SetSkill(SkillName.Anatomy, 110.1, 125.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 42.6, 57.5 );
|
||||
SetSkill( SkillName.Tactics, 115.1, 130.0 );
|
||||
SetSkill( SkillName.Wrestling, 92.6, 107.5 );
|
||||
SetSkill( SkillName.Anatomy, 110.1, 125.0 );
|
||||
SetSkill(SkillName.Fencing, 92.6, 107.5);
|
||||
SetSkill(SkillName.Macing, 92.6, 107.5);
|
||||
SetSkill(SkillName.Swords, 92.6, 107.5);
|
||||
|
||||
SetSkill( SkillName.Fencing, 92.6, 107.5 );
|
||||
SetSkill( SkillName.Macing, 92.6, 107.5 );
|
||||
SetSkill( SkillName.Swords, 92.6, 107.5 );
|
||||
Fame = 8500;
|
||||
Karma = -8500;
|
||||
|
||||
Fame = 8500;
|
||||
Karma = -8500;
|
||||
AddItem(new SamuraiTabi());
|
||||
AddItem(new LeatherHiroSode());
|
||||
AddItem(new LeatherDo());
|
||||
|
||||
AddItem( new SamuraiTabi() );
|
||||
AddItem( new LeatherHiroSode());
|
||||
AddItem( new LeatherDo());
|
||||
switch (Utility.Random(4))
|
||||
{
|
||||
case 0:
|
||||
AddItem(new LightPlateJingasa());
|
||||
break;
|
||||
case 1:
|
||||
AddItem(new ChainHatsuburi());
|
||||
break;
|
||||
case 2:
|
||||
AddItem(new DecorativePlateKabuto());
|
||||
break;
|
||||
case 3:
|
||||
AddItem(new LeatherJingasa());
|
||||
break;
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 4 ))
|
||||
{
|
||||
case 0: AddItem( new LightPlateJingasa()); break;
|
||||
case 1: AddItem( new ChainHatsuburi() ); break;
|
||||
case 2: AddItem( new DecorativePlateKabuto() ); break;
|
||||
case 3: AddItem( new LeatherJingasa()); break;
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 3 ))
|
||||
{
|
||||
case 0: AddItem( new StuddedHaidate()); break;
|
||||
case 1: AddItem( new LeatherSuneate() ); break;
|
||||
case 2: AddItem( new PlateSuneate() ); break;
|
||||
}
|
||||
switch (Utility.Random(3))
|
||||
{
|
||||
case 0:
|
||||
AddItem(new StuddedHaidate());
|
||||
break;
|
||||
case 1:
|
||||
AddItem(new LeatherSuneate());
|
||||
break;
|
||||
case 2:
|
||||
AddItem(new PlateSuneate());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (Utility.RandomDouble() > .2)
|
||||
AddItem(new NoDachi());
|
||||
else
|
||||
AddItem(new Halberd());
|
||||
|
||||
if ( Utility.RandomDouble() > .2 )
|
||||
AddItem( new NoDachi() );
|
||||
else
|
||||
AddItem( new Halberd() );
|
||||
PackItem(new Wakizashi());
|
||||
PackItem(new Longsword());
|
||||
|
||||
PackItem( new Wakizashi() );
|
||||
PackItem( new Longsword() );
|
||||
Utility.AssignRandomHair(this);
|
||||
}
|
||||
|
||||
Utility.AssignRandomHair( this );
|
||||
}
|
||||
public Ronin(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
c.DropItem( new BookOfBushido() );
|
||||
}
|
||||
public override string CorpseName => "a ronin corpse";
|
||||
public override bool ClickTitle => false;
|
||||
public override string DefaultName => "a ronin";
|
||||
|
||||
// TODO: Bushido abilities
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool BardImmune => true;
|
||||
public override bool CanRummageCorpses => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich );
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Gems, 2 );
|
||||
}
|
||||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
c.DropItem(new BookOfBushido());
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool BardImmune => true;
|
||||
public override bool CanRummageCorpses => true;
|
||||
// TODO: Bushido abilities
|
||||
|
||||
public Ronin( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems, 2);
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,236 +1,262 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RuneBeetle : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a rune beetle corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.BleedAttack;
|
||||
public override string DefaultName => "a rune beetle";
|
||||
public class RuneBeetle : BaseCreature
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
[Constructible]
|
||||
public RuneBeetle() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 244;
|
||||
[Constructible]
|
||||
public RuneBeetle() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 244;
|
||||
|
||||
SetStr( 401, 460 );
|
||||
SetDex( 121, 170 );
|
||||
SetInt( 376, 450 );
|
||||
SetStr(401, 460);
|
||||
SetDex(121, 170);
|
||||
SetInt(376, 450);
|
||||
|
||||
SetHits( 301, 360 );
|
||||
SetHits(301, 360);
|
||||
|
||||
SetDamage( 15, 22 );
|
||||
SetDamage(15, 22);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 20 );
|
||||
SetDamageType( ResistanceType.Poison, 10 );
|
||||
SetDamageType( ResistanceType.Energy, 70 );
|
||||
SetDamageType(ResistanceType.Physical, 20);
|
||||
SetDamageType(ResistanceType.Poison, 10);
|
||||
SetDamageType(ResistanceType.Energy, 70);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 65 );
|
||||
SetResistance( ResistanceType.Fire, 35, 50 );
|
||||
SetResistance( ResistanceType.Cold, 35, 50 );
|
||||
SetResistance( ResistanceType.Poison, 75, 95 );
|
||||
SetResistance( ResistanceType.Energy, 40, 60 );
|
||||
SetResistance(ResistanceType.Physical, 40, 65);
|
||||
SetResistance(ResistanceType.Fire, 35, 50);
|
||||
SetResistance(ResistanceType.Cold, 35, 50);
|
||||
SetResistance(ResistanceType.Poison, 75, 95);
|
||||
SetResistance(ResistanceType.Energy, 40, 60);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 100.1, 125.0 );
|
||||
SetSkill( SkillName.Magery, 100.1, 110.0 );
|
||||
SetSkill( SkillName.Poisoning, 120.1, 140.0 );
|
||||
SetSkill( SkillName.MagicResist, 95.1, 110.0 );
|
||||
SetSkill( SkillName.Tactics, 78.1, 93.0 );
|
||||
SetSkill( SkillName.Wrestling, 70.1, 77.5 );
|
||||
SetSkill(SkillName.EvalInt, 100.1, 125.0);
|
||||
SetSkill(SkillName.Magery, 100.1, 110.0);
|
||||
SetSkill(SkillName.Poisoning, 120.1, 140.0);
|
||||
SetSkill(SkillName.MagicResist, 95.1, 110.0);
|
||||
SetSkill(SkillName.Tactics, 78.1, 93.0);
|
||||
SetSkill(SkillName.Wrestling, 70.1, 77.5);
|
||||
|
||||
Fame = 15000;
|
||||
Karma = -15000;
|
||||
Fame = 15000;
|
||||
Karma = -15000;
|
||||
|
||||
|
||||
if ( Utility.RandomDouble() < .25 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
if (Utility.RandomDouble() < .25)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 3;
|
||||
MinTameSkill = 93.9;
|
||||
Tamable = true;
|
||||
ControlSlots = 3;
|
||||
MinTameSkill = 93.9;
|
||||
}
|
||||
|
||||
}
|
||||
public RuneBeetle(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4E8;
|
||||
}
|
||||
public override string CorpseName => "a rune beetle corpse";
|
||||
public override string DefaultName => "a rune beetle";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4E7;
|
||||
}
|
||||
public override Poison PoisonImmune => Poison.Greater;
|
||||
public override Poison HitPoison => Poison.Greater;
|
||||
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
||||
public override bool CanAngerOnTame => true;
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4E6;
|
||||
}
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.BleedAttack;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4E9;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x4E8;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4E5;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x4E7;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich, 2 );
|
||||
AddLoot( LootPack.MedScrolls, 1 );
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x4E6;
|
||||
}
|
||||
|
||||
public override Poison PoisonImmune => Poison.Greater;
|
||||
public override Poison HitPoison => Poison.Greater;
|
||||
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
||||
public override bool CanAngerOnTame => true;
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x4E9;
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x4E5;
|
||||
}
|
||||
|
||||
if ( 0.05 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Rune Corruption
|
||||
* Start cliloc: 1070846 "The creature magically corrupts your armor!"
|
||||
* Effect: All resistances -70 (lowest 0) for 5 seconds
|
||||
* End ASCII: "The corruption of your armor has worn off"
|
||||
*/
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich, 2);
|
||||
AddLoot(LootPack.MedScrolls, 1);
|
||||
}
|
||||
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if ( timer != null )
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage( 1070845 ); // The creature continues to corrupt your armor!
|
||||
}
|
||||
else
|
||||
defender.SendLocalizedMessage( 1070846 ); // The creature magically corrupts your armor!
|
||||
if (0.05 > Utility.RandomDouble())
|
||||
{
|
||||
/* Rune Corruption
|
||||
* Start cliloc: 1070846 "The creature magically corrupts your armor!"
|
||||
* Effect: All resistances -70 (lowest 0) for 5 seconds
|
||||
* End ASCII: "The corruption of your armor has worn off"
|
||||
*/
|
||||
|
||||
List<ResistanceMod> mods = new List<ResistanceMod>();
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
|
||||
if ( Core.ML )
|
||||
{
|
||||
if ( defender.PhysicalResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Physical, -(defender.PhysicalResistance / 2) ) );
|
||||
if (timer != null)
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage(1070845); // The creature continues to corrupt your armor!
|
||||
}
|
||||
else
|
||||
{
|
||||
defender.SendLocalizedMessage(1070846); // The creature magically corrupts your armor!
|
||||
}
|
||||
|
||||
if ( defender.FireResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Fire, -(defender.FireResistance / 2) ) );
|
||||
List<ResistanceMod> mods = new List<ResistanceMod>();
|
||||
|
||||
if ( defender.ColdResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Cold, -(defender.ColdResistance / 2) ) );
|
||||
if (Core.ML)
|
||||
{
|
||||
if (defender.PhysicalResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Physical, -(defender.PhysicalResistance / 2)));
|
||||
|
||||
if ( defender.PoisonResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Poison, -(defender.PoisonResistance / 2) ) );
|
||||
if (defender.FireResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Fire, -(defender.FireResistance / 2)));
|
||||
|
||||
if ( defender.EnergyResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Energy, -(defender.EnergyResistance / 2) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( defender.PhysicalResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Physical, (defender.PhysicalResistance > 70) ? -70 : -defender.PhysicalResistance ) );
|
||||
if (defender.ColdResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Cold, -(defender.ColdResistance / 2)));
|
||||
|
||||
if ( defender.FireResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Fire, (defender.FireResistance > 70) ? -70 : -defender.FireResistance ) );
|
||||
if (defender.PoisonResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Poison, -(defender.PoisonResistance / 2)));
|
||||
|
||||
if ( defender.ColdResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Cold, (defender.ColdResistance > 70) ? -70 : -defender.ColdResistance ) );
|
||||
if (defender.EnergyResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Energy, -(defender.EnergyResistance / 2)));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (defender.PhysicalResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Physical,
|
||||
defender.PhysicalResistance > 70 ? -70 : -defender.PhysicalResistance));
|
||||
|
||||
if ( defender.PoisonResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Poison, (defender.PoisonResistance > 70) ? -70 : -defender.PoisonResistance ) );
|
||||
if (defender.FireResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Fire,
|
||||
defender.FireResistance > 70 ? -70 : -defender.FireResistance));
|
||||
|
||||
if ( defender.EnergyResistance > 0 )
|
||||
mods.Add( new ResistanceMod( ResistanceType.Energy, (defender.EnergyResistance > 70) ? -70 : -defender.EnergyResistance ) );
|
||||
}
|
||||
if (defender.ColdResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Cold,
|
||||
defender.ColdResistance > 70 ? -70 : -defender.ColdResistance));
|
||||
|
||||
for ( int i = 0; i < mods.Count; ++i )
|
||||
defender.AddResistanceMod( mods[i] );
|
||||
if (defender.PoisonResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Poison,
|
||||
defender.PoisonResistance > 70 ? -70 : -defender.PoisonResistance));
|
||||
|
||||
defender.FixedEffect( 0x37B9, 10, 5 );
|
||||
if (defender.EnergyResistance > 0)
|
||||
mods.Add(new ResistanceMod(ResistanceType.Energy,
|
||||
defender.EnergyResistance > 70 ? -70 : -defender.EnergyResistance));
|
||||
}
|
||||
|
||||
timer = new ExpireTimer( defender, mods, TimeSpan.FromSeconds( 5.0 ) );
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < mods.Count; ++i)
|
||||
defender.AddResistanceMod(mods[i]);
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private List<ResistanceMod> m_Mods;
|
||||
timer = new ExpireTimer(defender, mods, TimeSpan.FromSeconds(5.0));
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
|
||||
public ExpireTimer( Mobile m, List<ResistanceMod> mods, TimeSpan delay ) : base( delay )
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_Mods = mods;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(1);
|
||||
}
|
||||
|
||||
public void DoExpire()
|
||||
{
|
||||
for ( int i = 0; i < m_Mods.Count; ++i )
|
||||
m_Mobile.RemoveResistanceMod( m_Mods[i] );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
|
||||
Stop();
|
||||
m_Table.Remove( m_Mobile );
|
||||
}
|
||||
if (version < 1)
|
||||
for (int i = 0; i < Skills.Length; ++i)
|
||||
{
|
||||
Skills[i].Cap = Math.Max(100.0, Skills[i].Cap * 0.9);
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
m_Mobile.SendMessage( "The corruption of your armor has worn off" );
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
if (Skills[i].Base > Skills[i].Cap) Skills[i].Base = Skills[i].Cap;
|
||||
}
|
||||
}
|
||||
|
||||
public RuneBeetle( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private List<ResistanceMod> m_Mods;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 1 );
|
||||
}
|
||||
public ExpireTimer(Mobile m, List<ResistanceMod> mods, TimeSpan delay) : base(delay)
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_Mods = mods;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
public void DoExpire()
|
||||
{
|
||||
for (int i = 0; i < m_Mods.Count; ++i)
|
||||
m_Mobile.RemoveResistanceMod(m_Mods[i]);
|
||||
|
||||
if ( version < 1 )
|
||||
{
|
||||
for ( int i = 0; i < Skills.Length; ++i )
|
||||
{
|
||||
Skills[i].Cap = Math.Max( 100.0, Skills[i].Cap * 0.9 );
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
|
||||
if ( Skills[i].Base > Skills[i].Cap )
|
||||
{
|
||||
Skills[i].Base = Skills[i].Cap;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
m_Mobile.SendMessage("The corruption of your armor has worn off");
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,189 +1,212 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class TsukiWolf : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a tsuki wolf corpse";
|
||||
public override string DefaultName => "a tsuki wolf";
|
||||
public class TsukiWolf : BaseCreature
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
[Constructible]
|
||||
public TsukiWolf()
|
||||
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 250;
|
||||
Hue = Utility.Random(3) == 0 ? Utility.RandomNeutralHue() : 0;
|
||||
[Constructible]
|
||||
public TsukiWolf()
|
||||
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 250;
|
||||
Hue = Utility.Random(3) == 0 ? Utility.RandomNeutralHue() : 0;
|
||||
|
||||
SetStr( 401, 450 );
|
||||
SetDex( 151, 200 );
|
||||
SetInt( 66, 76 );
|
||||
SetStr(401, 450);
|
||||
SetDex(151, 200);
|
||||
SetInt(66, 76);
|
||||
|
||||
SetHits( 376, 450 );
|
||||
SetMana( 40 );
|
||||
SetHits(376, 450);
|
||||
SetMana(40);
|
||||
|
||||
SetDamage( 14, 18 );
|
||||
SetDamage(14, 18);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 90 );
|
||||
SetDamageType( ResistanceType.Cold, 5 );
|
||||
SetDamageType( ResistanceType.Energy, 5 );
|
||||
SetDamageType(ResistanceType.Physical, 90);
|
||||
SetDamageType(ResistanceType.Cold, 5);
|
||||
SetDamageType(ResistanceType.Energy, 5);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 60 );
|
||||
SetResistance( ResistanceType.Fire, 50, 70 );
|
||||
SetResistance( ResistanceType.Cold, 50, 70 );
|
||||
SetResistance( ResistanceType.Poison, 50, 70 );
|
||||
SetResistance( ResistanceType.Energy, 50, 70 );
|
||||
SetResistance(ResistanceType.Physical, 40, 60);
|
||||
SetResistance(ResistanceType.Fire, 50, 70);
|
||||
SetResistance(ResistanceType.Cold, 50, 70);
|
||||
SetResistance(ResistanceType.Poison, 50, 70);
|
||||
SetResistance(ResistanceType.Energy, 50, 70);
|
||||
|
||||
SetSkill( SkillName.Anatomy, 65.1, 72.0 );
|
||||
SetSkill( SkillName.MagicResist, 65.1, 70.0 );
|
||||
SetSkill( SkillName.Tactics, 95.1, 110.0 );
|
||||
SetSkill( SkillName.Wrestling, 97.6, 107.5 );
|
||||
SetSkill(SkillName.Anatomy, 65.1, 72.0);
|
||||
SetSkill(SkillName.MagicResist, 65.1, 70.0);
|
||||
SetSkill(SkillName.Tactics, 95.1, 110.0);
|
||||
SetSkill(SkillName.Wrestling, 97.6, 107.5);
|
||||
|
||||
Fame = 8500;
|
||||
Karma = -8500;
|
||||
Fame = 8500;
|
||||
Karma = -8500;
|
||||
|
||||
if ( Core.ML && Utility.RandomDouble() < .33 )
|
||||
PackItem( Engines.Plants.Seed.RandomPeculiarSeed(1) );
|
||||
if (Core.ML && Utility.RandomDouble() < .33)
|
||||
PackItem(Seed.RandomPeculiarSeed(1));
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
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 override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Average );
|
||||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
public override int Meat => 4;
|
||||
public override int Hides => 25;
|
||||
public override FoodType FavoriteFood => FoodType.Meat;
|
||||
public TsukiWolf(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
public override string CorpseName => "a tsuki wolf corpse";
|
||||
public override string DefaultName => "a tsuki wolf";
|
||||
public override int Meat => 4;
|
||||
public override int Hides => 25;
|
||||
public override FoodType FavoriteFood => FoodType.Meat;
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Blood Bath
|
||||
* Start cliloc 1070826
|
||||
* Sound: 0x52B
|
||||
* 2-3 blood spots
|
||||
* Damage: 2 hps per second for 5 seconds
|
||||
* End cliloc: 1070824
|
||||
*/
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average);
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if ( timer != null )
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage( 1070825 ); // The creature continues to rage!
|
||||
}
|
||||
else
|
||||
defender.SendLocalizedMessage( 1070826 ); // The creature goes into a rage, inflicting heavy damage!
|
||||
if (0.1 > Utility.RandomDouble())
|
||||
{
|
||||
/* Blood Bath
|
||||
* Start cliloc 1070826
|
||||
* Sound: 0x52B
|
||||
* 2-3 blood spots
|
||||
* Damage: 2 hps per second for 5 seconds
|
||||
* End cliloc: 1070824
|
||||
*/
|
||||
|
||||
timer = new ExpireTimer( defender, this );
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
if (timer != null)
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage(1070825); // The creature continues to rage!
|
||||
}
|
||||
else
|
||||
{
|
||||
defender.SendLocalizedMessage(1070826); // The creature goes into a rage, inflicting heavy damage!
|
||||
}
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private Mobile m_From;
|
||||
private int m_Count;
|
||||
timer = new ExpireTimer(defender, this);
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
}
|
||||
|
||||
public ExpireTimer( Mobile m, Mobile from )
|
||||
: base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) )
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_From = from;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
public void DoExpire()
|
||||
{
|
||||
Stop();
|
||||
m_Table.Remove( m_Mobile );
|
||||
}
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public void DrainLife()
|
||||
{
|
||||
if ( m_Mobile.Alive )
|
||||
m_Mobile.Damage( 2, m_From );
|
||||
else
|
||||
DoExpire();
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife();
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
if ( ++m_Count >= 5 )
|
||||
{
|
||||
DoExpire();
|
||||
m_Mobile.SendLocalizedMessage( 1070824 ); // The creature's rage subsides.
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x52D;
|
||||
}
|
||||
|
||||
public TsukiWolf( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x52C;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x52B;
|
||||
}
|
||||
|
||||
writer.Write( (int)0 );
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x52E;
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x52A;
|
||||
}
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private int m_Count;
|
||||
private Mobile m_From;
|
||||
private Mobile m_Mobile;
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x52D;
|
||||
}
|
||||
public ExpireTimer(Mobile m, Mobile from)
|
||||
: base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_From = from;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x52C;
|
||||
}
|
||||
public void DoExpire()
|
||||
{
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x52B;
|
||||
}
|
||||
public void DrainLife()
|
||||
{
|
||||
if (m_Mobile.Alive)
|
||||
m_Mobile.Damage(2, m_From);
|
||||
else
|
||||
DoExpire();
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x52E;
|
||||
}
|
||||
protected override void OnTick()
|
||||
{
|
||||
DrainLife();
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x52A;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (++m_Count >= 5)
|
||||
{
|
||||
DoExpire();
|
||||
m_Mobile.SendLocalizedMessage(1070824); // The creature's rage subsides.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,181 +1,186 @@
|
|||
using System.Collections;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[TypeAlias( "Server.Mobiles.Yamadon" )]
|
||||
public class Yamandon : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a yamandon corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.DoubleStrike;
|
||||
public override string DefaultName => "a yamandon";
|
||||
[TypeAlias("Server.Mobiles.Yamadon")]
|
||||
public class Yamandon : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Yamandon() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 249;
|
||||
|
||||
[Constructible]
|
||||
public Yamandon() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 249;
|
||||
SetStr(786, 930);
|
||||
SetDex(251, 365);
|
||||
SetInt(101, 115);
|
||||
|
||||
SetStr( 786, 930 );
|
||||
SetDex( 251, 365 );
|
||||
SetInt( 101, 115 );
|
||||
SetHits(1601, 1800);
|
||||
|
||||
SetHits( 1601, 1800 );
|
||||
SetDamage(19, 35);
|
||||
|
||||
SetDamage( 19, 35 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Poison, 20);
|
||||
SetDamageType(ResistanceType.Energy, 10);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Poison, 20 );
|
||||
SetDamageType( ResistanceType.Energy, 10 );
|
||||
SetResistance(ResistanceType.Physical, 65, 85);
|
||||
SetResistance(ResistanceType.Fire, 70, 90);
|
||||
SetResistance(ResistanceType.Cold, 50, 70);
|
||||
SetResistance(ResistanceType.Poison, 50, 70);
|
||||
SetResistance(ResistanceType.Energy, 50, 70);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 65, 85 );
|
||||
SetResistance( ResistanceType.Fire, 70, 90 );
|
||||
SetResistance( ResistanceType.Cold, 50, 70 );
|
||||
SetResistance( ResistanceType.Poison, 50, 70 );
|
||||
SetResistance( ResistanceType.Energy, 50, 70 );
|
||||
SetSkill(SkillName.Anatomy, 115.1, 130.0);
|
||||
SetSkill(SkillName.MagicResist, 117.6, 132.5);
|
||||
SetSkill(SkillName.Poisoning, 120.1, 140.0);
|
||||
SetSkill(SkillName.Tactics, 117.1, 132.0);
|
||||
SetSkill(SkillName.Wrestling, 112.6, 132.5);
|
||||
|
||||
SetSkill( SkillName.Anatomy, 115.1, 130.0 );
|
||||
SetSkill( SkillName.MagicResist, 117.6, 132.5 );
|
||||
SetSkill( SkillName.Poisoning, 120.1, 140.0 );
|
||||
SetSkill( SkillName.Tactics, 117.1, 132.0 );
|
||||
SetSkill( SkillName.Wrestling, 112.6, 132.5 );
|
||||
Fame = 22000;
|
||||
Karma = -22000;
|
||||
|
||||
Fame = 22000;
|
||||
Karma = -22000;
|
||||
if (Utility.RandomDouble() < .50)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
|
||||
if ( Utility.RandomDouble() < .50 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
|
||||
PackItem( new Eggs( 2 ) );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich );
|
||||
AddLoot( LootPack.FilthyRich, 2 );
|
||||
AddLoot( LootPack.Gems, 6 );
|
||||
}
|
||||
|
||||
public override bool ReacquireOnMovement => true;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
public override Poison HitPoison => Utility.RandomBool() ? Poison.Deadly : Poison.Lethal;
|
||||
public override int TreasureMapLevel => 5;
|
||||
public override int Hides => 20;
|
||||
|
||||
public override void OnDamagedBySpell( Mobile attacker )
|
||||
{
|
||||
base.OnDamagedBySpell( attacker );
|
||||
|
||||
DoCounter( attacker );
|
||||
}
|
||||
|
||||
public override void OnGotMeleeAttack( Mobile attacker )
|
||||
{
|
||||
base.OnGotMeleeAttack( attacker );
|
||||
|
||||
DoCounter( attacker );
|
||||
}
|
||||
|
||||
private void DoCounter( Mobile attacker )
|
||||
{
|
||||
if ( Map == null )
|
||||
return;
|
||||
|
||||
if ( attacker is BaseCreature creature && creature.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 baseCreature )
|
||||
{
|
||||
Mobile m = baseCreature.GetMaster();
|
||||
|
||||
if ( m != null )
|
||||
target = m;
|
||||
}
|
||||
|
||||
if ( target == null || !target.InRange( this, 18 ) )
|
||||
target = attacker;
|
||||
|
||||
Animate( 10, 4, 1, true, false, 0 );
|
||||
|
||||
ArrayList targets = new ArrayList();
|
||||
|
||||
foreach ( Mobile m in target.GetMobilesInRange( 8 ) )
|
||||
{
|
||||
if ( m == this || !CanBeHarmful( m ) )
|
||||
continue;
|
||||
|
||||
if ( m is BaseCreature bc && (bc.Controlled || bc.Summoned || bc.Team != Team))
|
||||
targets.Add( m );
|
||||
else if ( m.Player && m.Alive )
|
||||
targets.Add( m );
|
||||
}
|
||||
|
||||
for ( int i = 0; i < targets.Count; ++i )
|
||||
{
|
||||
Mobile m = (Mobile)targets[i];
|
||||
|
||||
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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 1260;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 1262;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 1259; //Other Death sound is 1258... One for Yamadon, one for Serado?
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 1263;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 1261;
|
||||
}
|
||||
PackItem(new Eggs(2));
|
||||
}
|
||||
|
||||
|
||||
public Yamandon( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public Yamandon(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override string CorpseName => "a yamandon corpse";
|
||||
public override string DefaultName => "a yamandon";
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override bool ReacquireOnMovement => true;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
public override Poison HitPoison => Utility.RandomBool() ? Poison.Deadly : Poison.Lethal;
|
||||
public override int TreasureMapLevel => 5;
|
||||
public override int Hides => 20;
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.DoubleStrike;
|
||||
}
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich);
|
||||
AddLoot(LootPack.FilthyRich, 2);
|
||||
AddLoot(LootPack.Gems, 6);
|
||||
}
|
||||
|
||||
public override void OnDamagedBySpell(Mobile attacker)
|
||||
{
|
||||
base.OnDamagedBySpell(attacker);
|
||||
|
||||
DoCounter(attacker);
|
||||
}
|
||||
|
||||
public override void OnGotMeleeAttack(Mobile attacker)
|
||||
{
|
||||
base.OnGotMeleeAttack(attacker);
|
||||
|
||||
DoCounter(attacker);
|
||||
}
|
||||
|
||||
private void DoCounter(Mobile attacker)
|
||||
{
|
||||
if (Map == null)
|
||||
return;
|
||||
|
||||
if (attacker is BaseCreature creature && creature.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 baseCreature)
|
||||
{
|
||||
Mobile m = baseCreature.GetMaster();
|
||||
|
||||
if (m != null)
|
||||
target = m;
|
||||
}
|
||||
|
||||
if (target == null || !target.InRange(this, 18))
|
||||
target = attacker;
|
||||
|
||||
Animate(10, 4, 1, true, false, 0);
|
||||
|
||||
ArrayList targets = new ArrayList();
|
||||
|
||||
foreach (Mobile m in target.GetMobilesInRange(8))
|
||||
{
|
||||
if (m == this || !CanBeHarmful(m))
|
||||
continue;
|
||||
|
||||
if (m is BaseCreature bc && (bc.Controlled || bc.Summoned || bc.Team != Team))
|
||||
targets.Add(m);
|
||||
else if (m.Player && m.Alive)
|
||||
targets.Add(m);
|
||||
}
|
||||
|
||||
for (int i = 0; i < targets.Count; ++i)
|
||||
{
|
||||
Mobile m = (Mobile)targets[i];
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 1260;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 1262;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 1259; //Other Death sound is 1258... One for Yamadon, one for Serado?
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 1263;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 1261;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,136 +1,152 @@
|
|||
using System;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class YomotsuElder : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a wrinkly yomotsu corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.DoubleStrike;
|
||||
public override string DefaultName => "a yomotsu elder";
|
||||
public class YomotsuElder : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public YomotsuElder() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 255;
|
||||
BaseSoundID = 0x452;
|
||||
|
||||
[Constructible]
|
||||
public YomotsuElder() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 255;
|
||||
BaseSoundID = 0x452;
|
||||
SetStr(686, 830);
|
||||
SetDex(251, 365);
|
||||
SetInt(17, 31);
|
||||
|
||||
SetStr( 686, 830 );
|
||||
SetDex( 251, 365 );
|
||||
SetInt( 17, 31 );
|
||||
SetHits(801, 900);
|
||||
|
||||
SetHits( 801, 900 );
|
||||
SetDamage(19, 27);
|
||||
|
||||
SetDamage( 19, 27 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 65, 85);
|
||||
SetResistance(ResistanceType.Fire, 30, 50);
|
||||
SetResistance(ResistanceType.Cold, 45, 65);
|
||||
SetResistance(ResistanceType.Poison, 35, 55);
|
||||
SetResistance(ResistanceType.Energy, 25, 50);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 65, 85 );
|
||||
SetResistance( ResistanceType.Fire, 30, 50 );
|
||||
SetResistance( ResistanceType.Cold, 45, 65 );
|
||||
SetResistance( ResistanceType.Poison, 35, 55 );
|
||||
SetResistance( ResistanceType.Energy, 25, 50 );
|
||||
SetSkill(SkillName.Anatomy, 115.1, 130.0);
|
||||
SetSkill(SkillName.MagicResist, 100.1, 120.0);
|
||||
SetSkill(SkillName.Tactics, 115.1, 130.0);
|
||||
SetSkill(SkillName.Wrestling, 110.1, 130.0);
|
||||
|
||||
SetSkill( SkillName.Anatomy, 115.1, 130.0 );
|
||||
SetSkill( SkillName.MagicResist, 100.1, 120.0 );
|
||||
SetSkill( SkillName.Tactics, 115.1, 130.0 );
|
||||
SetSkill( SkillName.Wrestling, 110.1, 130.0 );
|
||||
|
||||
Fame = 12000;
|
||||
Karma = -12000;
|
||||
Fame = 12000;
|
||||
Karma = -12000;
|
||||
|
||||
|
||||
PackItem( new GreenGourd() );
|
||||
PackItem( new ExecutionersAxe() );
|
||||
PackItem(new GreenGourd());
|
||||
PackItem(new ExecutionersAxe());
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: PackItem( new LongPants() ); break;
|
||||
case 1: PackItem( new ShortPants() ); break;
|
||||
}
|
||||
switch (Utility.Random(3))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new LongPants());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new ShortPants());
|
||||
break;
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 6 ) )
|
||||
{
|
||||
case 0: PackItem( new Shoes() ); break;
|
||||
case 1: PackItem( new Sandals() ); break;
|
||||
case 2: PackItem( new Boots() ); break;
|
||||
case 3: PackItem( new ThighBoots() ); break;
|
||||
}
|
||||
switch (Utility.Random(6))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new Shoes());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new Sandals());
|
||||
break;
|
||||
case 2:
|
||||
PackItem(new Boots());
|
||||
break;
|
||||
case 3:
|
||||
PackItem(new ThighBoots());
|
||||
break;
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < .25 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
}
|
||||
if (Utility.RandomDouble() < .25)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
}
|
||||
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
public YomotsuElder(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int Meat => 1;
|
||||
public override string CorpseName => "a wrinkly yomotsu corpse";
|
||||
public override string DefaultName => "a yomotsu elder";
|
||||
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
|
||||
public override int Meat => 1;
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 5;
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.DoubleStrike;
|
||||
}
|
||||
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich, 3);
|
||||
AddLoot(LootPack.Gems, 2);
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich, 3 );
|
||||
AddLoot( LootPack.Gems, 2 );
|
||||
}
|
||||
// TODO: Axe Throw
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 5;
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
// TODO: Axe Throw
|
||||
if (0.1 > Utility.RandomDouble())
|
||||
{
|
||||
/* Maniacal laugh
|
||||
* Cliloc: 1070840
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Paralyzes for 4 seconds, or until hit
|
||||
*/
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
defender.SendLocalizedMessage(1070840); // You are frozen as the creature laughs maniacally.
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Maniacal laugh
|
||||
* Cliloc: 1070840
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Paralyzes for 4 seconds, or until hit
|
||||
*/
|
||||
defender.Paralyze(TimeSpan.FromSeconds(4.0));
|
||||
}
|
||||
}
|
||||
|
||||
defender.FixedEffect( 0x37B9, 10, 5 );
|
||||
defender.SendLocalizedMessage( 1070840 ); // You are frozen as the creature laughs maniacally.
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
defender.Paralyze( TimeSpan.FromSeconds( 4.0 ) );
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public YomotsuElder( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x42A;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x435;
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x436;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x42A;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x435;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x436;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x43A;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x43A;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,137 +1,153 @@
|
|||
using System;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class YomotsuPriest : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a glowing yomotsu corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.DoubleStrike;
|
||||
public override string DefaultName => "a yomotsu priest";
|
||||
public class YomotsuPriest : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public YomotsuPriest() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 253;
|
||||
BaseSoundID = 0x452;
|
||||
|
||||
[Constructible]
|
||||
public YomotsuPriest() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 253;
|
||||
BaseSoundID = 0x452;
|
||||
SetStr(486, 530);
|
||||
SetDex(101, 115);
|
||||
SetInt(601, 670);
|
||||
|
||||
SetStr( 486, 530 );
|
||||
SetDex( 101, 115 );
|
||||
SetInt( 601, 670 );
|
||||
SetHits(486, 530);
|
||||
|
||||
SetHits( 486, 530 );
|
||||
SetDamage(8, 10);
|
||||
|
||||
SetDamage( 8, 10 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 65, 85);
|
||||
SetResistance(ResistanceType.Fire, 30, 50);
|
||||
SetResistance(ResistanceType.Cold, 45, 65);
|
||||
SetResistance(ResistanceType.Poison, 35, 55);
|
||||
SetResistance(ResistanceType.Energy, 25, 50);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 65, 85 );
|
||||
SetResistance( ResistanceType.Fire, 30, 50 );
|
||||
SetResistance( ResistanceType.Cold, 45, 65 );
|
||||
SetResistance( ResistanceType.Poison, 35, 55 );
|
||||
SetResistance( ResistanceType.Energy, 25, 50 );
|
||||
SetSkill(SkillName.EvalInt, 92.6, 107.5);
|
||||
SetSkill(SkillName.Magery, 105.1, 115.0);
|
||||
SetSkill(SkillName.Meditation, 100.1, 110.0);
|
||||
SetSkill(SkillName.MagicResist, 112.6, 122.5);
|
||||
SetSkill(SkillName.Tactics, 55.1, 105.0);
|
||||
SetSkill(SkillName.Wrestling, 47.6, 57.5);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 92.6, 107.5 );
|
||||
SetSkill( SkillName.Magery, 105.1, 115.0 );
|
||||
SetSkill( SkillName.Meditation, 100.1, 110.0 );
|
||||
SetSkill( SkillName.MagicResist, 112.6, 122.5 );
|
||||
SetSkill( SkillName.Tactics, 55.1, 105.0 );
|
||||
SetSkill( SkillName.Wrestling, 47.6, 57.5 );
|
||||
|
||||
Fame = 9000;
|
||||
Karma = -9000;
|
||||
Fame = 9000;
|
||||
Karma = -9000;
|
||||
|
||||
|
||||
PackItem( new GreenGourd() );
|
||||
PackItem( new ExecutionersAxe() );
|
||||
PackItem(new GreenGourd());
|
||||
PackItem(new ExecutionersAxe());
|
||||
|
||||
switch ( Utility.Random( 3 ) )
|
||||
{
|
||||
case 0: PackItem( new LongPants() ); break;
|
||||
case 1: PackItem( new ShortPants() ); break;
|
||||
}
|
||||
switch (Utility.Random(3))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new LongPants());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new ShortPants());
|
||||
break;
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 6 ) )
|
||||
{
|
||||
case 0: PackItem( new Shoes() ); break;
|
||||
case 1: PackItem( new Sandals() ); break;
|
||||
case 2: PackItem( new Boots() ); break;
|
||||
case 3: PackItem( new ThighBoots() ); break;
|
||||
}
|
||||
switch (Utility.Random(6))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new Shoes());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new Sandals());
|
||||
break;
|
||||
case 2:
|
||||
PackItem(new Boots());
|
||||
break;
|
||||
case 3:
|
||||
PackItem(new ThighBoots());
|
||||
break;
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < .25 ) PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
}
|
||||
if (Utility.RandomDouble() < .25) PackItem(Seed.RandomBonsaiSeed());
|
||||
}
|
||||
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
public YomotsuPriest(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int Meat => 1;
|
||||
public override string CorpseName => "a glowing yomotsu corpse";
|
||||
public override string DefaultName => "a yomotsu priest";
|
||||
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
|
||||
public override int Meat => 1;
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.DoubleStrike;
|
||||
}
|
||||
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems, 4);
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich );
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Gems, 4);
|
||||
}
|
||||
// TODO: Body Transformation
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
// TODO: Body Transformation
|
||||
if (0.1 > Utility.RandomDouble())
|
||||
{
|
||||
/* Maniacal laugh
|
||||
* Cliloc: 1070840
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Paralyzes for 4 seconds, or until hit
|
||||
*/
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
defender.SendLocalizedMessage(1070840); // You are frozen as the creature laughs maniacally.
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Maniacal laugh
|
||||
* Cliloc: 1070840
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Paralyzes for 4 seconds, or until hit
|
||||
*/
|
||||
defender.Paralyze(TimeSpan.FromSeconds(4.0));
|
||||
}
|
||||
}
|
||||
|
||||
defender.FixedEffect( 0x37B9, 10, 5 );
|
||||
defender.SendLocalizedMessage( 1070840 ); // You are frozen as the creature laughs maniacally.
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
defender.Paralyze( TimeSpan.FromSeconds( 4.0 ) );
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public YomotsuPriest( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x42A;
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x435;
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x436;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x42A;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x435;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x436;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x43A;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x43A;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,134 +1,146 @@
|
|||
using System;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class YomotsuWarrior : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a yomotsu corpse";
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.DoubleStrike;
|
||||
public override string DefaultName => "a yomotsu warrior";
|
||||
public class YomotsuWarrior : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public YomotsuWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 245;
|
||||
BaseSoundID = 0x452;
|
||||
|
||||
[Constructible]
|
||||
public YomotsuWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 245;
|
||||
BaseSoundID = 0x452;
|
||||
SetStr(486, 530);
|
||||
SetDex(151, 165);
|
||||
SetInt(17, 31);
|
||||
|
||||
SetStr( 486, 530 );
|
||||
SetDex( 151, 165 );
|
||||
SetInt( 17, 31 );
|
||||
SetHits(486, 530);
|
||||
SetMana(17, 31);
|
||||
|
||||
SetHits( 486, 530 );
|
||||
SetMana( 17, 31 );
|
||||
SetDamage(8, 10);
|
||||
|
||||
SetDamage( 8, 10 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 65, 85);
|
||||
SetResistance(ResistanceType.Fire, 30, 50);
|
||||
SetResistance(ResistanceType.Cold, 45, 65);
|
||||
SetResistance(ResistanceType.Poison, 35, 55);
|
||||
SetResistance(ResistanceType.Energy, 25, 50);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 65, 85 );
|
||||
SetResistance( ResistanceType.Fire, 30, 50 );
|
||||
SetResistance( ResistanceType.Cold, 45, 65 );
|
||||
SetResistance( ResistanceType.Poison, 35, 55 );
|
||||
SetResistance( ResistanceType.Energy, 25, 50 );
|
||||
SetSkill(SkillName.Anatomy, 85.1, 95.0);
|
||||
SetSkill(SkillName.MagicResist, 82.6, 90.5);
|
||||
SetSkill(SkillName.Tactics, 95.1, 105.0);
|
||||
SetSkill(SkillName.Wrestling, 97.6, 107.5);
|
||||
|
||||
SetSkill( SkillName.Anatomy, 85.1, 95.0 );
|
||||
SetSkill( SkillName.MagicResist, 82.6, 90.5 );
|
||||
SetSkill( SkillName.Tactics, 95.1, 105.0 );
|
||||
SetSkill( SkillName.Wrestling, 97.6, 107.5 );
|
||||
Fame = 4200;
|
||||
Karma = -4200;
|
||||
|
||||
Fame = 4200;
|
||||
Karma = -4200;
|
||||
PackItem(new GreenGourd());
|
||||
PackItem(new ExecutionersAxe());
|
||||
|
||||
PackItem( new GreenGourd() );
|
||||
PackItem( new ExecutionersAxe() );
|
||||
if (Utility.RandomBool())
|
||||
PackItem(new LongPants());
|
||||
else
|
||||
PackItem(new ShortPants());
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
PackItem( new LongPants() );
|
||||
else
|
||||
PackItem( new ShortPants() );
|
||||
switch (Utility.Random(4))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new Shoes());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new Sandals());
|
||||
break;
|
||||
case 2:
|
||||
PackItem(new Boots());
|
||||
break;
|
||||
case 3:
|
||||
PackItem(new ThighBoots());
|
||||
break;
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 4 ) )
|
||||
{
|
||||
case 0: PackItem( new Shoes() ); break;
|
||||
case 1: PackItem( new Sandals() ); break;
|
||||
case 2: PackItem( new Boots() ); break;
|
||||
case 3: PackItem( new ThighBoots() ); break;
|
||||
}
|
||||
if (Utility.RandomDouble() < .25)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < .25 )
|
||||
PackItem( Engines.Plants.Seed.RandomBonsaiSeed() );
|
||||
public YomotsuWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
public override string CorpseName => "a yomotsu corpse";
|
||||
public override string DefaultName => "a yomotsu warrior";
|
||||
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
public override FoodType FavoriteFood => FoodType.Fish;
|
||||
|
||||
public override int Meat => 1;
|
||||
public override int Meat => 1;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich, 2 );
|
||||
AddLoot( LootPack.Gems,2);
|
||||
}
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 3;
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 3;
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.DoubleStrike;
|
||||
}
|
||||
|
||||
// TODO: Throwing Dagger
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich, 2);
|
||||
AddLoot(LootPack.Gems, 2);
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
// TODO: Throwing Dagger
|
||||
|
||||
if ( 0.1 > Utility.RandomDouble() )
|
||||
{
|
||||
/* Maniacal laugh
|
||||
* Cliloc: 1070840
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Paralyzes for 4 seconds, or until hit
|
||||
*/
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
defender.FixedEffect( 0x37B9, 10, 5 );
|
||||
defender.SendLocalizedMessage( 1070840 ); // You are frozen as the creature laughs maniacally.
|
||||
if (0.1 > Utility.RandomDouble())
|
||||
{
|
||||
/* Maniacal laugh
|
||||
* Cliloc: 1070840
|
||||
* Effect: Type: "3" From: "0x57D4F5B" To: "0x0" ItemId: "0x37B9" ItemIdName: "glow" FromLocation: "(884 715, 10)" ToLocation: "(884 715, 10)" Speed: "10" Duration: "5" FixedDirection: "True" Explode: "False"
|
||||
* Paralyzes for 4 seconds, or until hit
|
||||
*/
|
||||
|
||||
defender.Paralyze( TimeSpan.FromSeconds( 4.0 ) );
|
||||
}
|
||||
}
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
defender.SendLocalizedMessage(1070840); // You are frozen as the creature laughs maniacally.
|
||||
|
||||
public YomotsuWarrior( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
defender.Paralyze(TimeSpan.FromSeconds(4.0));
|
||||
}
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
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();
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x42A;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x42A;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x435;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x435;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x436;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x436;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x43A;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x43A;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue