kfritz411
Member
Hey Folks!
So, I found this neat thing in Pub54 where monsters can toss a bola to dismount. I tried adding that into my Pub56 but I'm getting errors. I can't seem to dig this one out, any help would be greatly apreciated:
public static void TossBola(Mobile from)
{
if (from == null)
return;
Mobile target = from.Combatant;
if (target == null)
return;
from.NonlocalOverheadMessage(MessageType.Emote, 0x3B2, 1049633, from.Name); // ~1_NAME~ begins to menacingly swing a bola...
from.Direction = from.GetDirectionTo(target);
from.Animate(11, 5, 1, true, false, 0);
from.MovingEffect(target, 0x26AC, 10, 0, false, false);
IMount mt = target.Mount;
if (mt != null)
{
mt.Rider = null;
target.SendLocalizedMessage(1040023); // You have been knocked off of your mount!
BaseMount.SetMountPrevention(target, BlockMountType.Dazed, TimeSpan.FromSeconds(3.0));
}
}
So, I found this neat thing in Pub54 where monsters can toss a bola to dismount. I tried adding that into my Pub56 but I'm getting errors. I can't seem to dig this one out, any help would be greatly apreciated:
public static void TossBola(Mobile from)
{
if (from == null)
return;
Mobile target = from.Combatant;
if (target == null)
return;
from.NonlocalOverheadMessage(MessageType.Emote, 0x3B2, 1049633, from.Name); // ~1_NAME~ begins to menacingly swing a bola...
from.Direction = from.GetDirectionTo(target);
from.Animate(11, 5, 1, true, false, 0);
from.MovingEffect(target, 0x26AC, 10, 0, false, false);
IMount mt = target.Mount;
if (mt != null)
{
mt.Rider = null;
target.SendLocalizedMessage(1040023); // You have been knocked off of your mount!
BaseMount.SetMountPrevention(target, BlockMountType.Dazed, TimeSpan.FromSeconds(3.0));
}
}