public override void GenerateLoot()
{
AddLoot(LootPack.Average);
AddLoot(LootPack.Meager);
AddLoot(LootPack.LowScrolls);
AddLoot(LootPack.MedScrolls);
AddLoot(LootPack.RandomLootItem(new System.Type[] { typeof(PainSpikeScroll), typeof(PoisonStrikeScroll), typeof(StrangleScroll), typeof(VengefulSpiritScroll) }, 16.0, 1, false, true));
}
PlateChest chest = new PlateChest();
chest.Hue = 1345;
chest.Movable = false;
AddItem( chest );
PlateArms arms = new PlateArms();
arms.Hue = 1345;
arms.Movable = false;
AddItem( arms );
PlateGloves gloves = new PlateGloves();
gloves.Hue = 1345;
gloves.Movable = false;
AddItem( gloves );
PlateGorget gorget = new PlateGorget();
gorget.Hue = 1345;
gorget.Movable = false;
AddItem( gorget );
PlateLegs legs = new PlateLegs();
legs.Hue = 1345;
legs.Movable = false;
AddItem( legs );
Cloak cloak = new Cloak();
cloak.Hue = 1175;
cloak.Movable = false;
AddItem( cloak );
Katana weapon = new Katana();
weapon.Movable = false;
AddItem( weapon );
Lantern lantern = new Lantern();
lantern.Movable = false;
lantern.Ignite();
AddItem( lantern );
ThighBoots boots = new ThighBoots();
boots.Movable = false;
AddItem( boots );
My bad, I forgot about those, Lemke and Visam have you covered, follow there advice!I was meaning the armor that the mobs wear. This puts the item on the mobbut I do not want that to drop on the corpse. I just want him to wear it. Many custom mobs have all of their worn items drop in as loot on death making it more difficult to see the actual drops. I don't want those to drop.AddItem(new BoneLegs());:
private void DropEquipment()
{
try
{
System.Collections.Generic.List<Item> equipment =
new System.Collections.Generic.List<Item>();
for(byte i = 0; i < Server.Items.Layer.LastValid; i++)
{
Item item = FindItemOnLayer(Layer[i]);
item == null ? continue : equipment.Add(item);
}
foreach(Item item in equipment)
{
DropItem(item);
}
}
catch(Exception exception)
{
System.Console.WriteLine(Name + " threw (" + exception.ToString() + ") probably because i'm bad w/ iteration");
}
}
public override void OnBeforeDeath()
{
DropEquipment();
base.OnBeforeDeath();
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.