v0.0.1-Alpha (#42)
This commit is contained in:
parent
d30f93c454
commit
a36796c2c1
3552 changed files with 2476 additions and 15223 deletions
24
Projects/Scripts/Targets/PickMoveTarget.cs
Normal file
24
Projects/Scripts/Targets/PickMoveTarget.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using Server.Commands.Generic;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Targets
|
||||
{
|
||||
public class PickMoveTarget : Target
|
||||
{
|
||||
public PickMoveTarget() : base(-1, false, TargetFlags.None)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnTarget(Mobile from, object o)
|
||||
{
|
||||
if (!BaseCommand.IsAccessible(from, o))
|
||||
{
|
||||
from.SendLocalizedMessage(500447); // That is not accessible.
|
||||
return;
|
||||
}
|
||||
|
||||
if (o is Item || o is Mobile)
|
||||
from.Target = new MoveTarget(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue