public void Use( Mobile from, BaseWeapon weapon ) { BeginSwing(); from.Direction = from.GetDirectionTo( GetWorldLocation() ); weapon.PlaySwingAnimation( from ); from.CheckSkill( weapon.Skill, m_MinSkill, m_MaxSkill ); }
public void PunchMongbat(Mobile from, BaseWeapon weapon) { if (!from.InRange(this, 1)) { from.LocalOverheadMessage(MessageType.Regular, 0x3B2, false, "You are too far away to punch that thing."); return; } else { from.Direction = from.GetDirectionTo(GetWorldLocation()); weapon.PlaySwingAnimation(from); Timer.DelayCall(TimeSpan.FromSeconds(0.75), new TimerCallback(OnMongbatPunch)); } }