What I'm trying (and failing) to do is script a mob that bleeds constantly. From time of spawning until its killed, it bleeds all over the place. I've tried parts of the BleedAttack, but so far, not one drop of blood. I don't want it dependent on damage, I just want it to leave puddles of blood whether its attacked or not. Any ideas? Is this even possible? What I've tried is in the following snippet.
I've tried it with the if (m.Alive) & without to no avail. If this can be made to work somehow, it could be used for other leaking mobs as well... Water eles that drip water, critters that drip poison or slime or other delightful substances.
Code:
private static Hashtable m_Table = new Hashtable();
public static bool IsBleeding(Mobile m)
{
return m_Table.Contains(m);
}
public static void DoBleed(Mobile m)
{
// if (m.Alive)
// {
// int damage = Utility.RandomMinMax(level, level * 2);
// if (!m.Player)
// damage *= 2;
// m.PlaySound(0x133);
// m.Damage(damage, from);
Blood blood = new Blood();
blood.ItemID = Utility.Random(0x122A, 5);
blood.MoveToWorld(m.Location, m.Map);
// }
}