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,111 +1,121 @@
|
|||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class AntLion : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "an ant lion corpse";
|
||||
public override string DefaultName => "an ant lion";
|
||||
public class AntLion : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public AntLion() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 787;
|
||||
BaseSoundID = 1006;
|
||||
|
||||
[Constructible]
|
||||
public AntLion() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 787;
|
||||
BaseSoundID = 1006;
|
||||
SetStr(296, 320);
|
||||
SetDex(81, 105);
|
||||
SetInt(36, 60);
|
||||
|
||||
SetStr( 296, 320 );
|
||||
SetDex( 81, 105 );
|
||||
SetInt( 36, 60 );
|
||||
SetHits(151, 162);
|
||||
|
||||
SetHits( 151, 162 );
|
||||
SetDamage(7, 21);
|
||||
|
||||
SetDamage( 7, 21 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Poison, 30);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Poison, 30 );
|
||||
SetResistance(ResistanceType.Physical, 45, 60);
|
||||
SetResistance(ResistanceType.Fire, 25, 35);
|
||||
SetResistance(ResistanceType.Cold, 30, 40);
|
||||
SetResistance(ResistanceType.Poison, 40, 50);
|
||||
SetResistance(ResistanceType.Energy, 30, 35);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 45, 60 );
|
||||
SetResistance( ResistanceType.Fire, 25, 35 );
|
||||
SetResistance( ResistanceType.Cold, 30, 40 );
|
||||
SetResistance( ResistanceType.Poison, 40, 50 );
|
||||
SetResistance( ResistanceType.Energy, 30, 35 );
|
||||
SetSkill(SkillName.MagicResist, 70.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 70.0 );
|
||||
SetSkill( SkillName.Tactics, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.0 );
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
VirtualArmor = 45;
|
||||
|
||||
VirtualArmor = 45;
|
||||
PackItem(new Bone(3));
|
||||
PackItem(new FertileDirt(Utility.RandomMinMax(1, 5)));
|
||||
|
||||
PackItem( new Bone( 3 ) );
|
||||
PackItem( new FertileDirt( Utility.RandomMinMax( 1, 5 ) ) );
|
||||
if (Core.ML && Utility.RandomDouble() < .33)
|
||||
PackItem(Seed.RandomPeculiarSeed(2));
|
||||
|
||||
if ( Core.ML && Utility.RandomDouble() < .33 )
|
||||
PackItem( Engines.Plants.Seed.RandomPeculiarSeed(2) );
|
||||
Item orepile = null; /* no trust, no love :( */
|
||||
|
||||
Item orepile = null; /* no trust, no love :( */
|
||||
switch (Utility.Random(4))
|
||||
{
|
||||
case 0:
|
||||
orepile = new DullCopperOre();
|
||||
break;
|
||||
case 1:
|
||||
orepile = new ShadowIronOre();
|
||||
break;
|
||||
case 2:
|
||||
orepile = new CopperOre();
|
||||
break;
|
||||
default:
|
||||
orepile = new BronzeOre();
|
||||
break;
|
||||
}
|
||||
|
||||
switch (Utility.Random(4))
|
||||
{
|
||||
case 0: orepile = new DullCopperOre(); break;
|
||||
case 1: orepile = new ShadowIronOre(); break;
|
||||
case 2: orepile = new CopperOre(); break;
|
||||
default: orepile = new BronzeOre(); break;
|
||||
}
|
||||
orepile.Amount = Utility.RandomMinMax(1, 10);
|
||||
orepile.ItemID = 0x19B9;
|
||||
PackItem(orepile);
|
||||
orepile.Amount = Utility.RandomMinMax(1, 10);
|
||||
orepile.ItemID = 0x19B9;
|
||||
PackItem(orepile);
|
||||
|
||||
// TODO: skeleton
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x5A;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x5A;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x164;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x187;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x1BA;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Average, 2 );
|
||||
}
|
||||
// TODO: skeleton
|
||||
}
|
||||
|
||||
|
||||
public AntLion( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public AntLion(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override string CorpseName => "an ant lion corpse";
|
||||
public override string DefaultName => "an ant lion";
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x5A;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x5A;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x164;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x187;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x1BA;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average, 2);
|
||||
}
|
||||
|
||||
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,107 +2,107 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class BlackSolenInfiltratorQueen : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a black solen infiltrator";
|
||||
public class BlackSolenInfiltratorQueen : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public BlackSolenInfiltratorQueen() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 807;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
|
||||
[Constructible]
|
||||
public BlackSolenInfiltratorQueen() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 807;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
SetStr(326, 350);
|
||||
SetDex(141, 165);
|
||||
SetInt(96, 120);
|
||||
|
||||
SetStr( 326, 350 );
|
||||
SetDex( 141, 165 );
|
||||
SetInt( 96, 120 );
|
||||
SetHits(151, 162);
|
||||
|
||||
SetHits( 151, 162 );
|
||||
SetDamage(10, 15);
|
||||
|
||||
SetDamage( 10, 15 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Poison, 30);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Poison, 30 );
|
||||
SetResistance(ResistanceType.Physical, 30, 40);
|
||||
SetResistance(ResistanceType.Fire, 30, 35);
|
||||
SetResistance(ResistanceType.Cold, 25, 35);
|
||||
SetResistance(ResistanceType.Poison, 35, 40);
|
||||
SetResistance(ResistanceType.Energy, 25, 30);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 30, 40 );
|
||||
SetResistance( ResistanceType.Fire, 30, 35 );
|
||||
SetResistance( ResistanceType.Cold, 25, 35 );
|
||||
SetResistance( ResistanceType.Poison, 35, 40 );
|
||||
SetResistance( ResistanceType.Energy, 25, 30 );
|
||||
SetSkill(SkillName.MagicResist, 90.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 90.0 );
|
||||
SetSkill( SkillName.Tactics, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.0 );
|
||||
Fame = 6500;
|
||||
Karma = -6500;
|
||||
|
||||
Fame = 6500;
|
||||
Karma = -6500;
|
||||
VirtualArmor = 50;
|
||||
|
||||
VirtualArmor = 50;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
PackItem(new ZoogiFungus(0.05 > Utility.RandomDouble() ? 16 : 4));
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus( ( 0.05 > Utility.RandomDouble() ) ? 16 : 4 ) );
|
||||
}
|
||||
public BlackSolenInfiltratorQueen(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a black solen infiltrator";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckBlackFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnBlackDamage( from );
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
public BlackSolenInfiltratorQueen( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,108 +2,108 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class BlackSolenInfiltratorWarrior : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a black solen infiltrator";
|
||||
public class BlackSolenInfiltratorWarrior : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public BlackSolenInfiltratorWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 806;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
|
||||
[Constructible]
|
||||
public BlackSolenInfiltratorWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 806;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
SetStr(206, 230);
|
||||
SetDex(121, 145);
|
||||
SetInt(66, 90);
|
||||
|
||||
SetStr( 206, 230 );
|
||||
SetDex( 121, 145 );
|
||||
SetInt( 66, 90 );
|
||||
SetHits(96, 107);
|
||||
|
||||
SetHits( 96, 107 );
|
||||
SetDamage(5, 15);
|
||||
|
||||
SetDamage( 5, 15 );
|
||||
SetDamageType(ResistanceType.Physical, 80);
|
||||
SetDamageType(ResistanceType.Poison, 20);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 80 );
|
||||
SetDamageType( ResistanceType.Poison, 20 );
|
||||
SetResistance(ResistanceType.Physical, 20, 35);
|
||||
SetResistance(ResistanceType.Fire, 20, 35);
|
||||
SetResistance(ResistanceType.Cold, 10, 25);
|
||||
SetResistance(ResistanceType.Poison, 20, 35);
|
||||
SetResistance(ResistanceType.Energy, 10, 25);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 20, 35 );
|
||||
SetResistance( ResistanceType.Fire, 20, 35 );
|
||||
SetResistance( ResistanceType.Cold, 10, 25 );
|
||||
SetResistance( ResistanceType.Poison, 20, 35 );
|
||||
SetResistance( ResistanceType.Energy, 10, 25 );
|
||||
SetSkill(SkillName.MagicResist, 80.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 80.0 );
|
||||
SetSkill( SkillName.Tactics, 80.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.0 );
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
VirtualArmor = 40;
|
||||
|
||||
VirtualArmor = 40;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
PackItem(new ZoogiFungus(0.05 > Utility.RandomDouble() ? 13 : 3));
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus( ( 0.05 > Utility.RandomDouble() )? 13 : 3 ) );
|
||||
}
|
||||
public BlackSolenInfiltratorWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a black solen infiltrator";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Average, 2 );
|
||||
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 4 ) );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckBlackFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average, 2);
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 4));
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnBlackDamage( from );
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
public BlackSolenInfiltratorWarrior( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,145 +3,145 @@ using Server.Network;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class BlackSolenQueen : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen queen corpse";
|
||||
public bool BurstSac { get; private set; }
|
||||
public class BlackSolenQueen : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public BlackSolenQueen() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 807;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
|
||||
public override string DefaultName => "a black solen queen";
|
||||
SetStr(296, 320);
|
||||
SetDex(121, 145);
|
||||
SetInt(76, 100);
|
||||
|
||||
[Constructible]
|
||||
public BlackSolenQueen() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 807;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
SetHits(151, 162);
|
||||
|
||||
SetStr( 296, 320 );
|
||||
SetDex( 121, 145 );
|
||||
SetInt( 76, 100 );
|
||||
SetDamage(10, 15);
|
||||
|
||||
SetHits( 151, 162 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Poison, 30);
|
||||
|
||||
SetDamage( 10, 15 );
|
||||
SetResistance(ResistanceType.Physical, 30, 40);
|
||||
SetResistance(ResistanceType.Fire, 30, 35);
|
||||
SetResistance(ResistanceType.Cold, 25, 35);
|
||||
SetResistance(ResistanceType.Poison, 35, 40);
|
||||
SetResistance(ResistanceType.Energy, 25, 30);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Poison, 30 );
|
||||
SetSkill(SkillName.MagicResist, 70.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 30, 40 );
|
||||
SetResistance( ResistanceType.Fire, 30, 35 );
|
||||
SetResistance( ResistanceType.Cold, 25, 35 );
|
||||
SetResistance( ResistanceType.Poison, 35, 40 );
|
||||
SetResistance( ResistanceType.Energy, 25, 30 );
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
|
||||
SetSkill( SkillName.MagicResist, 70.0 );
|
||||
SetSkill( SkillName.Tactics, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.0 );
|
||||
VirtualArmor = 45;
|
||||
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
VirtualArmor = 45;
|
||||
PackItem(new ZoogiFungus(Utility.RandomDouble() > 0.05 ? 5 : 25));
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BallOfSummoning());
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus( ( Utility.RandomDouble() > 0.05 )? 5 : 25 ) );
|
||||
public BlackSolenQueen(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
PackItem( new BallOfSummoning() );
|
||||
}
|
||||
public override string CorpseName => "a solen queen corpse";
|
||||
public bool BurstSac{ get; private set; }
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override string DefaultName => "a black solen queen";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckBlackFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnBlackDamage( from );
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
if ( !willKill )
|
||||
{
|
||||
if ( !BurstSac )
|
||||
{
|
||||
if ( Hits < 50 )
|
||||
{
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *" );
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if ( from != null && from != this && InRange( from, 1 ) )
|
||||
{
|
||||
SpillAcid( from, 1 );
|
||||
}
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
if (!willKill)
|
||||
{
|
||||
if (!BurstSac)
|
||||
{
|
||||
if (Hits < 50)
|
||||
{
|
||||
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *");
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if (from != null && from != this && InRange(from, 1))
|
||||
{
|
||||
SpillAcid(from, 1);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid( 4 );
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
public BlackSolenQueen( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 1 );
|
||||
writer.Write( BurstSac );
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(1);
|
||||
writer.Write(BurstSac);
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
switch( version )
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,146 +3,146 @@ using Server.Network;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class BlackSolenWarrior : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen warrior corpse";
|
||||
public bool BurstSac { get; private set; }
|
||||
public class BlackSolenWarrior : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public BlackSolenWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 806;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
|
||||
public override string DefaultName => "a black solen warrior";
|
||||
SetStr(196, 220);
|
||||
SetDex(101, 125);
|
||||
SetInt(36, 60);
|
||||
|
||||
[Constructible]
|
||||
public BlackSolenWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 806;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
SetHits(96, 107);
|
||||
|
||||
SetStr( 196, 220 );
|
||||
SetDex( 101, 125 );
|
||||
SetInt( 36, 60 );
|
||||
SetDamage(5, 15);
|
||||
|
||||
SetHits( 96, 107 );
|
||||
SetDamageType(ResistanceType.Physical, 80);
|
||||
SetDamageType(ResistanceType.Poison, 20);
|
||||
|
||||
SetDamage( 5, 15 );
|
||||
SetResistance(ResistanceType.Physical, 20, 35);
|
||||
SetResistance(ResistanceType.Fire, 20, 35);
|
||||
SetResistance(ResistanceType.Cold, 10, 25);
|
||||
SetResistance(ResistanceType.Poison, 20, 35);
|
||||
SetResistance(ResistanceType.Energy, 10, 25);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 80 );
|
||||
SetDamageType( ResistanceType.Poison, 20 );
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 20, 35 );
|
||||
SetResistance( ResistanceType.Fire, 20, 35 );
|
||||
SetResistance( ResistanceType.Cold, 10, 25 );
|
||||
SetResistance( ResistanceType.Poison, 20, 35 );
|
||||
SetResistance( ResistanceType.Energy, 10, 25 );
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
SetSkill( SkillName.MagicResist, 60.0 );
|
||||
SetSkill( SkillName.Tactics, 80.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.0 );
|
||||
VirtualArmor = 35;
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
VirtualArmor = 35;
|
||||
PackItem(new ZoogiFungus(0.05 > Utility.RandomDouble() ? 13 : 3));
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BraceletOfBinding());
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus( ( 0.05 > Utility.RandomDouble() )? 13 : 3 ) );
|
||||
public BlackSolenWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
PackItem( new BraceletOfBinding() );
|
||||
}
|
||||
public override string CorpseName => "a solen warrior corpse";
|
||||
public bool BurstSac{ get; private set; }
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override string DefaultName => "a black solen warrior";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 4 ) );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckBlackFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 4));
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnBlackDamage( from );
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
if ( !willKill )
|
||||
{
|
||||
if ( !BurstSac )
|
||||
{
|
||||
if ( Hits < 50 )
|
||||
{
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *" );
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if ( from != null && from != this && InRange( from, 1 ) )
|
||||
{
|
||||
SpillAcid( from, 1 );
|
||||
}
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
if (!willKill)
|
||||
{
|
||||
if (!BurstSac)
|
||||
{
|
||||
if (Hits < 50)
|
||||
{
|
||||
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *");
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if (from != null && from != this && InRange(from, 1))
|
||||
{
|
||||
SpillAcid(from, 1);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid( 4 );
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
public BlackSolenWarrior( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 1 );
|
||||
writer.Write( BurstSac );
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(1);
|
||||
writer.Write(BurstSac);
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
switch( version )
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,108 +2,108 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class BlackSolenWorker : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen worker corpse";
|
||||
public override string DefaultName => "a black solen worker";
|
||||
public class BlackSolenWorker : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public BlackSolenWorker() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 805;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
|
||||
[Constructible]
|
||||
public BlackSolenWorker() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 805;
|
||||
BaseSoundID = 959;
|
||||
Hue = 0x453;
|
||||
SetStr(96, 120);
|
||||
SetDex(81, 105);
|
||||
SetInt(36, 60);
|
||||
|
||||
SetStr( 96, 120 );
|
||||
SetDex( 81, 105 );
|
||||
SetInt( 36, 60 );
|
||||
SetHits(58, 72);
|
||||
|
||||
SetHits( 58, 72 );
|
||||
SetDamage(5, 7);
|
||||
|
||||
SetDamage( 5, 7 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 25, 30);
|
||||
SetResistance(ResistanceType.Fire, 20, 30);
|
||||
SetResistance(ResistanceType.Cold, 10, 20);
|
||||
SetResistance(ResistanceType.Poison, 10, 20);
|
||||
SetResistance(ResistanceType.Energy, 20, 30);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 25, 30 );
|
||||
SetResistance( ResistanceType.Fire, 20, 30 );
|
||||
SetResistance( ResistanceType.Cold, 10, 20 );
|
||||
SetResistance( ResistanceType.Poison, 10, 20 );
|
||||
SetResistance( ResistanceType.Energy, 20, 30 );
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 65.0);
|
||||
SetSkill(SkillName.Wrestling, 60.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 60.0 );
|
||||
SetSkill( SkillName.Tactics, 65.0 );
|
||||
SetSkill( SkillName.Wrestling, 60.0 );
|
||||
Fame = 1500;
|
||||
Karma = -1500;
|
||||
|
||||
Fame = 1500;
|
||||
Karma = -1500;
|
||||
VirtualArmor = 28;
|
||||
|
||||
VirtualArmor = 28;
|
||||
PackGold(Utility.Random(100, 180));
|
||||
|
||||
PackGold( Utility.Random( 100, 180 ) );
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
PackItem(new ZoogiFungus());
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus() );
|
||||
}
|
||||
public BlackSolenWorker(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
public override string CorpseName => "a solen worker corpse";
|
||||
public override string DefaultName => "a black solen worker";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x186;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1BE;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x186;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x8E;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1BE;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 2 ) );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x8E;
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckBlackFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 2));
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnBlackDamage( from );
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
public BlackSolenWorker( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,106 +2,106 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenInfiltratorQueen : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a red solen infiltrator";
|
||||
public class RedSolenInfiltratorQueen : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RedSolenInfiltratorQueen() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 783;
|
||||
BaseSoundID = 959;
|
||||
|
||||
[Constructible]
|
||||
public RedSolenInfiltratorQueen() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 783;
|
||||
BaseSoundID = 959;
|
||||
SetStr(326, 350);
|
||||
SetDex(141, 165);
|
||||
SetInt(96, 120);
|
||||
|
||||
SetStr( 326, 350 );
|
||||
SetDex( 141, 165 );
|
||||
SetInt( 96, 120 );
|
||||
SetHits(151, 162);
|
||||
|
||||
SetHits( 151, 162 );
|
||||
SetDamage(10, 15);
|
||||
|
||||
SetDamage( 10, 15 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Poison, 30);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Poison, 30 );
|
||||
SetResistance(ResistanceType.Physical, 30, 40);
|
||||
SetResistance(ResistanceType.Fire, 30, 35);
|
||||
SetResistance(ResistanceType.Cold, 25, 35);
|
||||
SetResistance(ResistanceType.Poison, 35, 40);
|
||||
SetResistance(ResistanceType.Energy, 25, 30);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 30, 40 );
|
||||
SetResistance( ResistanceType.Fire, 30, 35 );
|
||||
SetResistance( ResistanceType.Cold, 25, 35 );
|
||||
SetResistance( ResistanceType.Poison, 35, 40 );
|
||||
SetResistance( ResistanceType.Energy, 25, 30 );
|
||||
SetSkill(SkillName.MagicResist, 90.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 90.0 );
|
||||
SetSkill( SkillName.Tactics, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.0 );
|
||||
Fame = 6500;
|
||||
Karma = -6500;
|
||||
|
||||
Fame = 6500;
|
||||
Karma = -6500;
|
||||
VirtualArmor = 50;
|
||||
|
||||
VirtualArmor = 50;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
PackItem(new ZoogiFungus(0.05 < Utility.RandomDouble() ? 4 : 16));
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus( ( 0.05 < Utility.RandomDouble() )? 4 : 16 ) );
|
||||
}
|
||||
public RedSolenInfiltratorQueen(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a red solen infiltrator";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckRedFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnRedDamage( from );
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckRedFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnRedDamage(from);
|
||||
|
||||
public RedSolenInfiltratorQueen( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,108 +2,107 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenInfiltratorWarrior : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a red solen infiltrator";
|
||||
public class RedSolenInfiltratorWarrior : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RedSolenInfiltratorWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 782;
|
||||
BaseSoundID = 959;
|
||||
|
||||
[Constructible]
|
||||
public RedSolenInfiltratorWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 782;
|
||||
BaseSoundID = 959;
|
||||
SetStr(206, 230);
|
||||
SetDex(121, 145);
|
||||
SetInt(66, 90);
|
||||
|
||||
SetStr( 206, 230 );
|
||||
SetDex( 121, 145 );
|
||||
SetInt( 66, 90 );
|
||||
SetHits(96, 107);
|
||||
|
||||
SetHits( 96, 107 );
|
||||
SetDamage(5, 15);
|
||||
|
||||
SetDamage( 5, 15 );
|
||||
SetDamageType(ResistanceType.Physical, 80);
|
||||
SetDamageType(ResistanceType.Poison, 20);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 80 );
|
||||
SetDamageType( ResistanceType.Poison, 20 );
|
||||
SetResistance(ResistanceType.Physical, 20, 35);
|
||||
SetResistance(ResistanceType.Fire, 20, 35);
|
||||
SetResistance(ResistanceType.Cold, 10, 25);
|
||||
SetResistance(ResistanceType.Poison, 20, 35);
|
||||
SetResistance(ResistanceType.Energy, 10, 25);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 20, 35 );
|
||||
SetResistance( ResistanceType.Fire, 20, 35 );
|
||||
SetResistance( ResistanceType.Cold, 10, 25 );
|
||||
SetResistance( ResistanceType.Poison, 20, 35 );
|
||||
SetResistance( ResistanceType.Energy, 10, 25 );
|
||||
SetSkill(SkillName.MagicResist, 80.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 80.0 );
|
||||
SetSkill( SkillName.Tactics, 80.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.0 );
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
VirtualArmor = 40;
|
||||
|
||||
VirtualArmor = 40;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
PackItem(new ZoogiFungus(0.05 < Utility.RandomDouble() ? 3 : 13));
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus( ( 0.05 < Utility.RandomDouble() )? 3 : 13 ) );
|
||||
public RedSolenInfiltratorWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a red solen infiltrator";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Average, 2 );
|
||||
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 4 ) );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average, 2);
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 4));
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckRedFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckRedFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnRedDamage( from );
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnRedDamage(from);
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public RedSolenInfiltratorWarrior( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,145 +3,145 @@ using Server.Network;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenQueen : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen queen corpse";
|
||||
public bool BurstSac { get; private set; }
|
||||
public class RedSolenQueen : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RedSolenQueen() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 783;
|
||||
BaseSoundID = 959;
|
||||
|
||||
public override string DefaultName => "a red solen queen";
|
||||
SetStr(296, 320);
|
||||
SetDex(121, 145);
|
||||
SetInt(76, 100);
|
||||
|
||||
[Constructible]
|
||||
public RedSolenQueen() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 783;
|
||||
BaseSoundID = 959;
|
||||
SetHits(151, 162);
|
||||
|
||||
SetStr( 296, 320 );
|
||||
SetDex( 121, 145 );
|
||||
SetInt( 76, 100 );
|
||||
SetDamage(10, 15);
|
||||
|
||||
SetHits( 151, 162 );
|
||||
SetDamageType(ResistanceType.Physical, 70);
|
||||
SetDamageType(ResistanceType.Poison, 30);
|
||||
|
||||
SetDamage( 10, 15 );
|
||||
SetResistance(ResistanceType.Physical, 30, 40);
|
||||
SetResistance(ResistanceType.Fire, 30, 35);
|
||||
SetResistance(ResistanceType.Cold, 25, 35);
|
||||
SetResistance(ResistanceType.Poison, 35, 40);
|
||||
SetResistance(ResistanceType.Energy, 25, 30);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 70 );
|
||||
SetDamageType( ResistanceType.Poison, 30 );
|
||||
SetSkill(SkillName.MagicResist, 70.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 30, 40 );
|
||||
SetResistance( ResistanceType.Fire, 30, 35 );
|
||||
SetResistance( ResistanceType.Cold, 25, 35 );
|
||||
SetResistance( ResistanceType.Poison, 35, 40 );
|
||||
SetResistance( ResistanceType.Energy, 25, 30 );
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
|
||||
SetSkill( SkillName.MagicResist, 70.0 );
|
||||
SetSkill( SkillName.Tactics, 90.0 );
|
||||
SetSkill( SkillName.Wrestling, 90.0 );
|
||||
VirtualArmor = 45;
|
||||
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
VirtualArmor = 45;
|
||||
PackItem(new ZoogiFungus(Utility.RandomDouble() > 0.05 ? 5 : 25));
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BallOfSummoning());
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus( ( Utility.RandomDouble() > 0.05 )? 5 : 25 ) );
|
||||
public RedSolenQueen(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
PackItem( new BallOfSummoning() );
|
||||
}
|
||||
public override string CorpseName => "a solen queen corpse";
|
||||
public bool BurstSac{ get; private set; }
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override string DefaultName => "a red solen queen";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckRedFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckRedFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnRedDamage( from );
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnRedDamage(from);
|
||||
|
||||
if ( !willKill )
|
||||
{
|
||||
if ( !BurstSac )
|
||||
{
|
||||
if ( Hits < 50 )
|
||||
{
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *" );
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if ( from != null && from != this && InRange( from, 1 ) )
|
||||
{
|
||||
SpillAcid( from, 1 );
|
||||
}
|
||||
}
|
||||
if (!willKill)
|
||||
{
|
||||
if (!BurstSac)
|
||||
{
|
||||
if (Hits < 50)
|
||||
{
|
||||
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *");
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if (from != null && from != this && InRange(from, 1))
|
||||
{
|
||||
SpillAcid(from, 1);
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid( 4 );
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
public RedSolenQueen( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(1);
|
||||
writer.Write(BurstSac);
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 1 );
|
||||
writer.Write( BurstSac );
|
||||
}
|
||||
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();
|
||||
|
||||
switch( version )
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,145 +3,144 @@ using Server.Network;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenWarrior : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen warrior corpse";
|
||||
public bool BurstSac { get; private set; }
|
||||
public class RedSolenWarrior : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RedSolenWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 782;
|
||||
BaseSoundID = 959;
|
||||
|
||||
public override string DefaultName => "a red solen warrior";
|
||||
SetStr(196, 220);
|
||||
SetDex(101, 125);
|
||||
SetInt(36, 60);
|
||||
|
||||
[Constructible]
|
||||
public RedSolenWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 782;
|
||||
BaseSoundID = 959;
|
||||
SetHits(96, 107);
|
||||
|
||||
SetStr( 196, 220 );
|
||||
SetDex( 101, 125 );
|
||||
SetInt( 36, 60 );
|
||||
SetDamage(5, 15);
|
||||
|
||||
SetHits( 96, 107 );
|
||||
SetDamageType(ResistanceType.Physical, 80);
|
||||
SetDamageType(ResistanceType.Poison, 20);
|
||||
|
||||
SetDamage( 5, 15 );
|
||||
SetResistance(ResistanceType.Physical, 20, 35);
|
||||
SetResistance(ResistanceType.Fire, 20, 35);
|
||||
SetResistance(ResistanceType.Cold, 10, 25);
|
||||
SetResistance(ResistanceType.Poison, 20, 35);
|
||||
SetResistance(ResistanceType.Energy, 10, 25);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 80 );
|
||||
SetDamageType( ResistanceType.Poison, 20 );
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 20, 35 );
|
||||
SetResistance( ResistanceType.Fire, 20, 35 );
|
||||
SetResistance( ResistanceType.Cold, 10, 25 );
|
||||
SetResistance( ResistanceType.Poison, 20, 35 );
|
||||
SetResistance( ResistanceType.Energy, 10, 25 );
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
SetSkill( SkillName.MagicResist, 60.0 );
|
||||
SetSkill( SkillName.Tactics, 80.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.0 );
|
||||
VirtualArmor = 35;
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
PackItem(new ZoogiFungus(0.05 < Utility.RandomDouble() ? 3 : 13));
|
||||
|
||||
VirtualArmor = 35;
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BraceletOfBinding());
|
||||
}
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
PackItem( new ZoogiFungus( ( 0.05 < Utility.RandomDouble() )? 3 : 13 ) );
|
||||
public RedSolenWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
PackItem( new BraceletOfBinding() );
|
||||
public override string CorpseName => "a solen warrior corpse";
|
||||
public bool BurstSac{ get; private set; }
|
||||
|
||||
}
|
||||
public override string DefaultName => "a red solen warrior";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 4 ) );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 4));
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckRedFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckRedFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnRedDamage( from );
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnRedDamage(from);
|
||||
|
||||
if ( !willKill )
|
||||
{
|
||||
if ( !BurstSac )
|
||||
{
|
||||
if ( Hits < 50 )
|
||||
{
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *" );
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if ( from != null && from != this && InRange( from, 1 ) )
|
||||
{
|
||||
SpillAcid( from, 1 );
|
||||
}
|
||||
}
|
||||
if (!willKill)
|
||||
{
|
||||
if (!BurstSac)
|
||||
{
|
||||
if (Hits < 50)
|
||||
{
|
||||
PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *");
|
||||
BurstSac = true;
|
||||
}
|
||||
}
|
||||
else if (from != null && from != this && InRange(from, 1))
|
||||
{
|
||||
SpillAcid(from, 1);
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid( 4 );
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
public RedSolenWarrior( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(1);
|
||||
writer.Write(BurstSac);
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 1 );
|
||||
writer.Write( BurstSac );
|
||||
}
|
||||
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();
|
||||
|
||||
switch( version )
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,107 +2,107 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenWorker : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a solen worker corpse";
|
||||
public override string DefaultName => "a red solen worker";
|
||||
public class RedSolenWorker : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RedSolenWorker() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 781;
|
||||
BaseSoundID = 959;
|
||||
|
||||
[Constructible]
|
||||
public RedSolenWorker() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 781;
|
||||
BaseSoundID = 959;
|
||||
SetStr(96, 120);
|
||||
SetDex(81, 105);
|
||||
SetInt(36, 60);
|
||||
|
||||
SetStr( 96, 120 );
|
||||
SetDex( 81, 105 );
|
||||
SetInt( 36, 60 );
|
||||
SetHits(58, 72);
|
||||
|
||||
SetHits( 58, 72 );
|
||||
SetDamage(5, 7);
|
||||
|
||||
SetDamage( 5, 7 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 25, 30);
|
||||
SetResistance(ResistanceType.Fire, 20, 30);
|
||||
SetResistance(ResistanceType.Cold, 10, 20);
|
||||
SetResistance(ResistanceType.Poison, 10, 20);
|
||||
SetResistance(ResistanceType.Energy, 20, 30);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 25, 30 );
|
||||
SetResistance( ResistanceType.Fire, 20, 30 );
|
||||
SetResistance( ResistanceType.Cold, 10, 20 );
|
||||
SetResistance( ResistanceType.Poison, 10, 20 );
|
||||
SetResistance( ResistanceType.Energy, 20, 30 );
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 65.0);
|
||||
SetSkill(SkillName.Wrestling, 60.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 60.0 );
|
||||
SetSkill( SkillName.Tactics, 65.0 );
|
||||
SetSkill( SkillName.Wrestling, 60.0 );
|
||||
Fame = 1500;
|
||||
Karma = -1500;
|
||||
|
||||
Fame = 1500;
|
||||
Karma = -1500;
|
||||
VirtualArmor = 28;
|
||||
|
||||
VirtualArmor = 28;
|
||||
PackGold(Utility.Random(100, 180));
|
||||
|
||||
PackGold( Utility.Random( 100, 180 ) );
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
SolenHelper.PackPicnicBasket( this );
|
||||
PackItem(new ZoogiFungus());
|
||||
}
|
||||
|
||||
PackItem( new ZoogiFungus() );
|
||||
}
|
||||
public RedSolenWorker(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
public override string CorpseName => "a solen worker corpse";
|
||||
public override string DefaultName => "a red solen worker";
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x186;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1BE;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x186;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x8E;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1BE;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 2 ) );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x8E;
|
||||
}
|
||||
|
||||
public override bool IsEnemy( Mobile m )
|
||||
{
|
||||
if ( SolenHelper.CheckRedFriendship( m ) )
|
||||
return false;
|
||||
return base.IsEnemy( m );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 2));
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
SolenHelper.OnRedDamage( from );
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckRedFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnRedDamage(from);
|
||||
|
||||
public RedSolenWorker( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,81 +3,83 @@ using Server.Network;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class SolenHelper
|
||||
{
|
||||
public static void PackPicnicBasket( BaseCreature solen )
|
||||
{
|
||||
if ( 1 > Utility.Random( 100 ) )
|
||||
{
|
||||
PicnicBasket basket = new PicnicBasket();
|
||||
public class SolenHelper
|
||||
{
|
||||
public static void PackPicnicBasket(BaseCreature solen)
|
||||
{
|
||||
if (1 > Utility.Random(100))
|
||||
{
|
||||
PicnicBasket basket = new PicnicBasket();
|
||||
|
||||
basket.DropItem( new BeverageBottle( BeverageType.Wine ) );
|
||||
basket.DropItem( new CheeseWedge() );
|
||||
basket.DropItem(new BeverageBottle(BeverageType.Wine));
|
||||
basket.DropItem(new CheeseWedge());
|
||||
|
||||
solen.PackItem( basket );
|
||||
}
|
||||
}
|
||||
solen.PackItem(basket);
|
||||
}
|
||||
}
|
||||
|
||||
public static bool CheckRedFriendship( Mobile m )
|
||||
{
|
||||
if ( m is BaseCreature bc )
|
||||
{
|
||||
if ( bc.Controlled && bc.ControlMaster is PlayerMobile )
|
||||
return CheckRedFriendship( bc.ControlMaster );
|
||||
if ( bc.Summoned && bc.SummonMaster is PlayerMobile )
|
||||
return CheckRedFriendship( bc.SummonMaster );
|
||||
}
|
||||
public static bool CheckRedFriendship(Mobile m)
|
||||
{
|
||||
if (m is BaseCreature bc)
|
||||
{
|
||||
if (bc.Controlled && bc.ControlMaster is PlayerMobile)
|
||||
return CheckRedFriendship(bc.ControlMaster);
|
||||
if (bc.Summoned && bc.SummonMaster is PlayerMobile)
|
||||
return CheckRedFriendship(bc.SummonMaster);
|
||||
}
|
||||
|
||||
return m is PlayerMobile player && player.SolenFriendship == SolenFriendship.Red;
|
||||
}
|
||||
return m is PlayerMobile player && player.SolenFriendship == SolenFriendship.Red;
|
||||
}
|
||||
|
||||
public static bool CheckBlackFriendship( Mobile m )
|
||||
{
|
||||
if ( m is BaseCreature bc )
|
||||
{
|
||||
if ( bc.Controlled && bc.ControlMaster is PlayerMobile )
|
||||
return CheckBlackFriendship( bc.ControlMaster );
|
||||
if ( bc.Summoned && bc.SummonMaster is PlayerMobile )
|
||||
return CheckBlackFriendship( bc.SummonMaster );
|
||||
}
|
||||
public static bool CheckBlackFriendship(Mobile m)
|
||||
{
|
||||
if (m is BaseCreature bc)
|
||||
{
|
||||
if (bc.Controlled && bc.ControlMaster is PlayerMobile)
|
||||
return CheckBlackFriendship(bc.ControlMaster);
|
||||
if (bc.Summoned && bc.SummonMaster is PlayerMobile)
|
||||
return CheckBlackFriendship(bc.SummonMaster);
|
||||
}
|
||||
|
||||
return m is PlayerMobile player && player.SolenFriendship == SolenFriendship.Black;
|
||||
}
|
||||
return m is PlayerMobile player && player.SolenFriendship == SolenFriendship.Black;
|
||||
}
|
||||
|
||||
public static void OnRedDamage( Mobile from )
|
||||
{
|
||||
if ( from is BaseCreature bc )
|
||||
{
|
||||
if ( bc.Controlled && bc.ControlMaster is PlayerMobile )
|
||||
OnRedDamage( bc.ControlMaster );
|
||||
else if ( bc.Summoned && bc.SummonMaster is PlayerMobile )
|
||||
OnRedDamage( bc.SummonMaster );
|
||||
}
|
||||
public static void OnRedDamage(Mobile from)
|
||||
{
|
||||
if (from is BaseCreature bc)
|
||||
{
|
||||
if (bc.Controlled && bc.ControlMaster is PlayerMobile)
|
||||
OnRedDamage(bc.ControlMaster);
|
||||
else if (bc.Summoned && bc.SummonMaster is PlayerMobile)
|
||||
OnRedDamage(bc.SummonMaster);
|
||||
}
|
||||
|
||||
if ( from is PlayerMobile player && player.SolenFriendship == SolenFriendship.Red )
|
||||
{
|
||||
player.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1054103 ); // The solen revoke their friendship. You will now be considered an intruder.
|
||||
if (from is PlayerMobile player && player.SolenFriendship == SolenFriendship.Red)
|
||||
{
|
||||
player.LocalOverheadMessage(MessageType.Regular, 0x3B2,
|
||||
1054103); // The solen revoke their friendship. You will now be considered an intruder.
|
||||
|
||||
player.SolenFriendship = SolenFriendship.None;
|
||||
}
|
||||
}
|
||||
player.SolenFriendship = SolenFriendship.None;
|
||||
}
|
||||
}
|
||||
|
||||
public static void OnBlackDamage( Mobile from )
|
||||
{
|
||||
if ( from is BaseCreature bc )
|
||||
{
|
||||
if ( bc.Controlled && bc.ControlMaster is PlayerMobile )
|
||||
OnBlackDamage( bc.ControlMaster );
|
||||
else if ( bc.Summoned && bc.SummonMaster is PlayerMobile )
|
||||
OnBlackDamage( bc.SummonMaster );
|
||||
}
|
||||
public static void OnBlackDamage(Mobile from)
|
||||
{
|
||||
if (from is BaseCreature bc)
|
||||
{
|
||||
if (bc.Controlled && bc.ControlMaster is PlayerMobile)
|
||||
OnBlackDamage(bc.ControlMaster);
|
||||
else if (bc.Summoned && bc.SummonMaster is PlayerMobile)
|
||||
OnBlackDamage(bc.SummonMaster);
|
||||
}
|
||||
|
||||
if ( from is PlayerMobile player && player.SolenFriendship == SolenFriendship.Black )
|
||||
{
|
||||
player.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1054103 ); // The solen revoke their friendship. You will now be considered an intruder.
|
||||
if (from is PlayerMobile player && player.SolenFriendship == SolenFriendship.Black)
|
||||
{
|
||||
player.LocalOverheadMessage(MessageType.Regular, 0x3B2,
|
||||
1054103); // The solen revoke their friendship. You will now be considered an intruder.
|
||||
|
||||
player.SolenFriendship = SolenFriendship.None;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
player.SolenFriendship = SolenFriendship.None;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue