Updates Combat Packets & Moves Tracking to Content (#298)
- [X] Changes outgoing combat packets - [X] Moves quest arrow to PlayerMobile and moves quest arrow packets to content. Bumps release version
This commit is contained in:
parent
55935d30b4
commit
6f5cb00cdd
19 changed files with 373 additions and 319 deletions
41
Projects/UOContent/Skills/Tracking/TrackArrow.cs
Normal file
41
Projects/UOContent/Skills/Tracking/TrackArrow.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
using Server.Mobiles;
|
||||
|
||||
namespace Server.SkillHandlers
|
||||
{
|
||||
public class TrackArrow : QuestArrow
|
||||
{
|
||||
private readonly Timer m_Timer;
|
||||
private Mobile m_From;
|
||||
|
||||
public TrackArrow(PlayerMobile from, Mobile target, int range) : base(from, target)
|
||||
{
|
||||
m_From = from;
|
||||
m_Timer = new TrackTimer(from, target, range, this);
|
||||
m_Timer.Start();
|
||||
}
|
||||
|
||||
public override void OnClick(bool rightClick)
|
||||
{
|
||||
if (rightClick)
|
||||
{
|
||||
Tracking.ClearTrackingInfo(m_From);
|
||||
|
||||
m_From = null;
|
||||
|
||||
Stop();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStop()
|
||||
{
|
||||
m_Timer.Stop();
|
||||
|
||||
if (m_From != null)
|
||||
{
|
||||
Tracking.ClearTrackingInfo(m_From);
|
||||
|
||||
m_From.SendLocalizedMessage(503177); // You have lost your quarry.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue