Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
121
Projects/Scripts/Mobiles/Monsters/Ants/AntLion.cs
Normal file
121
Projects/Scripts/Mobiles/Monsters/Ants/AntLion.cs
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
using Server.Engines.Plants;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class AntLion : BaseCreature
|
||||
{
|
||||
[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);
|
||||
|
||||
SetHits(151, 162);
|
||||
|
||||
SetDamage(7, 21);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 70.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
|
||||
VirtualArmor = 45;
|
||||
|
||||
PackItem(new Bone(3));
|
||||
PackItem(new FertileDirt(Utility.RandomMinMax(1, 5)));
|
||||
|
||||
if (Core.ML && Utility.RandomDouble() < .33)
|
||||
PackItem(Seed.RandomPeculiarSeed(2));
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
orepile.Amount = Utility.RandomMinMax(1, 10);
|
||||
orepile.ItemID = 0x19B9;
|
||||
PackItem(orepile);
|
||||
|
||||
// TODO: skeleton
|
||||
}
|
||||
|
||||
|
||||
public AntLion(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "an ant lion corpse";
|
||||
public override string DefaultName => "an ant lion";
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
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;
|
||||
|
||||
SetStr(326, 350);
|
||||
SetDex(141, 165);
|
||||
SetInt(96, 120);
|
||||
|
||||
SetHits(151, 162);
|
||||
|
||||
SetDamage(10, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 90.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
Fame = 6500;
|
||||
Karma = -6500;
|
||||
|
||||
VirtualArmor = 50;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus(0.05 > Utility.RandomDouble() ? 16 : 4));
|
||||
}
|
||||
|
||||
public BlackSolenInfiltratorQueen(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a black solen infiltrator";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
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;
|
||||
|
||||
SetStr(206, 230);
|
||||
SetDex(121, 145);
|
||||
SetInt(66, 90);
|
||||
|
||||
SetHits(96, 107);
|
||||
|
||||
SetDamage(5, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 80.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
VirtualArmor = 40;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus(0.05 > Utility.RandomDouble() ? 13 : 3));
|
||||
}
|
||||
|
||||
public BlackSolenInfiltratorWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a solen infiltrator corpse";
|
||||
public override string DefaultName => "a black solen infiltrator";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average, 2);
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 4));
|
||||
}
|
||||
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
147
Projects/Scripts/Mobiles/Monsters/Ants/BlackSolenQueen.cs
Normal file
147
Projects/Scripts/Mobiles/Monsters/Ants/BlackSolenQueen.cs
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
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;
|
||||
|
||||
SetStr(296, 320);
|
||||
SetDex(121, 145);
|
||||
SetInt(76, 100);
|
||||
|
||||
SetHits(151, 162);
|
||||
|
||||
SetDamage(10, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 70.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
|
||||
VirtualArmor = 45;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus(Utility.RandomDouble() > 0.05 ? 5 : 25));
|
||||
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BallOfSummoning());
|
||||
}
|
||||
|
||||
public BlackSolenQueen(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a solen queen corpse";
|
||||
public bool BurstSac{ get; private set; }
|
||||
|
||||
public override string DefaultName => "a black solen queen";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x25B;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(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);
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
148
Projects/Scripts/Mobiles/Monsters/Ants/BlackSolenWarrior.cs
Normal file
148
Projects/Scripts/Mobiles/Monsters/Ants/BlackSolenWarrior.cs
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
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;
|
||||
|
||||
SetStr(196, 220);
|
||||
SetDex(101, 125);
|
||||
SetInt(36, 60);
|
||||
|
||||
SetHits(96, 107);
|
||||
|
||||
SetDamage(5, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
VirtualArmor = 35;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus(0.05 > Utility.RandomDouble() ? 13 : 3));
|
||||
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BraceletOfBinding());
|
||||
}
|
||||
|
||||
public BlackSolenWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a solen warrior corpse";
|
||||
public bool BurstSac{ get; private set; }
|
||||
|
||||
public override string DefaultName => "a black solen warrior";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 4));
|
||||
}
|
||||
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(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);
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
109
Projects/Scripts/Mobiles/Monsters/Ants/BlackSolenWorker.cs
Normal file
109
Projects/Scripts/Mobiles/Monsters/Ants/BlackSolenWorker.cs
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
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;
|
||||
|
||||
SetStr(96, 120);
|
||||
SetDex(81, 105);
|
||||
SetInt(36, 60);
|
||||
|
||||
SetHits(58, 72);
|
||||
|
||||
SetDamage(5, 7);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 65.0);
|
||||
SetSkill(SkillName.Wrestling, 60.0);
|
||||
|
||||
Fame = 1500;
|
||||
Karma = -1500;
|
||||
|
||||
VirtualArmor = 28;
|
||||
|
||||
PackGold(Utility.Random(100, 180));
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus());
|
||||
}
|
||||
|
||||
public BlackSolenWorker(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a solen worker corpse";
|
||||
public override string DefaultName => "a black solen worker";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x186;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1BE;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x8E;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 2));
|
||||
}
|
||||
|
||||
public override bool IsEnemy(Mobile m)
|
||||
{
|
||||
if (SolenHelper.CheckBlackFriendship(m))
|
||||
return false;
|
||||
return base.IsEnemy(m);
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnBlackDamage(from);
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,107 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenInfiltratorQueen : BaseCreature
|
||||
{
|
||||
[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);
|
||||
|
||||
SetHits(151, 162);
|
||||
|
||||
SetDamage(10, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 90.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
Fame = 6500;
|
||||
Karma = -6500;
|
||||
|
||||
VirtualArmor = 50;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus(0.05 < Utility.RandomDouble() ? 4 : 16));
|
||||
}
|
||||
|
||||
public RedSolenInfiltratorQueen(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 0x259;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
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 void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnRedDamage(from);
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenInfiltratorWarrior : BaseCreature
|
||||
{
|
||||
[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);
|
||||
|
||||
SetHits(96, 107);
|
||||
|
||||
SetDamage(5, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 80.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
VirtualArmor = 40;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
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 GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
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 void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
SolenHelper.OnRedDamage(from);
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
147
Projects/Scripts/Mobiles/Monsters/Ants/RedSolenQueen.cs
Normal file
147
Projects/Scripts/Mobiles/Monsters/Ants/RedSolenQueen.cs
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenQueen : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RedSolenQueen() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 783;
|
||||
BaseSoundID = 959;
|
||||
|
||||
SetStr(296, 320);
|
||||
SetDex(121, 145);
|
||||
SetInt(76, 100);
|
||||
|
||||
SetHits(151, 162);
|
||||
|
||||
SetDamage(10, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 70.0);
|
||||
SetSkill(SkillName.Tactics, 90.0);
|
||||
SetSkill(SkillName.Wrestling, 90.0);
|
||||
|
||||
Fame = 4500;
|
||||
Karma = -4500;
|
||||
|
||||
VirtualArmor = 45;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus(Utility.RandomDouble() > 0.05 ? 5 : 25));
|
||||
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BallOfSummoning());
|
||||
}
|
||||
|
||||
public RedSolenQueen(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a solen queen corpse";
|
||||
public bool BurstSac{ get; private set; }
|
||||
|
||||
public override string DefaultName => "a red solen queen";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x259;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x195;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x250;
|
||||
}
|
||||
|
||||
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 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);
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
146
Projects/Scripts/Mobiles/Monsters/Ants/RedSolenWarrior.cs
Normal file
146
Projects/Scripts/Mobiles/Monsters/Ants/RedSolenWarrior.cs
Normal file
|
|
@ -0,0 +1,146 @@
|
|||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenWarrior : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public RedSolenWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 782;
|
||||
BaseSoundID = 959;
|
||||
|
||||
SetStr(196, 220);
|
||||
SetDex(101, 125);
|
||||
SetInt(36, 60);
|
||||
|
||||
SetHits(96, 107);
|
||||
|
||||
SetDamage(5, 15);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
Fame = 3000;
|
||||
Karma = -3000;
|
||||
|
||||
VirtualArmor = 35;
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
PackItem(new ZoogiFungus(0.05 < Utility.RandomDouble() ? 3 : 13));
|
||||
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
PackItem(new BraceletOfBinding());
|
||||
}
|
||||
|
||||
public RedSolenWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
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 GetIdleSound()
|
||||
{
|
||||
return 0xB5;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x289;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xBC;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xE4;
|
||||
}
|
||||
|
||||
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 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);
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid(4);
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
BurstSac = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
108
Projects/Scripts/Mobiles/Monsters/Ants/RedSolenWorker.cs
Normal file
108
Projects/Scripts/Mobiles/Monsters/Ants/RedSolenWorker.cs
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class RedSolenWorker : BaseCreature
|
||||
{
|
||||
[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);
|
||||
|
||||
SetHits(58, 72);
|
||||
|
||||
SetDamage(5, 7);
|
||||
|
||||
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);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 60.0);
|
||||
SetSkill(SkillName.Tactics, 65.0);
|
||||
SetSkill(SkillName.Wrestling, 60.0);
|
||||
|
||||
Fame = 1500;
|
||||
Karma = -1500;
|
||||
|
||||
VirtualArmor = 28;
|
||||
|
||||
PackGold(Utility.Random(100, 180));
|
||||
|
||||
SolenHelper.PackPicnicBasket(this);
|
||||
|
||||
PackItem(new ZoogiFungus());
|
||||
}
|
||||
|
||||
public RedSolenWorker(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a solen worker corpse";
|
||||
public override string DefaultName => "a red solen worker";
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x269;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x186;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x1BE;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x8E;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 2));
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
85
Projects/Scripts/Mobiles/Monsters/Ants/SolenHelper.cs
Normal file
85
Projects/Scripts/Mobiles/Monsters/Ants/SolenHelper.cs
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
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());
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
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.
|
||||
|
||||
player.SolenFriendship = SolenFriendship.None;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue