mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
* Ranger Equipment fix, Additem delete - add parameter with default value to AddItem - On Conflict, still log conflict, but delete the conflicting Item by default - Delete the base boots of Rangers befor adding the new boots * Updated Mobile Scripts - went through all scripts to update them to SetWearable - reverted change to AddItem * Update to SetWearable - last item being set will be worn (if no override to OnEquip returns false - delete the item on the layer that is the same as the new item (if existend) - used ifs to cap item.Movable, therefor no need to call to Random if <= 0 or >= 1 * Update base InitOutFit - replaced the Additem for Backpack with SetWearable, Movable is getting set this way too - altered the other SetWearable calls, to allow the items to be moved / dropped (as they should normally) * Null reference sanity check. Co-authored-by: Voxpire <admin@vita-nex.com>
90 lines
2.5 KiB
C#
90 lines
2.5 KiB
C#
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName("a golem controller corpse")]
|
|
public class GolemController : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public GolemController()
|
|
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
|
{
|
|
Name = NameList.RandomName("golem controller");
|
|
Title = "the controller";
|
|
|
|
Body = 400;
|
|
Hue = 0x455;
|
|
|
|
AddArcane(new Robe());
|
|
AddArcane(new ThighBoots());
|
|
AddArcane(new LeatherGloves());
|
|
AddArcane(new Cloak());
|
|
|
|
SetStr(126, 150);
|
|
SetDex(96, 120);
|
|
SetInt(151, 175);
|
|
|
|
SetHits(76, 90);
|
|
|
|
SetDamage(6, 12);
|
|
|
|
SetDamageType(ResistanceType.Physical, 100);
|
|
|
|
SetResistance(ResistanceType.Physical, 30, 40);
|
|
SetResistance(ResistanceType.Fire, 25, 35);
|
|
SetResistance(ResistanceType.Cold, 35, 45);
|
|
SetResistance(ResistanceType.Poison, 5, 15);
|
|
SetResistance(ResistanceType.Energy, 15, 25);
|
|
|
|
SetSkill(SkillName.EvalInt, 95.1, 100.0);
|
|
SetSkill(SkillName.Magery, 95.1, 100.0);
|
|
SetSkill(SkillName.Meditation, 95.1, 100.0);
|
|
SetSkill(SkillName.MagicResist, 102.5, 125.0);
|
|
SetSkill(SkillName.Tactics, 65.0, 87.5);
|
|
SetSkill(SkillName.Wrestling, 65.0, 87.5);
|
|
|
|
Fame = 4000;
|
|
Karma = -4000;
|
|
}
|
|
|
|
public GolemController(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override bool ClickTitle => false;
|
|
public override bool ShowFameTitle => false;
|
|
public override bool AlwaysMurderer => true;
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot(LootPack.Rich);
|
|
AddLoot(LootPack.LootItem<ArcaneGem>(70.0));
|
|
}
|
|
|
|
public void AddArcane(Item item)
|
|
{
|
|
if (item is IArcaneEquip)
|
|
{
|
|
IArcaneEquip eq = (IArcaneEquip)item;
|
|
eq.CurArcaneCharges = eq.MaxArcaneCharges = 20;
|
|
}
|
|
|
|
item.Hue = ArcaneGem.DefaultArcaneHue;
|
|
item.LootType = LootType.Newbied;
|
|
|
|
SetWearable(item);
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|